First Windows NSClient++ is not showing up as Host on Server
Posted: Thu Feb 15, 2018 3:02 pm
I'm new to Nagios and trying to setup a monitoring environment specific to our Windows and Exchange environment.
I've setup a Nagios Core Version 4.2.0 server on Ubunto 16.04. I'm learning a lot but still have a long way to go.
The server seems to be running like it should but I can't get my first host to show up in it. I've loaded NSClient++ 0.5.2035 on a Windows 2012 server, loaded the modules, configured the Allowed Hosts in the nsclient.ini but can't seem to get the host to show up on the server.
The logging has been switched to debug and I'm getting messages like this. Let's say the Nagios Core Server is 192.168.0.30. Doesn't this look healthy? Wouldn't I see the Windows Host client in the Nagios portal under Hosts? I have restarted the Nagios process on the server.
I'm probably missing something silly. Thanks for your patience.
2018-02-15 14:52:01: debug:c:\source\master\modules\NRPEServer\NRPEServer.cpp:126: Allowed hosts definition: 127.0.0.1(255.255.255.255), 192.168.0.30(255.255.255.255)
2018-02-15 14:52:01: debug:c:\source\master\modules\NRPEServer\NRPEServer.cpp:127: Server config: address: :5666, ssl enabled: none, cert: C:\Program Files\NSClient++/security/certificate.pem (PEM), , dh: C:\Program Files\NSClient++/security/nrpe_dh_512.pem, ciphers: ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH, ca: C:\Program Files\NSClient++/security/ca.pem, options:
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:111: Binding to: [::]:5666(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: [::]:5666(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:107: Binding to: 0.0.0.0:5666(ipv4), reopen: true, reuse: true
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: 0.0.0.0:5666(ipv4)
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSCAClient
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSCAServer
2018-02-15 14:52:02: debug:c:\source\master\modules\NSCAServer\NSCAServer.cpp:94: Allowed hosts definition: 127.0.0.1(255.255.255.255), 192.168.0.30(255.255.255.255)
2018-02-15 14:52:02: debug:c:\source\master\modules\NSCAServer\NSCAServer.cpp:95: Starting server on: address: :5667, ssl enabled: none, cert: C:\Program Files\NSClient++/security/certificate.pem (PEM), , dh: C:\Program Files\NSClient++/security/nrpe_dh_512.pem, ciphers: ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH, ca: C:\Program Files\NSClient++/security/ca.pem, options:
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:111: Binding to: [::]:5667(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: [::]:5667(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:107: Binding to: 0.0.0.0:5667(ipv4), reopen: true, reuse: true
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: 0.0.0.0:5667(ipv4)
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSClientServer
2018-02-15 14:52:02: debug:c:\source\master\modules\NSClientServer\NSClientServer.cpp:86: Allowed hosts definition: 127.0.0.1(255.255.255.255), 10.192.0.7(255.255.255.255)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:111: Binding to: [::]:12489(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: [::]:12489(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:107: Binding to: 0.0.0.0:12489(ipv4), reopen: true, reuse: true
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: 0.0.0.0:12489(ipv4)
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: PythonScript
2018-02-15 14:52:02: debug:c:\source\master\modules\PythonScript\python_script.cpp:93: boot python
2018-02-15 14:52:02: debug:c:\source\master\modules\PythonScript\python_script.cpp:108: Prepare python
2018-02-15 14:52:02: debug:c:\source\master\modules\PythonScript\python_script.cpp:115: init python
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: SMTPClient
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: Scheduler
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: SimpleCache
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: SimpleFileWriter
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: SyslogClient
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: WEBServer
2018-02-15 14:52:02: debug:c:\source\master\modules\WEBServer\WEBServer.cpp:161: Using certificate: C:\Program Files\NSClient++/security/certificate.pem
2018-02-15 14:52:02: debug:c:\source\master\modules\WEBServer\WEBServer.cpp:185: Loading webserver on port: 8443
2018-02-15 14:52:02: debug:c:\source\master\service\NSClient++.cpp:317: NSClient++ - 0.5.2.35 2018-01-28 Started!
2018-02-15 14:52:02: debug:c:\source\master\service\NSClient++.cpp:441: Starting: DONE
I should add that earlier, the log file ended with this but still no host in the portal. I changed the ssl option to true and seemed to give the new results above.
2018-02-15 08:38:09: debug:c:\source\master\include\nrpe/server/protocol.hpp:92: Accepting connection from: 192.168.0.30, count=1
2018-02-15 08:38:18: error:c:\source\master\include\socket/connection.hpp:273: Seems we other end is not using ssl: unknown protocol
2018-02-15 08:38:18: error:c:\source\master\include\socket/connection.hpp:274: Please review the ssl option as well as ssl options in settings.
I've setup a Nagios Core Version 4.2.0 server on Ubunto 16.04. I'm learning a lot but still have a long way to go.
The server seems to be running like it should but I can't get my first host to show up in it. I've loaded NSClient++ 0.5.2035 on a Windows 2012 server, loaded the modules, configured the Allowed Hosts in the nsclient.ini but can't seem to get the host to show up on the server.
The logging has been switched to debug and I'm getting messages like this. Let's say the Nagios Core Server is 192.168.0.30. Doesn't this look healthy? Wouldn't I see the Windows Host client in the Nagios portal under Hosts? I have restarted the Nagios process on the server.
I'm probably missing something silly. Thanks for your patience.
2018-02-15 14:52:01: debug:c:\source\master\modules\NRPEServer\NRPEServer.cpp:126: Allowed hosts definition: 127.0.0.1(255.255.255.255), 192.168.0.30(255.255.255.255)
2018-02-15 14:52:01: debug:c:\source\master\modules\NRPEServer\NRPEServer.cpp:127: Server config: address: :5666, ssl enabled: none, cert: C:\Program Files\NSClient++/security/certificate.pem (PEM), , dh: C:\Program Files\NSClient++/security/nrpe_dh_512.pem, ciphers: ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH, ca: C:\Program Files\NSClient++/security/ca.pem, options:
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:111: Binding to: [::]:5666(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: [::]:5666(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:107: Binding to: 0.0.0.0:5666(ipv4), reopen: true, reuse: true
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: 0.0.0.0:5666(ipv4)
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSCAClient
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSCAServer
2018-02-15 14:52:02: debug:c:\source\master\modules\NSCAServer\NSCAServer.cpp:94: Allowed hosts definition: 127.0.0.1(255.255.255.255), 192.168.0.30(255.255.255.255)
2018-02-15 14:52:02: debug:c:\source\master\modules\NSCAServer\NSCAServer.cpp:95: Starting server on: address: :5667, ssl enabled: none, cert: C:\Program Files\NSClient++/security/certificate.pem (PEM), , dh: C:\Program Files\NSClient++/security/nrpe_dh_512.pem, ciphers: ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH, ca: C:\Program Files\NSClient++/security/ca.pem, options:
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:111: Binding to: [::]:5667(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: [::]:5667(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:107: Binding to: 0.0.0.0:5667(ipv4), reopen: true, reuse: true
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: 0.0.0.0:5667(ipv4)
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSClientServer
2018-02-15 14:52:02: debug:c:\source\master\modules\NSClientServer\NSClientServer.cpp:86: Allowed hosts definition: 127.0.0.1(255.255.255.255), 10.192.0.7(255.255.255.255)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:111: Binding to: [::]:12489(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: [::]:12489(ipv6)
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:107: Binding to: 0.0.0.0:12489(ipv4), reopen: true, reuse: true
2018-02-15 14:52:02: debug:c:\source\master\include\socket/server.hpp:214: Attempting to bind to: 0.0.0.0:12489(ipv4)
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: PythonScript
2018-02-15 14:52:02: debug:c:\source\master\modules\PythonScript\python_script.cpp:93: boot python
2018-02-15 14:52:02: debug:c:\source\master\modules\PythonScript\python_script.cpp:108: Prepare python
2018-02-15 14:52:02: debug:c:\source\master\modules\PythonScript\python_script.cpp:115: init python
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: SMTPClient
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: Scheduler
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: SimpleCache
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: SimpleFileWriter
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: SyslogClient
2018-02-15 14:52:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: WEBServer
2018-02-15 14:52:02: debug:c:\source\master\modules\WEBServer\WEBServer.cpp:161: Using certificate: C:\Program Files\NSClient++/security/certificate.pem
2018-02-15 14:52:02: debug:c:\source\master\modules\WEBServer\WEBServer.cpp:185: Loading webserver on port: 8443
2018-02-15 14:52:02: debug:c:\source\master\service\NSClient++.cpp:317: NSClient++ - 0.5.2.35 2018-01-28 Started!
2018-02-15 14:52:02: debug:c:\source\master\service\NSClient++.cpp:441: Starting: DONE
I should add that earlier, the log file ended with this but still no host in the portal. I changed the ssl option to true and seemed to give the new results above.
2018-02-15 08:38:09: debug:c:\source\master\include\nrpe/server/protocol.hpp:92: Accepting connection from: 192.168.0.30, count=1
2018-02-15 08:38:18: error:c:\source\master\include\socket/connection.hpp:273: Seems we other end is not using ssl: unknown protocol
2018-02-15 08:38:18: error:c:\source\master\include\socket/connection.hpp:274: Please review the ssl option as well as ssl options in settings.