I'm having an issue with the check_eximmailqueue returning an error :<br><br>Mailqueue WARNING - query returned no output!<br><br>On the box being monitoring I can confirm the nagios user has access to the EXIM binary and can run the script locally.<br>
<br>[root@ns5 ~]# su - nagios<br>[nagios@ns5 ~]$ /usr/bin/sudo /usr/sbin/exim -bpc<br>262<br>[nagios@ns5 ~]$ /usr/local/nagios/libexec/check_eximmailqueue -w 200 -c 500<br>Mailqueue WARNING - 262 messages on queue<br><br>
However as soon as you access this via NRPE :<br><br>[nagios@ns5 ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_eximmailqueue<br>Mailqueue WARNING - query returned no output!<br>[nagios@ns5 ~]$ whoami<br>nagios<br>
[nagios@ns5 ~]$ cat /etc/sudoers | grep nagios<br>nagios ALL=NOPASSWD:/usr/sbin/exim<br>[nagios@ns5 ~]$<br><br>The same error is obtained if accessed remotely. Other commands are working fine. NRPE runs via xinetd :<br><br>
[root@ns5 libexec]# cat /etc/xinetd.d/nrpe<br># default: on<br># description: NRPE (Nagios Remote Plugin Executor)<br>service nrpe<br>{<br> flags = REUSE<br> socket_type = stream<br> port = 5666<br>
wait = no<br> user = nagios<br> group = nagios<br> server = /usr/local/nagios/bin/nrpe<br> server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd<br>
log_on_failure += USERID<br> disable = no<br> only_from = 127.0.0.1 x.x.x.x<br>}<br><br>I am unable to work out why this isn't working, the nrpe should run the script with the permissions of the nagios user. My check_eximmailqueue is v1.3.<br>
<br>Anthony<br><br>