Connection Refused?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Thinkipsys
Posts: 1
Joined: Fri Jul 23, 2010 1:38 pm

Connection Refused?

Post by Thinkipsys »

Hello everyone, i m trying out Nagios Xi for the first time and i got everything up and running except that the workstation i m trying to monitor says connection refused for all the services such as cpu and memory usage. i m running Centos os on VM ware and i used the deployment wizard and installed the agent on the workstation. i searched the forums and web but havent found any usefull information.

Thanks in advanace and help or tips is highly appreciated! :D
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Connection Refused?

Post by mmestnik »

You will need to configure the NRPE config file for your host. You need to add the IP address that is being rejected(should be the one for the NagiosXI server).
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Connection Refused?

Post by Box293 »

This works for me.

Edit
C:\Program Files\NSClient++\NSC.ini

Add this to the very begining of the file:

Code: Select all

[modules]
NRPEListener.dll
NSClientListener.dll
NSCAAgent.dll
CheckWMI.dll
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
CheckEventLog.dll
CheckHelpers.dll
The scroll down to the [Settings] section.

If the IP address of your Nagios XI server is 192.168.1.1 then add the following line to the Settings section:

allowed_hosts=192.168.1.1

Save and close the NSC.ini file.
Restart the NSClient++ service (sometime can show up as NSClientpp)

All should work OK.

You can copy this NSC.ini file to each new host you install NSClient on.

If this does not work then it may be a Windows firewall issue. Temporarily turn off the Windows firewall and test again.

By default, the following ports are used by NSClient++:
12489 = check_nt command
5666 = check_nrpe command

I hope this helps sort your problem out.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked