mirror of
https://github.com/moudsen/mailGraph
synced 2025-01-31 04:11:39 +01:00
Fixed issue with duration - not passed in seconds but formatted already - v1.10
This commit is contained in:
parent
e3cd9815d2
commit
b2ebf778ac
@ -337,7 +337,7 @@
|
|||||||
$p_eventValue = intval($problemData['eventValue']);
|
$p_eventValue = intval($problemData['eventValue']);
|
||||||
|
|
||||||
if (!isset($problemData['duration'])) { echo "Missing DURATION?\n"; die; }
|
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; }
|
if (!isset($problemData['baseURL'])) { echo "Missing URL?\n"; die; }
|
||||||
$p_URL = $problemData['baseURL'];
|
$p_URL = $problemData['baseURL'];
|
||||||
@ -652,7 +652,7 @@
|
|||||||
$mailData['HOST_URL'] = $z_server.'/zabbix/hosts.php?form=update&hostid='.$mailData['HOST_ID'];
|
$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['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 ///////////////////////////////////////////////////////////////////////////////
|
// Compose & Send Message ///////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user