From 4f3aceef5a55dc805b3947442d7f89e04f61294e Mon Sep 17 00:00:00 2001 From: laf Date: Sat, 20 Feb 2016 16:09:37 +0000 Subject: [PATCH] Added reason why device goes up/down to eventlog --- includes/polling/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/polling/functions.inc.php b/includes/polling/functions.inc.php index 69ad9b027..68c48fa94 100644 --- a/includes/polling/functions.inc.php +++ b/includes/polling/functions.inc.php @@ -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') {