mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 00:34:28 +02:00
move poller.php (inc os/system) to db* (and others, but poller is biggest change)
git-svn-id: http://www.observium.org/svn/observer/trunk@2298 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -17,25 +17,25 @@
|
||||
|
||||
if ($version && $device['version'] != $version)
|
||||
{
|
||||
$device['db_update'] .= ", `version` = '".mres($version)."'";
|
||||
$update_array['version'] = $version;
|
||||
log_event("OS Version -> ".$version, $device, 'system');
|
||||
}
|
||||
|
||||
if ($features != $device['features'])
|
||||
{
|
||||
$device['db_update'] .= ", `features` = '".mres($features)."'";
|
||||
$update_array['features'] = $features;
|
||||
log_event("OS Features -> ".$features, $device, 'system');
|
||||
}
|
||||
|
||||
if ($hardware && $hardware != $device['hardware'])
|
||||
{
|
||||
$device['db_update'] .= ", `hardware` = '".mres($hardware)."'";
|
||||
$update_array['hardware'] = $hardware;
|
||||
log_event("Hardware -> ".$hardware, $device, 'system');
|
||||
}
|
||||
|
||||
if ($serial && $serial != $device['serial'])
|
||||
{
|
||||
$device['db_update'] .= ", `serial` = '".mres($serial)."'";
|
||||
$update_array['serial'] = $serial;
|
||||
log_event("serial -> ".$serial, $device, 'system');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user