monitor a pc in another lan

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
r kuipers
Posts: 1
Joined: Fri Sep 02, 2011 8:23 am

monitor a pc in another lan

Post by r kuipers »

I would like to monitor a windows XP computer (let's call it A) that is in a private lan. My Nagios server is located in our public lan; it therefor can not connect to A. But, there is another windows XP pc (let's call it B), that has 2 network interfaces; one in public and one in private. Computer B has nsclient++ installed.

Is it possible to monitor computer A using computer B as a gateway?
crfriend
Posts: 61
Joined: Thu Sep 01, 2011 7:53 am
Location: Central New England (USA)
Contact:

Re: monitor a pc in another lan

Post by crfriend »

Based on the scene you set, your monitoring host will never be able to see system "A" directly, so an alternate path must he found.

You have hit upon host "B" as a logical gateway; however "nsclient++" is not the facility you likely need. If you can get a Windows build of NRPE working on system "B", you can use system "B" as a proxy to query system "A". In this case, a call from the monitoring system to the NRPE daemon on system "B" which then makes a "check_nrpe" call to system "A" should work. It's a kluge, to be sure, but it may get the results you're looking for. Just be sure to restrict access on the NRPE daemon on system "B" so it'll only answer requests from your monitoring host, and only allow certain specifically-defined commands -- especially if there's anything sensitive on "A"!
Locked