mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Removed old alerting system code
This commit is contained in:
@@ -39,22 +39,6 @@ foreach (dbFetchRows('SELECT * FROM `devices` AS D, `services` AS S WHERE S.devi
|
||||
|
||||
if ($service_status != $status) {
|
||||
$update['service_changed'] = time();
|
||||
|
||||
if ($service['sysContact']) {
|
||||
$email = $service['sysContact'];
|
||||
}
|
||||
else {
|
||||
$email = $config['email_default'];
|
||||
}
|
||||
|
||||
if ($status == '1') {
|
||||
$msg = 'Service Up: '.$service['service_type'].' on '.$service['hostname'];
|
||||
notify($device, 'Service Up: '.$service['service_type'].' on '.$service['hostname'], $msg);
|
||||
}
|
||||
else if ($status == '0') {
|
||||
$msg = 'Service Down: '.$service['service_type'].' on '.$service['hostname'];
|
||||
notify($device, 'Service Down: '.$service['service_type'].' on '.$service['hostname'], $msg);
|
||||
}
|
||||
}
|
||||
else {
|
||||
unset($updated);
|
||||
|
Reference in New Issue
Block a user