Removed old alerting dbInsert code

This commit is contained in:
laf
2016-02-11 22:27:36 +00:00
parent 6456bc4fec
commit 8c53a94233

View File

@ -203,7 +203,6 @@ function poll_device($device, $options) {
$poll_separator = ', ';
dbUpdate(array('status' => $status, 'status_reason' => $response['status_reason']), 'devices', 'device_id=?', array($device['device_id']));
dbInsert(array('importance' => '0', 'device_id' => $device['device_id'], 'message' => 'Device is '.($status == '1' ? 'up' : 'down')), 'alerts');
log_event('Device status changed to '.($status == '1' ? 'Up' : 'Down'), $device, ($status == '1' ? 'up' : 'down'));
}