I am having trouble getting the check_eximailqueue working with NRPE. I have gone through the page for the plugin and at this point I have gotten to the point where I am getting "CHECK_NRPE: No output returned from daemon." when running ./check_nrpe -H MYREMOTEHOSTNAME.COM -c check_eximailqueue -a '-w 1 -c 2' (running for check_cpu, etc work fine)
If I run it on the remote server directly it does come back with correct output with the command ./check_eximailqueue '-w 1 -c 2'
I have checked and changed the EXIM path and added the nagios ALL=NOPASSWD:/usr/local/exim/bin/exim AND nagios ALL=NOPASSWD:/usr/sbin/exim to the sudo users along with the command[check_eximailqueue]=/usr/local/nagios/libexec/check_eximailqueue -w $ARG1$ -c $ARG2$ to the /usr/local/nagios/etc/nrpe.cfg on the remote server.
RHEL 6.5 with cpanel
Anybody have any other suggestions to look at?
Thanks!
New plugin/check with NRPE - no output
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: New plugin/check with NRPE - no output
Your problem is this:rickb wrote:I am having trouble getting the check_eximailqueue working with NRPE. I have gone through the page for the plugin and at this point I have gotten to the point where I am getting "CHECK_NRPE: No output returned from daemon." when running ./check_nrpe -H MYREMOTEHOSTNAME.COM -c check_eximailqueue -a '-w 1 -c 2' (running for check_cpu, etc work fine)
Code: Select all
-a '-w 1 -c 2'Code: Select all
/usr/local/nagios/libexec/check_eximailqueue -w -w 1 -c 2 -c With this defined:
Code: Select all
command[check_eximailqueue]=/usr/local/nagios/libexec/check_eximailqueue -w $ARG1$ -c $ARG2$Code: Select all
./check_nrpe -H MYREMOTEHOSTNAME.COM -c check_eximailqueue -a 1 2Does this get you on the right path?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: New plugin/check with NRPE - no output
I understand what you where saying with the examples you gave back to me but every combination I did in the service configuration did not work correctly.
I ended up placing this in the /usr/local/nagios/etc/nrpe/common.cfg on the host
and using the other nrpe service checks configs that the wizard produced as a guide when we configured the host originally I used this.
Not really seeing why in the common it would work but not the nrpe.cfg?
Thanks for the help!
I ended up placing this in the /usr/local/nagios/etc/nrpe/common.cfg on the host
Code: Select all
command[check_eximailqueue]=/usr/local/nagios/libexec/check_eximailqueue.pl $ARG1$ $ARG2$
Code: Select all
$ARG1$ check_eximailqueue
$ARG2$ -a '-w 20 -c 30'
Thanks for the help!
Re: New plugin/check with NRPE - no output
That's a very good question. Did you maybe have it defined in both locations? That could cause it to overwrite, especially if one location had the correct definition and the other did not. Are you 100% sure it was defined properly regardless of where you placed it?
Former Nagios employee
Re: New plugin/check with NRPE - no output
You can define commands in either config (common.cfg or nrpe.cfg) - both should work. You can't have the same command defined in both files, though. If you have "duplicates" - comment out one of the commands.Not really seeing why in the common it would work but not the nrpe.cfg?
Be sure to check out our Knowledgebase for helpful articles and solutions!