Windows server monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Windows server monitoring

Post 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??
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: Windows server monitoring

Post 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
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Windows server monitoring

Post 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.
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: Windows server monitoring

Post 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
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Windows server monitoring

Post by scottwilkerson »

Thanks nozlaf!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
orani
Posts: 169
Joined: Wed May 06, 2015 3:33 pm

Re: Windows server monitoring

Post by orani »

Solved.

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