Page 1 of 1

NRPE/NSClient

Posted: Tue Nov 20, 2012 5:40 pm
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?

Re: NRPE/NSClient

Posted: Tue Nov 20, 2012 5:44 pm
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?

Re: NRPE/NSClient

Posted: Tue Nov 20, 2012 6:02 pm
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?

Re: NRPE/NSClient

Posted: Tue Nov 20, 2012 6:10 pm
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?

Re: NRPE/NSClient

Posted: Tue Nov 20, 2012 8:09 pm
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