clear $array at the start of each device. ignore fake cpus from net-snmpd. syslog additions.

git-svn-id: http://www.observium.org/svn/observer/trunk@886 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-02-19 23:57:50 +00:00
parent 4064d7b824
commit 8692b82e7a
6 changed files with 6 additions and 29 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ echo("Starting polling run:\n\n");
$polled_devices = 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;
$status = 0; unset($array);
echo($device['hostname'] . " ".$device['device_id']." ".$device['os']." ");
if ($os_groups[$device[os]]) {$device['os_group'] = $os_groups[$device[os]]; echo "(".$device['os_group'].")";}