NRPE/NSClient

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

NRPE/NSClient

Post by yaanatech »

Hi All,

Running a NagiosXI server on CentOS 5.8 and need to monitor a Windows 2008 R2 server. I installed the agent and ran the config wizard. I set the allowed hosts to my nagiosxi server ip and can telnet to 5666, however check_nrpe wont make the ssl handshake. I looked at the configs and just se nsclient.cfg, which does have the allowed host ip set correctly, I am missing something, but I am not sure what.

Is there a good guide for monitoring a Windows 2008 R2 server on XI available?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE/NSClient

Post by slansing »

Have you made sure to check your NSCP/nsclient.ini file on the Windows machine and make sure that the:

Code: Select all

allowed_hosts=
value is set to your Nagios XI server's IP.

Also be sure to check the value of:

Code: Select all

use_ssl=
There is no direct guide for monitoring a Windows Server 2008 installation because of the large amounts of plugins available and different directions you can take. Is there something specific you are trying to accomplish?
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: NRPE/NSClient

Post by yaanatech »

I have "Allowed hosts=my_ip" and there was not an SSL entry, I added it but no go. Do I need to create an nrpe.cfg or ini file?
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: NRPE/NSClient

Post by yaanatech »

Ok, I changed this entry and it seems to be working;

Code: Select all

allowed hosts = 127.0.0.1
to

Code: Select all

allowed hosts = /127.0.0.1
The commands I suppose need to be adjusted, I have this entry;

Code: Select all

; check_ok - Alias for check_ok. To configure this item add a section called: /settings/external scripts/alias/check_ok
check_ok = CheckOK Everything is fine!
That path does not exist, scripts were installed to /scripts/ and only a couple seem to exist. Do I add entries like it was a command, same as nrpe.cfg?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE/NSClient

Post by scottwilkerson »

Actually, allowed_hosts should be set to your Nagios XI servers IP address

Also, use_ssl should be set to 1

Finally, after making the changes you need to restart the nsclient++ service
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked