Page 1 of 1

Windows server monitoring

Posted: Fri Jun 17, 2016 6:19 pm
by orani
I want to monitor some remote windows servers with check_nt.

My problem is that the connections from the remote sights to the main (where nagios is) are with NAT.

I receive error to nagios web interface "could not fetch information from server"

If i disable NAT to the remote sight nagios works fine and i get the proper infos but when NAT is disabled some other services at the infrastructure does not work properly.

Is there any way to "bypass" this or change some settings to make it work??

Re: Windows server monitoring

Posted: Fri Jun 17, 2016 6:25 pm
by nozlaf
Two options I can think of
* use passive checks
* change your clients to use different ports and configure your nat to pass the correct ports to the correct servers

Re: Windows server monitoring

Posted: Fri Jun 17, 2016 6:31 pm
by orani
passive checks? How i can set this up???

NAT does not block anything. The problem is at the change of the ip i think not the port translation.

Re: Windows server monitoring

Posted: Sat Jun 18, 2016 5:57 am
by nozlaf
orani wrote:passive checks? How i can set this up???
depends on the client that you want to use

it is fairly easy with NCPA https://assets.nagios.com/downloads/ncp ... ation.html

you will need to run NRDP on your nagios server https://exchange.nagios.org/directory/A ... or/details


as for the issue around NAT I suggest port address translation because it would allow you to forward specific ports to specific hosts behind the nat allowing you to connect to the nat'd IP and run active checks, may be worth speaking to whoever setup your network

Re: Windows server monitoring

Posted: Sat Jun 18, 2016 7:44 am
by scottwilkerson
Thanks nozlaf!

Re: Windows server monitoring

Posted: Sat Jun 18, 2016 3:48 pm
by orani
Solved.

I set up a rule at firewall and "bypass" the NAT which causes the problem.