Random Project

result change + return code

I needed to change the result from 2.7.1 to 2.7.0 and I added the exit 1; otherwise the state won’t change in nagios. thanks for this script!

if ($result =~/2.7.0 Ok, discarded/) {
print “OK – All finen”
} else {
print “CRITICAL – amavisd-new returned $result”;
exit 1;
}