From 02b0c8bf4fb1a46e137c286d8d8b43496a381482 Mon Sep 17 00:00:00 2001 From: GeorgesDick Date: Thu, 25 Feb 2016 09:46:35 +0100 Subject: [PATCH] Create qnap.inc.php Get QNAP Turbo NAS Fans speeds --- .../discovery/sensors/fanspeeds/qnap.inc.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 includes/discovery/sensors/fanspeeds/qnap.inc.php diff --git a/includes/discovery/sensors/fanspeeds/qnap.inc.php b/includes/discovery/sensors/fanspeeds/qnap.inc.php new file mode 100644 index 000000000..2f06661fa --- /dev/null +++ b/includes/discovery/sensors/fanspeeds/qnap.inc.php @@ -0,0 +1,23 @@ + $entry) { + // Get the fan speed full oid + $fan_oid = $fan_speed_oid.$fan_number; + // Get the fan speed + $fan_speed = $entry['SysFanSpeed']; + // Getting the fan information + $fan_information = $entry['SysFanDescr']; + // Save the temperature for the disk + discover_sensor($valid['sensor'], 'fanspeed', $device, $fan_oid, $fan_number, 'snmp', $fan_information, '1', '1', null, null, null, null, $fan_speed); + } + } + +}//end if