Device status changes now are processed correctly, and report down in the eventlog as well

git-svn-id: http://www.observium.org/svn/observer/trunk@599 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-05 20:42:37 +00:00
parent 1d566f16c8
commit f29226e010
+1
View File
@@ -42,6 +42,7 @@ echo("Starting polling run:\n\n");
$i = 0;
$device_query = mysql_query("SELECT * FROM `devices` WHERE `ignore` = '0' $where ORDER BY `device_id` ASC");
while ($device = mysql_fetch_array($device_query)) {
$status = 0;
echo($device['hostname'] . " ".$device['device_id']." ".$device['os']." ");
if($os_groups[$device[os]]) {$device['os_group'] = $os_groups[$device[os]]; echo "(".$device['os_group'].")";}