nrpe + check_mail

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: nrpe + check_mail

Post by mmestnik »

This likely is just as the error describes, is this perhaps a new server that has yet to send an email?
renavas
Posts: 7
Joined: Thu Apr 22, 2010 5:14 am

Re: nrpe + check_mail

Post by renavas »

Hi.-

I should clarify that I am no expert user nagios not speak English.-

I have a server with the following characteristics:
cPanel 11.25.0-S44718 - WHM 11.25.0 - X 3.9
CENTOS standard 5.4 i686

nagios-plugins-1.4.14
nrpe 2.12

I installed the plugins and nrpe exactly like the nagios documentation states and other check work very well:
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_load
OK - load average: 0.07, 0.07, 0.06|load1=0.070;15.000;30.000;0; load5=0.070;10.000;25.000;0; load15=0.060;5.000;20.000;0;

This does not work with nrpe:
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_mailq
Mailqueue WARNING - query returned no output!

[/usr/local/nagios/libexec]# ./check_eximailqueue -w 800 -c 1000
Mailqueue OK - 159 messages on queue
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: nrpe + check_mail

Post by mmestnik »

http://go.nagios.com/forum/316/1360
At this point I'd say start stracing things. You'll want to compare the output of these:

Code: Select all

strace -fp $(pgrep nrped); # Then run the check_nrpe command.
strace ./check_eximailqueue
Locked