mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #3049 from laf/updown
Added reason why device goes up/down to eventlog
This commit is contained in:
@ -204,7 +204,7 @@ function poll_device($device, $options) {
|
||||
|
||||
dbUpdate(array('status' => $status, 'status_reason' => $response['status_reason']), 'devices', 'device_id=?', array($device['device_id']));
|
||||
|
||||
log_event('Device status changed to '.($status == '1' ? 'Up' : 'Down'), $device, ($status == '1' ? 'up' : 'down'));
|
||||
log_event('Device status changed to '.($status == '1' ? 'Up' : 'Down'). ' from ' . $response['status_reason'] . ' check.', $device, ($status == '1' ? 'up' : 'down'));
|
||||
}
|
||||
|
||||
if ($status == '1') {
|
||||
|
Reference in New Issue
Block a user