Page 1 of 1
Monitoring a server by ping from multiple locations
Posted: Wed Nov 20, 2013 10:07 am
by linker3000
Hi,
Is is possible to monitor a server using PING from multiple (say, 3) locations and for a central Nagios instance to pool the results to determine whether the server status is OK (3/3 PINGs OK), WARNING (2/3 PINGS OK) and ERROR (<2 PINGS OK).
Thanks
Re: Monitoring a server by ping from multiple locations
Posted: Wed Nov 20, 2013 10:12 am
by tmcdonald
Is this directly possible? No. However you could have a script which, when called, instructs the three servers to run the pings. The script would have to handle the responses and then report that back to Nagios. Look into NRPE (Nagios Remote Plugin Executor) for executing the pings.
Re: Monitoring a server by ping from multiple locations
Posted: Wed Nov 20, 2013 10:43 am
by linker3000
Thanks - I was hoping for an off-the-shelf solution rather than roll-my-own. Looks like I may have to do some scripting after all.
Re: Monitoring a server by ping from multiple locations
Posted: Wed Nov 20, 2013 10:54 am
by slansing
It should be pretty simple to create, I'd definitely follow these guidelines:
https://www.nagios-plugins.org/doc/guidelines.html