NSClient++, NRPE client, and "allowed_hosts" ...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

NSClient++, NRPE client, and "allowed_hosts" ...

Post by PhilG »

Hello:
I've spent a number of hours attempting to research a question for my colleague:
When installing/configuring the NSClient++ agent on a Windows server and using "check_nt" only, is it required to include the local host IP, 127.0.0.1, in the "allowed_hosts" field?

Reason for asking:
When installing/configuring the NRPE client agent on a Linux server, the URL "http://assets.nagios.com/downloads/nagi ... utions.pdf" references the following:
"One thing to note is that localhost (127.0.0.1) should remain as it allows you to troubleshoot NRPE issues locally."
and URL "http://beginlinux.com/blog/2009/03/nagi ... with-nrpe/" references to include both the local host and monitoring server's IP:
"Nagios: Monitoring Windows Machines with NRPE:
Go to the global section, [Settings], and be sure to limit the access to the Windows server that you are going to monitor. Under the Allowed Hosts section enter the local host and any other connections that you want to enable. These addresses will be separated by a comma.
allowed_hosts=127.0.0.1/32,192.168.5.50
"
whereas, through all the documentation and discussions I've found about NSClient++, I've found references of using only the monitoring server IP, ex.
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
http://www.csti.inf.br/monitora/NSC.ini

NSClient++ is installed on the Windows servers with no issues and uses the NSC.INI, and the Nagios XI Windows Server Wizard was used to configure and monitoring for the Windows server is working with no issue. I can only think that it would be needed for testing only.
Newbie '14
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NSClient++, NRPE client, and "allowed_hosts" ...

Post by Box293 »

PhilG wrote:I can only think that it would be needed for testing only.
That's pretty much well it. I've ran NSClient++ in an environment without the 127.0.0.1 address without any issues.

From a "security" point of view, anyone logged onto that server locally could issue check_nt commands locally and one of those commands might be able to do something destructive. So removing the 127.0.0.1 prevents this possible security hole.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: NSClient++, NRPE client, and "allowed_hosts" ...

Post by PhilG »

Okay, thank you.

You may freeze this post.
Newbie '14
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: NSClient++, NRPE client, and "allowed_hosts" ...

Post by cmerchant »

We'll go ahead and close this thread. Thanks.
Locked