Nagios should be running as user/group nagios/nagios.
The fiiles in the libexec directory should have permissions of 755 and nagios.nagios.
What are your libexec files setup as, and your check_mailq especially.
That plugin checks on the local host and not on “your seperate server”.
try “-M sendmail” on your local host, instead of “-M qmail” and you will see that it most likely works.
well the Qmail is on this box, sendmail returns a good responce however the queue is empty (as it should be since I’m not running sendmail) I have disabled sendmail and am running qmail
This plugin uses the system mailq command (sendmail) or qmail-stat (qmail)
to look at the queues. Mailq can usually only be accessed by root or
a TrustedUser. You will have to set appropriate permissions for the plugin to work.