Page 3 of 3

Re: check_nrpe operations on windows

Posted: Tue Aug 28, 2018 12:38 pm
by Pierogi
OK, tgriep, I think you nailed it.

I went step-by-step through the article until I got to the "Update Configuration" File section. More specifically, it was the "allowed_hosts=" line in the "/usr/local/nagios/etc/nrpe.cfg" file. I swear I've looked at this and added before but I was missing my actual server IP address. It even says, "
At this point NRPE will only listen to requests from itself (127.0.0.1). If you wanted your nagios server to be able to connect, add it's IP address after a comma (in this example it's 10.25.5.2): allowed_hosts=127.0.0.1,10.25.5.2."

So I added the server IP after the loopback, ran the test and it looks like it is working (assuming the test below looks correct).

local:/usr/local/nagios/libexec$ ./check_nrpe -H 10.192.3.173
I (0.5.2.35 2018-01-28) seem to be doing fine...

Re: check_nrpe operations on windows

Posted: Tue Aug 28, 2018 1:06 pm
by tgriep
Glad it is working now. If you do not have any further questions, shall I close and lock the post for you?

Re: check_nrpe operations on windows

Posted: Tue Aug 28, 2018 11:40 pm
by Pierogi
If you don't mind, leave open just a bit longer. The command works on the client I was testing but not on another so I'm going to compare the nsclient.ini files to find the issue. It's likely my issue was on both ends.

Re: check_nrpe operations on windows

Posted: Wed Aug 29, 2018 8:16 am
by tgriep
OK, we'll leave it open.

Re: check_nrpe operations on windows

Posted: Wed Aug 29, 2018 1:40 pm
by Pierogi
OK, I think I'm set now.

These are the changes I made on the nsclient.ini file to get it working on the client side.

[/settings/external scripts]
allow nasty characters = false > changed to true
allow arguments = false > changed to true

[/settings/NRPE/server]
allow nasty characters = false > changed to true
allow arguments = false > changed to true
insecure = false > changed to true

Thanks again to everyone involved. Very much appreciate it.

Re: check_nrpe operations on windows

Posted: Wed Aug 29, 2018 2:10 pm
by npolovenko
Closing the thread as resolved.