Page 1 of 2

not able to monitor windows 2008 server

Posted: Thu Feb 09, 2017 3:22 pm
by jtintegration
I am running Nagios XI 5.2.3, installed the NSClient ++ on the server. Within Confguration Wizard of Nagios, I select Windows Server (disk space, process, etc) Everything failed except Ping. I am not sure why it is not picking up other monitors except Ping. I am not sure what I am missing. thanks in advance

Re: not able to monitor windows 2008 server

Posted: Thu Feb 09, 2017 3:31 pm
by rkennedy
Can you show us the message that is being reported for the failed services?

Also, from the Windows machine, what is the output of these commands?

Code: Select all

netstat -na | findstr 12489
netstat -na | findstr 5666

Re: not able to monitor windows 2008 server

Posted: Thu Feb 09, 2017 4:40 pm
by jtintegration
here are the output from server

Re: not able to monitor windows 2008 server

Posted: Thu Feb 09, 2017 5:19 pm
by rkennedy
It looks like NSClientServer isn't turned on, just NRPE. If you used the default wizard, that would explain it. Please post your NSClient++ configuration file for us to review. (usually nscslient.ini)

Re: not able to monitor windows 2008 server

Posted: Thu Feb 09, 2017 5:58 pm
by jtintegration
I do not see NSCLIENTSERVER service within Windows 2008 Server. Here is the nsclient.ini

Re: not able to monitor windows 2008 server

Posted: Thu Feb 09, 2017 6:07 pm
by rkennedy
Add these parts to your configuration file under the respected section (might already exist, but I know the [/settings/NSClient/server] one isn't) -

Code: Select all

[/settings/default]
password = FPRi5c9ZQmCCOZll
[/modules]
NSClientServer = 1
[/settings/NSClient/server]
; PORT NUMBER - Port to use for check_nt.
port = 12489
then, restart the NSClient++ service. (nscp)

If you have further issues, this file is a good reference - https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: not able to monitor windows 2008 server

Posted: Mon Feb 13, 2017 2:31 pm
by jtintegration
It is still not working, please see screenshoot of nagios and ssh seesion from Nagios server. I also included the nsclient.ini. After made changes to the ini file, I did restart the Nsclient service.

Here is the ini file:
# If you want to fill this file with all available options run the following command:
# nscp settings --generate --add-defaults --load-all
# If you want to activate a module and bring in all its options use:
# nscp settings --activate-module <MODULE NAME> --add-defaults
# For details run: nscp settings --help


; TODO
[/settings/default]

; Undocumented key
password = FPRi5c9ZQmCCOZll

; Undocumented key
allowed hosts = 172.0.0.1,::1


; TODO
[/settings/NRPE/server]
; PORT NUMBER - Port to use for check_nt.
port = 12489

; Undocumented key
ssl options = no-sslv2,no-sslv3

; Undocumented key
verify mode = peer-cert

; Undocumented key
insecure = false


; TODO
[/modules]
NSClientServer = 1

; Undocumented key
CheckExternalScripts = 1

; Undocumented key
CheckHelpers = 1

; Undocumented key
CheckEventLog = 1

; Undocumented key
CheckNSCP = 1

; Undocumented key
CheckDisk = 1

; Undocumented key
CheckSystem = 1

; Undocumented key
NRPEServer = 1

Re: not able to monitor windows 2008 server

Posted: Mon Feb 13, 2017 3:37 pm
by rkennedy
; Undocumented key
allowed hosts = 172.0.0.1,::1
Is 172.0.0.1 the IP of the Nagios machine? Otherwise, you may need to adjust this, and then restart the nscp service. From there, I check out the nsclient.log to see if it's showing any indication as to what's going on.

Re: not able to monitor windows 2008 server

Posted: Mon Feb 13, 2017 4:55 pm
by jtintegration
I changed the ip address to the Nagios server but still getting following message on the nsclientl log file:

2017-02-13 12:20:20: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:24:21: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:24:35: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:25:18: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:29:18: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:29:32: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:30:17: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:34:16: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:34:30: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:35:16: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:39:15: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:39:29: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:40:14: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:44:13: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:44:28: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:45:10: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:49:12: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:49:26: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:50:10: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:54:10: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:54:24: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:55:08: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:59:08: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 12:59:22: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:00:05: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:04:07: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:04:21: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:05:04: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:09:04: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:09:18: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:10:01: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:14:03: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:14:16: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:15:00: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:19:01: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:19:15: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:19:58: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:23:59: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:24:13: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:24:56: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:28:57: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:29:12: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:29:53: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:33:55: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:34:10: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:34:53: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:38:53: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:39:09: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:39:52: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:43:53: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:44:08: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:44:51: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:48:50: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:49:06: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219
2017-02-13 13:49:49: error:c:\source\master\include\socket/connection.hpp:257: Failed to establish secure connection: short read: 219

Re: not able to monitor windows 2008 server

Posted: Mon Feb 13, 2017 6:00 pm
by tgriep
Try adding the following to the nsclient.ini file and restart the service and see if that fixes the checks that are failing.

Code: Select all

; Section for NSClient (NSClientServer.dll) (check_nt) protocol options.
[/settings/NSClient/server]

; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled.
use ssl = 0

; PERFORMANCE DATA - Send performance data back to Nagios (set this to 0 to remove all performance data).
performance data = 1

; PORT NUMBER - Port to use for check_nt.
port = 12489