Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Hi.
One of my remote servers to check is using the check_mailq service check.
I am on Ubuntu 18.04 using postfix.
My service check result is: (Service check did not exit properly).
Can you show us the actual check run from the command line along with the output of it? Please add "-v" to the command (for verbose mode/debugging output).
Be sure to check out our Knowledgebase for helpful articles and solutions!
@steffi, Thank you. I would like to see how the check_mailqueue command is defined on your Nagios server.
The command is most likely located in this file:
/usr/local/nagios/etc/objects/commands.cfg
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
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.
So your command would need to be prefixed with sudo