We are running Nagios for server monitoring, but are kicking around the idea of setting up a second instance from outside the network to check for connectivity issues outside the network. Is there a way to get a single Nagios instance to use multiple machines for a test? For example, we set up Nagios on nagios.domain.com to run the WebUI and do checking, and have nagios-child.domain.com just run checks.
I'd like to have nagios.domain.com and nagios-child.domain.com run a ping test against mysite.com and alert me if either one is down. Is this possible with Nagios or any other monitoring system?
For your situation, you can have the remote host just run NRPE checks. The primary Nagios server will be running checks using the remote host.
For example, on your current Nagios server, define:
and so on with whatever services you want.
On the nagios-remote box, in the NRPE configuration, have something like this in the nrpe.cfg:
and so on.
Essentially, you don't need to run a full blown Nagios server on the remote host. You just have to run the NRPE service to execute checks on behalf of the Nagios server on your main box.
Sure, you can.
If you only want to monitor
yoursite.com
from 2 servers, just duplicate the configuration./usr/local/nagios/etc/objects/commands.cfg
/usr/local/nagios/etc/foo/bar.cfg
But if you want to set up fully redundant failover Nagios servers, take a look at this.