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@1995 61d68cd4-352d-0410-923a-c4978735b2b8
13 lines
305 B
PHP
13 lines
305 B
PHP
<?php
|
|
|
|
$os = getHostOS($device);
|
|
|
|
if ($os != $device['os'])
|
|
{
|
|
$sql = mysql_query("UPDATE `devices` SET `os` = '$os' WHERE `device_id` = '".$device['device_id']."'");
|
|
echo("Changed OS! : $os\n");
|
|
log_event("Device OS changed ".$device['os']." => $os", $device, 'system');
|
|
$device['os'] = $os;
|
|
}
|
|
|
|
?>
|