We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

Unable to add AWS Windows Server for monitoring

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Unable to add AWS Windows Server for monitoring

Postby priyadhole » Wed Feb 23, 2022 3:18 am

Hello Team,

Unable to add windows server into nagios XI.
giving me "CRITICAL - Socket timeout" error for services.

Both Nagios server and windows machine both are in same vpc and having same subnet.

tried to add windows server with NSclient++,NCPA

Thanks in adv.
priyadhole
 
Posts: 2
Joined: Wed Feb 23, 2022 3:03 am

Re: Unable to add AWS Windows Server for monitoring

Postby gormank » Wed Feb 23, 2022 1:29 pm

Try running nmap -Pn from nagios to the windows host and post the nsclient/ncpa config from the windows host. Is the service running?
gormank
 
Posts: 992
Joined: Tue Dec 02, 2014 12:00 pm

Re: Unable to add AWS Windows Server for monitoring

Postby priyadhole » Thu Feb 24, 2022 3:11 am

Please find the output from nagios server to windows in attached SS.

installed NClient++ is installed by using below link :
https://assets.nagios.com/downloads/nagiosxi/docs/Installing-The-Windows-Agent-NSClient++-for-Nagios-XI.pdf

the output of nsclient/nspa config

C:\Program Files\NSClient++>nsclient config
'nsclient' is not recognized as an internal or external command,
operable program or batch file.


Code: Select all
C:\Program Files\NSClient++>ncpa config
'ncpa' is not recognized as an internal or external command,
operable program or batch file.


kindly guide me. Thanks in adv.
Attachments
Linux to Windows.PNG
priyadhole
 
Posts: 2
Joined: Wed Feb 23, 2022 3:03 am

Re: Unable to add AWS Windows Server for monitoring

Postby gormank » Fri Feb 25, 2022 3:41 pm

Have a look at you nsclient.ini, see what the port it will listen on and check allowed hosts. That should list you nagios server addresses or subnets.
Once you know the port and have set the allowed hosts look at windows services for nsclient and verify it's running.
From a windows cmd prompt try
netstat -an | find "port number from nsclient.ini"
Then from the shell on the nagios host
nmap -p<port number from nsclient.ini> <windows host IP>
If the windows host is listening on the port, and nagios doesn't see it as open, you may have a firewall between nagios and the windows host.
Maybe try
systemctl stop firewalld
on the nagios host and try again.
gormank
 
Posts: 992
Joined: Tue Dec 02, 2014 12:00 pm


Return to Community Support

Who is online

Users browsing this forum: No registered users and 23 guests