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:
Tom Laermans
2012-05-21 10:15:00 +00:00
parent 0554a5420e
commit 0dd451c9b6
2 changed files with 7 additions and 2 deletions

View File

@@ -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; }