Using snmp to check mailq on remote host
Posted: Tue Nov 27, 2012 9:43 am
I have been able to check remote hosts using the snmp command to run the check_mailq command remotely. Unfortunately I can't get nagios to alarm based on the results. The check_mailq returns the proper alarm whether it be warn or critical but when the snmp returns this result you end up with SNMP - OK :Critical: mailq is 3 ..." and the service will always be green. I have been unable to find out how to get around this. It seems the snmp check always puts that OK at the beginning which causes nagios to think everything is good. I am using nagios 3.4.1