[Nagiosplug-help] check_eximmailqueue returning error

Anthony Stirk upuaut at gmail.com
Tue Jul 19 17:21:48 CEST 2011


I'm having an issue with the check_eximmailqueue returning an error :

Mailqueue WARNING - query returned no output!

On the box being monitoring I can confirm the nagios user has access to the
EXIM binary and can run the script locally.

[root at ns5 ~]# su - nagios
[nagios at ns5 ~]$ /usr/bin/sudo /usr/sbin/exim -bpc
262
[nagios at ns5 ~]$ /usr/local/nagios/libexec/check_eximmailqueue -w 200 -c 500
Mailqueue WARNING - 262 messages on queue

However as soon as you access this via NRPE :

[nagios at ns5 ~]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c
check_eximmailqueue
Mailqueue WARNING - query returned no output!
[nagios at ns5 ~]$ whoami
nagios
[nagios at ns5 ~]$ cat /etc/sudoers | grep nagios
nagios  ALL=NOPASSWD:/usr/sbin/exim
[nagios at ns5 ~]$

The same error is obtained if accessed remotely. Other commands are working
fine. NRPE runs via xinetd :

[root at ns5 libexec]# cat /etc/xinetd.d/nrpe
# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
        flags           = REUSE
        socket_type     = stream
        port            = 5666
        wait            = no
        user            = nagios
        group           = nagios
        server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
        log_on_failure  += USERID
        disable         = no
        only_from       = 127.0.0.1 x.x.x.x
}

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.

Anthony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20110719/efca0f8b/attachment.html>


More information about the Help mailing list