Page 3 of 3

Re: Alternative to NRPE for Linux monitoring with Nagios Cor

Posted: Fri Jul 08, 2016 1:05 pm
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.

Re: Alternative to NRPE for Linux monitoring with Nagios Cor

Posted: Sat Jul 09, 2016 4:00 am
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

Re: Alternative to NRPE for Linux monitoring with Nagios Cor

Posted: Mon Jul 11, 2016 6:34 am
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

Re: Alternative to NRPE for Linux monitoring with Nagios Cor

Posted: Mon Jul 11, 2016 9:05 am
by mcapra
Glad you were able to find a solution! Closing this per your request.