From 42c4a20b1f9b96c33bc09203a6d6db8eaa3fbfe7 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Mon, 6 Nov 2017 18:41:38 +0100 Subject: [PATCH] nagios-nrpe: fix expected return message of test mail --- nagios-nrpe/files/plugins/check_amavis | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nagios-nrpe/files/plugins/check_amavis b/nagios-nrpe/files/plugins/check_amavis index 7b82cd93..d364dba3 100755 --- a/nagios-nrpe/files/plugins/check_amavis +++ b/nagios-nrpe/files/plugins/check_amavis @@ -65,7 +65,7 @@ $smtp->close(); print "$result\n"; -if ($result =~/2.7.0 Ok, discarded/) { +if ($result =~/2.5.0 Ok, id=[^,]+, BOUNCE/) { print "OK - All fine\n"; exit 0; } else {