NRPE Completely stumped

Harper Mann hmann at itgroundwork.com
Tue Aug 24 20:39:22 CEST 2004


You might try running check_nrpe with strace. Strace shows system calls.
There is also an ltrace for library calls.  There are RPMS for both off RHN.

> strace check_nrpe <args>

You can output to a file if there is too much.  You should be able to see
where it's hanging.

On the server side, run nrpe as a daemon with strace.  

> strace nrpe -c <config_file> -d

This will show if check_nrpe is connecting and perhaps why it doesn't run.  

If you want to run with xinetd, you can set this up after you see what's
happening.  

Also, check that /etc/services has NRPE defined:

nrpe            5666/tcp    # NRPE

xinetd won't run it if it's not there.

If it works as a daemon and not with xinetd, you can run strace on xinetd:

> strace -p <pid of xinetd>

See if xinetd attemps to run nrpe with a check_nrpe request.

You might also turn off tcpwrappers to test if you are using them.

Regards,

- Harper

Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of John Acar
Sent: Tuesday, August 24, 2004 9:19 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] NRPE Completely stumped

Hi all,

I am trying to run disk_checks on remote systems using nrpe.  I believe
that the nrpe daemon is configured ok and, of course, nagios is running
just fine.  This is all running on Red Hat 9 systems.  However, when the
check is run, either manually or through nagios, I get return code 3:
Unable to read output.

I have been through all of the archives and what little documentation
there is for nrpe and have even searched google for this problem but have
found no answers.  I have tried compiling with and without ssl but have
had no luck.  I am running Nagios v1.2 and nrpe 2.0 from the cvs
repository.

Any help or a pointer to an article that would help would be greatly
appreciated,

Cheers!

John

A good friend will come and bail you out of jail...but a true friend will
be sitting next to you saying, "Damn...that was fun!"


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list