Page 1 of 1

Monitoring of a windows server in DMZ

Posted: Thu Sep 08, 2016 4:12 am
by sth_bytelab
HI

I would like to monitor a windows 2008 server through Nagios. I have installed the NSClient++ on the server and opened up for both port=12489 and 5666 but the only check I can performe is ping.
If a try any other check I get the attached error message.
Do you have any ideas on what to try?

Thank you!

Re: Monitoring of a windows server in DMZ

Posted: Thu Sep 08, 2016 10:20 am
by rkennedy
From the Windows machine, what is the output of the following?

Code: Select all

netstat -an | findstr 5666
netstat -an | findstr 12489
This will help to see if the server is listening on the ports.

Then, take a look at your nsclient log file, and please post it for us to view.

Re: Monitoring of a windows server in DMZ

Posted: Thu Sep 15, 2016 5:40 am
by sth_bytelab
Thanks so much for the help!
I have tried to check if the server is listening on the ports using the commands you listed.
Both commands confirmed that the server was listening on both ports.
I have checked the and there appears to be many erros: "Unauthorize access from: 10.0.2.1" - this seems to be the problem.

Re: Monitoring of a windows server in DMZ

Posted: Thu Sep 15, 2016 5:52 am
by sth_bytelab
I solved the problem myself - I just had to add an extra allowed host. I seemed that I need to go through an extra host to reach the DMZ server.

Re: Monitoring of a windows server in DMZ

Posted: Thu Sep 15, 2016 10:49 am
by rkennedy
Ah! Good to see you got it added and figured out.

Going to close this one out, feel free to make a new thread in the future.