From 3a4a7ab23e5c136e904fc8f5d01f34533fac8d01 Mon Sep 17 00:00:00 2001 From: Mark Oudsen Date: Fri, 30 Jun 2023 10:16:29 +0200 Subject: [PATCH] v2.10 - Correction of incorrectly copied source file from different host --- mailGraph.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mailGraph.php b/mailGraph.php index f346190..3db1e75 100644 --- a/mailGraph.php +++ b/mailGraph.php @@ -520,7 +520,7 @@ $p_eventId = intval($problemData['eventId']); if (!isset($problemData['recipient'])) { echo "Missing RECIPIENT?\n"; die; } - $nt = $problemData['recipient']; + $p_recipient = $problemData['recipient']; if (!isset($problemData['duration'])) { echo "Missing DURATION?\n"; die; } $p_duration = intval($problemData['duration']); @@ -595,6 +595,7 @@ // Zabbix API user (requires Super Admin access rights) // --- Copy from Zabbix user and override when defined in configuration + // TODO: Check if information retreival can be done with less rigths $z_api_user = $z_user; $z_api_pass = $z_pass; @@ -718,7 +719,7 @@ 'selectTags'=>'extend', 'expandComment'=>1, 'expandDescription'=>1, - 'expandExpresion'=>1), + 'expandExpression'=>1), 'auth'=>$token, 'id'=>nextRequestID()); @@ -1030,7 +1031,7 @@ else { $otherGraphs[] = $aGraph; - _log('~ Graph #'.$aGraphItem['graphid'].' partial match found (item #'.$GraphItem['itemid'].')'); + _log('~ Graph #'.$aGraphItem['graphid'].' partial match found (item #'.$aGraphItem['itemid'].')'); } } }