Alternative to NRPE for Linux monitoring with Nagios Core

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Alternative to NRPE for Linux monitoring with Nagios Cor

Post by lmiltchev »

I just noticed something in your check_nrpe definition. You have:
define command{
command_name check_nrpe
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS -c $ARG1$
}
Change it to:
define command{
command_name check_nrpe
command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
and restart nagios.

Note: You were missing the dollar sign at the end... Let us know if this fixed your problem.
Be sure to check out our Knowledgebase for helpful articles and solutions!
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Alternative to NRPE for Linux monitoring with Nagios Cor

Post by neworderfac33 »

I bet that's it! Unfortunately, now it's Saturday so I won't be able to check it at work until Monday, but since the error messages are suggesting incorrectly specified hosts, it looks like you're correct.
I'll give you a shout on Monday, but in the meantime, thanks again for your valuable support.

Pete
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Alternative to NRPE for Linux monitoring with Nagios Cor

Post by neworderfac33 »

Yep - that was it - problem solved!

The Linux server is now giving correct results from within the web interface.

Thanks VERY much for your help - this thread can now be closed.

Pete
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Alternative to NRPE for Linux monitoring with Nagios Cor

Post by mcapra »

Glad you were able to find a solution! Closing this per your request.
Former Nagios employee
https://www.mcapra.com/
Locked