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?
monitor a pc in another lan
Re: monitor a pc in another lan
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"!
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"!