[Nagiosplug-help] check_mailq, exim and nrpe
bohara at gmail.com
Tue Jul 5 03:14:22 CEST 2005
Ive just setup check_mailq running under nrpe to monitor an
exim mailq as follows
command[check_exim_queue]=/apps/nagios/libexec/check_mailq -w 75 -c
100 -W 25 -C 50 -M exim
Running from the command line
bash-3.00# /apps/nagios/libexec/check_mailq -w 75 -c 100 -W 25 -C 50 -M exim
Duplicate specification "Warning=i" for option "warning"
Duplicate specification "Critical=i" for option "critical"
OK: mailq (31) is below threshold (75/100)|unsent=31;75;100;0
Returns the correct results (ignore the error, this appears to be a
problem with the plugin)
However, when running from the monitoring host with check_nrpe it
returns 0 mails in the queue.
bash-2.03# ../libexec/check_nrpe -H dns1 -c check_exim_queue
OK: mailq (0) is below threshold (75/100)|unsent=0;75;100;0
Having looked through the code, check_mailq uses the defined
$PATH_TO_MAILQ = "/usr/bin/mailq"; from utils.pm
/usr/bin/mailq is a symlink to /usr/lib/sendmail which is a symlink to
nrpe is configured to run under the "nagios" user and su - nagios and
running the check locally returns the correct result.
Anyone seen this before? Got any ideas?
"The Internet is so big, so powerful and pointless that for some
people it is a complete substitute for life."
- Andrew Brown
More information about the Help