Monitoring a server by ping from multiple locations

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
linker3000
Posts: 3
Joined: Wed Jan 04, 2012 11:26 am

Monitoring a server by ping from multiple locations

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring a server by ping from multiple locations

Post 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.
Former Nagios employee
linker3000
Posts: 3
Joined: Wed Jan 04, 2012 11:26 am

Re: Monitoring a server by ping from multiple locations

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring a server by ping from multiple locations

Post by slansing »

It should be pretty simple to create, I'd definitely follow these guidelines:

https://www.nagios-plugins.org/doc/guidelines.html
Locked