mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Added Fiberhome Temeprature Discvover and Poller
Added option on includes/polling/functions.inc.php for especific MIB temperature polling
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
if ($device['os'] == 'fiberhome')
|
||||
{
|
||||
$temperature = snmp_get($device, "sysTemperature.0", "-Oqv", "GEPON-OLT-COMMON-MIB");
|
||||
if (is_numeric($temperature)) {
|
||||
echo("Fiberhome - $temperature \n");
|
||||
discover_sensor($valid['sensor'], 'temperature', $device, "GEPON-OLT-COMMON-MIB::sysTemperature", "0", 'fiberhome',"Internal Temperature", '1', '1', "20" , NULL, NULL, "50", $temperature);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user