Chapter 17: Hardware Monitoring

Using the REST API, a list of all monitored hardware sensors in the firewall can be be retrieved. The reply is sent back by cOS Core in JSON format and consists of the values that can also be provided by using the cOS Core CLI hwm command.

Sending the Hardware Monitoring request

To retrieve the information, an HTTP GET should be sent to the following URI:

/api/oper/hwm

The GET has no optional parameters.

The hwm information returned

The following is a list of the values sent back in the JSON reply:

An Example JSON Reply

Below is an example of a typical JSON reply:

 {
   "error": false,
   "sensors": [
     {
       "name": "CPU_Temp",
       "value": "51.000",
       "min_limit": "0.000",
       "max_limit": "100.000",
       "unit": "C"
     },
     {
       "name": "Voltage_CMOS",
       "value": "3.100",
       "min_limit": "2.900",
       "max_limit": "3.200",
       "unit": "V"
     },
     {
       "name": "CPU_Fan",
       "value": "7500.000",
       "min_limit": "5000.000",
       "max_limit": "8500.000",
       "unit": "RPM"
     }
   ]
 }