Configuration Help

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Jason126
Posts: 4
Joined: Mon Sep 23, 2013 4:56 pm

Configuration Help

Post by Jason126 »

Currently I am having problems with nagios gaining access to be able to retrieve service updates from workstations. Currently I have a workstation setup so that it will send CPU Usage, Disk Usage, Memory Usage, ect. The problem is is that nagios says "Connection Refused", When I attempt to reconfigure a particular workstation I receive the message "Configuration Verification failed". For some reason nagios cannot connect to any workstations. This is all in an internal network so no ports needs to be opened, NSClient++ is installed and windows firewall is turned off. I'm not sure what I might be missing.

Any help would be appreciated.

Thanks!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Configuration Help

Post by abrist »

Lets start by checking the ports from the XI server. On the XI server:

Code: Select all

nmap <ip of remote windows host> -p 12489
If it is closed, check to make sure that the service is running on the windows box.
If it is filtered, a network device is firewalling access to port 12489.
If it is open, move on to checking your password. On the XI server:

Code: Select all

/usr/local/nagios/libexec/check_nt -H <ip of windows server> -s "<password>" -p 12489 -v CLIENTVERSION
If you get the version back, then everything is working and the problem lies in your NSClient configuration file or the check configuration on the XI server.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Jason126
Posts: 4
Joined: Mon Sep 23, 2013 4:56 pm

Re: Configuration Help

Post by Jason126 »

I've attempted opening ports on both the windows machine and the nagios server, but It keeps saying that port 12489 is closed, I also did it on my sonicwall/firewall just incase and no go.

/usr/local/nagios/libexec/check_nt -H <ip of windows server> -s "<password>" -p 12489 -v CLIENTVERSION #This command returns back "Could not fetch information from server"

Is there something else I should be doing? NSClient++ is a running service.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Configuration Help

Post by lmiltchev »

Make sure that the NSClient++ service is running first. Next, run the following command on your nagios server and show the output (hide sensitive info):

Code: Select all

nmap <ip of remote windows host> -p 12489
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked