mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@118 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user