From 0d2148c8bc2820690905d403d5f2bc7eeffd2d2b Mon Sep 17 00:00:00 2001 From: laf Date: Mon, 11 May 2015 22:01:26 +0100 Subject: [PATCH] Added Temperature sensor support for NetApp --- includes/discovery/functions.inc.php | 2 +- .../discovery/temperatures/netapp.inc.php | 36 +++++++++++++++++++ includes/polling/functions.inc.php | 24 +++++++------ includes/polling/temperatures/netapp.inc.php | 6 ++++ 4 files changed, 57 insertions(+), 11 deletions(-) create mode 100644 includes/discovery/temperatures/netapp.inc.php create mode 100644 includes/polling/temperatures/netapp.inc.php diff --git a/includes/discovery/functions.inc.php b/includes/discovery/functions.inc.php index de62837cc6..a5130e9573 100644 --- a/includes/discovery/functions.inc.php +++ b/includes/discovery/functions.inc.php @@ -135,7 +135,7 @@ function discover_sensor(&$valid, $class, $device, $oid, $index, $type, $descr, if ($debug) { echo("Discover sensor: $oid, $index, $type, $descr, $poller_type, $precision, $entPhysicalIndex\n"); } - if (is_null($low_warn_limit) || !is_null($warn_limit)) + if (is_null($low_warn_limit) && !is_null($warn_limit)) { // Warn limits only make sense when we have both a high and a low limit $low_warn_limit = NULL; diff --git a/includes/discovery/temperatures/netapp.inc.php b/includes/discovery/temperatures/netapp.inc.php new file mode 100644 index 0000000000..f1d39adc93 --- /dev/null +++ b/includes/discovery/temperatures/netapp.inc.php @@ -0,0 +1,36 @@ +