Page 1 of 2

Cant show exim queue

Posted: Wed Aug 13, 2014 6:39 am
by pianunix
Hi,

Is there any clue about this error :

Code: Select all

/usr/lib/nagios/plugins/check_nrpe -H server43012x -c check_exim
Mailqueue WARNING - query returned no output!
Pleas give us a clue about this ?

Thanks.

Re: Cant show exim queue

Posted: Wed Aug 13, 2014 9:12 am
by eloyd
Yes. It is most likely the same error you reported in http://support.nagios.com/forum/viewtop ... 8&start=10.

Re: Cant show exim queue

Posted: Wed Aug 13, 2014 11:12 pm
by pianunix
Hi,

I think centos wont recognize the nagios user

Code: Select all

su -l -c "/usr/lib/nagios/plugins/check_eximqueue -w 30 -c 50"  nagios 
This account is currently not available
but why the id of group was created ?

Code: Select all

]# id nagios
uid=496(nagios) gid=497(nagios) groups=497(nagios)

Code: Select all

 grep -ri 'nagios' /etc/passwd
nagios:x:496:497::/var/spool/nagios:/sbin/nologin
And when i executed as root the command was running just fine

Code: Select all

# /usr/lib/nagios/plugins/check_eximqueue -w 30 -c 50
Mailqueue CRITICAL - 71 messages on queue

Re: Cant show exim queue

Posted: Thu Aug 14, 2014 9:07 am
by eloyd
This is the exact same problem as your other one. You need to add the sudo command to your NRPE configuration (and possible your sudoers file).

Re: Cant show exim queue

Posted: Thu Aug 14, 2014 10:32 pm
by pianunix
Still wont work at all.

Another solution ?

Re: Cant show exim queue

Posted: Fri Aug 15, 2014 1:18 am
by pianunix
Hi,

Is there any clue that i can use check_mailq command on exim that using cPanel ?

Re: Cant show exim queue

Posted: Fri Aug 15, 2014 7:28 am
by eloyd
Don't know anything about cPanel. Still thinking about options for you.

Re: Cant show exim queue

Posted: Mon Aug 18, 2014 10:08 pm
by pianunix
Right know i'm stil using this modul to show exim queue, but only work on host server :?

Code: Select all

 /usr/lib/nagios/plugins/check_eximqueue -w 30 -c 50
Mailqueue WARNING - 45 messages on queue
but when trying to show from host monitor, we get output error like this :

Code: Select all

# /usr/lib/nagios/plugins/check_nrpe -H server43012x -c check_exim
NRPE: Unable to read output
This issue still wont solve, even i had fixed the permission nagios user, and also adding group exim to nagios but still cant work at all.

Is there any solution or clue about this ?

Thx

Re: Cant show exim queue

Posted: Wed Aug 20, 2014 8:16 am
by eloyd
Nagios user on remote host needs a valid login shell, not disabled:
nagios:x:496:497::/var/spool/nagios:/sbin/nologin

Re: Cant show exim queue

Posted: Wed Aug 27, 2014 9:09 am
by tmcdonald
pianunix, haven't heard from you in a while. Did eloyd's advice help?