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
Post
by pianunix » Wed Aug 13, 2014 6:39 am
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.
pianunix
Posts: 51 Joined: Tue Jul 22, 2014 3:08 am
Post
by pianunix » Wed Aug 13, 2014 11:12 pm
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
eloyd
Cool Title Here
Posts: 2129 Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:
Post
by eloyd » Thu Aug 14, 2014 9:07 am
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).
pianunix
Posts: 51 Joined: Tue Jul 22, 2014 3:08 am
Post
by pianunix » Thu Aug 14, 2014 10:32 pm
Still wont work at all.
Another solution ?
pianunix
Posts: 51 Joined: Tue Jul 22, 2014 3:08 am
Post
by pianunix » Fri Aug 15, 2014 1:18 am
Hi,
Is there any clue that i can use check_mailq command on exim that using cPanel ?
eloyd
Cool Title Here
Posts: 2129 Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:
Post
by eloyd » Fri Aug 15, 2014 7:28 am
Don't know anything about cPanel. Still thinking about options for you.
pianunix
Posts: 51 Joined: Tue Jul 22, 2014 3:08 am
Post
by pianunix » Mon Aug 18, 2014 10:08 pm
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
eloyd
Cool Title Here
Posts: 2129 Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:
Post
by eloyd » Wed Aug 20, 2014 8:16 am
Nagios user on remote host needs a valid login shell, not disabled:
nagios
496:497::/var/spool/nagios:/sbin/nologin
tmcdonald
Posts: 9117 Joined: Mon Sep 23, 2013 8:40 am
Post
by tmcdonald » Wed Aug 27, 2014 9:09 am
pianunix, haven't heard from you in a while. Did eloyd's advice help?
Former Nagios employee