mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Added Temperature sensor support for NetApp
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$sensor_value = trim(str_replace("\"", "", snmp_get($device, $sensor['sensor_oid'], "-OUqnv", "")));
|
||||
preg_match_all("/([0-9]+C)+/", $sensor_value, $temps);
|
||||
list(,$index) = split("\.", $sensor['sensor_index']);
|
||||
$sensor_value = $temps[0][$index];
|
||||
Reference in New Issue
Block a user