I'm setting up nagios Core on AWS and remote hosts are Linux and Windows Servers. I'm able to make the Linux boxes to communicate and be monitored but the windows box is not working as of yet.
I have installed NSClient 0.5.2035, Opened security group for Nagios server adn teh Widnows remote host to talk on 12489 and 5666.
I can ping back and forth between Nagios and the Windows host. Both the Nagios server and the remotes are in the same subnet and should be able to communicate.
But so far, I can't get any of the command to run properly.
Errors from the NSClient Logs
Code: Select all
debug:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:67: Using regexp: UNKNOWN
2019-11-04 20:53:59: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckHelpers
2019-11-04 20:53:59: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckSystem
2019-11-04 20:53:59: error:c:\source\master\modules\CheckSystem\CheckSystem.cpp:226: Failed to load: disk_queue_length: Invalid strategy: UNKNOWN
2019-11-04 20:53:59: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckTaskSched
2019-11-04 20:53:59: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: CheckWMI
2019-11-04 20:53:59: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NRPEServer
2019-11-04 20:53:59: info:c:\source\master\modules\CheckSystem\pdh_thread.cpp:236: Not checking PDH data
2019-11-04 20:53:59: debug:c:\source\master\modules\NRPEServer\NRPEServer.cpp:126: Allowed hosts definition: <nagios_server_ip>
2019-11-04 20:53:59: debug:c:\source\master\modules\NRPEServer\NRPEServer.cpp:127: Server config: address: UNKNOWN:5666, ssl disabled
2019-11-04 20:54:02: error:B:\master\x64\dist\modules\NRPEServer\module.cpp:37: Exception in Failed to load NRPEServer: : resolve: No such host is known
2019-11-04 20:54:02: error:c:\source\master\service\plugin_manager.cpp:230: Plugin refused to load: NRPEServer
2019-11-04 20:54:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSCAClient
2019-11-04 20:54:02: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: NSClientServer
2019-11-04 20:54:02: debug:c:\source\master\modules\NSClientServer\NSClientServer.cpp:86: Allowed hosts definition: 10.108.8.8(255.255.255.255)
2019-11-04 20:54:04: error:c:\source\master\modules\NSClientServer\NSClientServer.cpp:105: Exception in start: resolve: No such host is known
2019-11-04 20:54:04: error:c:\source\master\service\plugin_manager.cpp:230: Plugin refused to load: NSClientServer
2019-11-04 20:54:04: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: Scheduler
2019-11-04 20:54:04: debug:c:\source\master\service\plugin_manager.cpp:227: Loading plugin: WebServer
Code: Select all
./check_nrpe -H <remote_server_ip>
connect to address <remote_server_ip> port 5666: Connection refused
connect to host <remote_server_ip> port 5666: Connection refused
Nagios Server UI is showing the following error for the host services:
Code: Select all
connect to address <IP> and port 12489: Connection refused
could not fetch information from server
Thanks!