Cant show exim queue

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.
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Cant show exim queue

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Cant show exim queue

Post by eloyd »

Yes. It is most likely the same error you reported in http://support.nagios.com/forum/viewtop ... 8&start=10.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Cant show exim queue

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Cant show exim queue

Post 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).
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Cant show exim queue

Post by pianunix »

Still wont work at all.

Another solution ?
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Cant show exim queue

Post by pianunix »

Hi,

Is there any clue that i can use check_mailq command on exim that using cPanel ?
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Cant show exim queue

Post by eloyd »

Don't know anything about cPanel. Still thinking about options for you.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
pianunix
Posts: 51
Joined: Tue Jul 22, 2014 3:08 am

Re: Cant show exim queue

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Cant show exim queue

Post by eloyd »

Nagios user on remote host needs a valid login shell, not disabled:
nagios:x:496:497::/var/spool/nagios:/sbin/nologin
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Cant show exim queue

Post by tmcdonald »

pianunix, haven't heard from you in a while. Did eloyd's advice help?
Former Nagios employee
Locked