mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix non-snmp sensor polling
git-svn-id: http://www.observium.org/svn/observer/trunk@3220 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -32,13 +32,17 @@ function poll_sensor($device, $class, $unit)
|
||||
else
|
||||
{
|
||||
echo "no agent data!\n";
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
} else if ($sensor['poller_type'] == "ipmi")
|
||||
{
|
||||
echo " already polled.\n"; # ipmi should probably move here from the ipmi poller file (FIXME)
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "unknown poller type!\n";
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($sensor_value == -32768) { echo("Invalid (-32768) "); $sensor_value = 0; }
|
||||
|
Reference in New Issue
Block a user