check_nrpe operations on windows

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.
Pierogi
Posts: 21
Joined: Thu Feb 15, 2018 10:28 am

Re: check_nrpe operations on windows

Post 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...
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nrpe operations on windows

Post by tgriep »

Glad it is working now. If you do not have any further questions, shall I close and lock the post for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Pierogi
Posts: 21
Joined: Thu Feb 15, 2018 10:28 am

Re: check_nrpe operations on windows

Post 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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nrpe operations on windows

Post by tgriep »

OK, we'll leave it open.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Pierogi
Posts: 21
Joined: Thu Feb 15, 2018 10:28 am

Re: check_nrpe operations on windows

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: check_nrpe operations on windows

Post by npolovenko »

Closing the thread as resolved.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked