From d7bf71a6a1da97573035cd77b986a78e8768c61a Mon Sep 17 00:00:00 2001 From: Nicolas Roman Date: Wed, 10 Apr 2019 16:58:16 +0200 Subject: [PATCH] added API_ENDPOINT and API_KEY fields for the evomaintenance check config --- evocheck.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 26e38dd..f0cf1ce 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -1078,7 +1078,9 @@ check_evomaintenanceconf() { && grep "^FULLFROM" $f | grep -qv "John Doe " \ && grep "^URGENCYFROM" $f | grep -qv "mama.doe@example.com" \ && grep "^URGENCYTEL" $f | grep -qv "06.00.00.00.00" \ - && grep "^REALM" $f | grep -qv "example.com"; + && grep "^REALM" $f | grep -qv "example.com" \ + && grep "^API_ENDPOINT" $f | grep -qv "https://example.com/api/" \ + && grep "^API_KEY" $f | grep -qv "secretkey"; } || failed "IS_EVOMAINTENANCECONF" "evomaintenance is not correctly configured" else failed "IS_EVOMAINTENANCECONF" "Configuration file \`$f' is missing" -- 2.39.2