Page 1 of 1
Configuration Help
Posted: Mon Sep 23, 2013 5:12 pm
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!
Re: Configuration Help
Posted: Tue Sep 24, 2013 9:47 am
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.
Re: Configuration Help
Posted: Fri Sep 27, 2013 12:58 pm
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.
Re: Configuration Help
Posted: Fri Sep 27, 2013 1:39 pm
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