mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update services SQL
This commit is contained in:
@@ -48,13 +48,9 @@ foreach (dbFetchRows('SELECT * FROM `devices` AS D, `services` AS S WHERE S.devi
|
|||||||
if ($service_status != $status) {
|
if ($service_status != $status) {
|
||||||
$update['service_changed'] = time();
|
$update['service_changed'] = time();
|
||||||
}
|
}
|
||||||
else {
|
$update = array_merge(array('service_status' => $status, 'service_message' => $check, 'service_checked' => time()), $update);
|
||||||
unset($updated);
|
dbUpdate($update, 'services', '`service_id` = ?', array($service['service_id']));
|
||||||
}
|
unset($update);
|
||||||
|
|
||||||
$update = array_merge(array('service_status' => $status, 'service_message' => $check, 'service_checked' => time()), $update);
|
|
||||||
dbUpdate($update, 'services', '`service_id` = ?', array($service['service_id']));
|
|
||||||
unset($update);
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$status = '0';
|
$status = '0';
|
||||||
|
Reference in New Issue
Block a user