git-svn-id: http://www.observium.org/svn/observer/trunk@118 61d68cd4-352d-0410-923a-c4978735b2b8

This commit is contained in:
Adam Amstrong
2007-11-23 11:37:28 +00:00
parent 9a6d196f32
commit 89b6a9bf1a
28 changed files with 1275 additions and 1379 deletions

View File

@@ -14,7 +14,7 @@ while ($device = mysql_fetch_array($device_query)) {
$host = trim(strtolower($hostname));
$host_os = getHostOS($host, $community, $device[snmpver]);
if($old_os != $host_os) {
$sql = mysql_query("UPDATE `devices` SET `os` = '$host_os' WHERE `id` = '$id'");
$sql = mysql_query("UPDATE `devices` SET `os` = '$host_os' WHERE `device_id` = '$id'");
echo("Updated host : $host ($host_os)\n");
} else echo("Not Updated host : $host ($host_os)\n");
}