diff --git a/includes/discovery/sensors/temperatures/qnap.inc.php b/includes/discovery/sensors/temperatures/qnap.inc.php new file mode 100644 index 000000000..611273998 --- /dev/null +++ b/includes/discovery/sensors/temperatures/qnap.inc.php @@ -0,0 +1,33 @@ + $entry) { + // Get the disk temperature full oid + $disk_oid = $disk_temperature_oid.$disk_number; + // Get the temperature for the disk + $disk_temperature = $entry['HdTemperature']; + // Getting the disk information (Number and model) + $disk_information = $entry['HdDescr'].' '.$entry['HdModel']; + // Save the temperature for the disk + discover_sensor($valid['sensor'], 'temperature', $device, $disk_oid, $disk_number, 'snmp', $disk_information, '1', '1', null, null, null, null, $disk_temperature); + } + } +}