I am looking for any insight to an issue that i hope is something very obvious that i have overlooked, but am having no luck solving myself.
I have a nagios server that is monitoring mail queue levels using the check_mailq plugin. All the hosts but the local machine are working fine (others are over nrpe). On the local host i have the following setup:
Code: Select all
define command{
command_name check_mailqns1
command_line /usr/bin/sudo /usr/lib64/nagios/plugins/check_mailq -w 200 -c 300
}
Code: Select all
define service{
use local-service
host_name ns1
service_description Mailserver Queue
check_command check_mailqns1
}
Code: Select all
nagios ALL=(ALL) NOPASSWD: ALLCode: Select all
-bash-4.1$ /usr/bin/sudo /usr/lib64/nagios/plugins/check_mailq -w 200 -c 300
OK: mailq (83) is below threshold (200/300)|unsent=83;200;300;0
Code: Select all
Current Status: WARNING
Status Information: (null)
I am just a bit confused and im not sure what else to go about trying next. As a side note, the mta is sendmail on this machine.