From 6f5c83f3c9869ea646db455e470a29315da54f05 Mon Sep 17 00:00:00 2001 From: GeorgesDick Date: Thu, 25 Feb 2016 09:49:08 +0100 Subject: [PATCH] Create qnap.inc.php Collect QNAP Turbo NAS disk temperatures --- .../sensors/temperatures/qnap.inc.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 includes/discovery/sensors/temperatures/qnap.inc.php 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); + } + } +}