From b2ebf778ac4418a9b43d1bf2a846ae8066cb2426 Mon Sep 17 00:00:00 2001 From: Mark Oudsen Date: Sat, 27 Feb 2021 22:44:23 +0100 Subject: [PATCH] Fixed issue with duration - not passed in seconds but formatted already - v1.10 --- mailGraph.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mailGraph.php b/mailGraph.php index ce158e0..94ea26e 100644 --- a/mailGraph.php +++ b/mailGraph.php @@ -337,7 +337,7 @@ $p_eventValue = intval($problemData['eventValue']); if (!isset($problemData['duration'])) { echo "Missing DURATION?\n"; die; } - $p_duration = intval($problemData['duration']); + $p_duration = $problemData['duration']; if (!isset($problemData['baseURL'])) { echo "Missing URL?\n"; die; } $p_URL = $problemData['baseURL']; @@ -652,7 +652,7 @@ $mailData['HOST_URL'] = $z_server.'/zabbix/hosts.php?form=update&hostid='.$mailData['HOST_ID']; $mailData['EVENTDETAILS_URL'] = $z_server.'/tr_events.php?triggerid='.$mailData['TRIGGER_ID'].'&eventid='.$mailData['EVENT_ID']; - $mailData['EVENT_DURATION'] = getNiceDuration($p_duration); + $mailData['EVENT_DURATION'] = $p_duration; ///////////////////////////////////////////////////////////////////////////////////////////////////////// // Compose & Send Message /////////////////////////////////////////////////////////////////////////////// @@ -741,4 +741,4 @@ file_put_contents($z_log_path.'log.'.$p_eventId.'.dump',$content); } -?> \ No newline at end of file +?>