check_ping and warning/critical alerts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

check_ping and warning/critical alerts

Post by derekb »

Hi there,




I have a number of remote devices that we are monitoring with NRPE. We have these remote nodes set to use the following command in nrpe.cfg:
command[check_ping]=/usr/lib/nagios/plugins/check_ping -H $ARG1$ -w 40,5% -c 75,15%

From the XI interface, we’re using check_nrpe to run the remote command 3 times, 5 minutes between intervals. Again, this all works fine.

What I’m trying to accomplish is the following:
Check ping to the device IP specified in $ARG1$. If the first ping fails, device state would change to WARNING. Second attempt fails, WARNING. 3rd attempt fails, device state goes to CRITICAL.

How can we accomplish this?

We’re trying to eliminate unnecessary alerts, as a number of the remote nodes we’re monitoring via NRPE have very poor/unstable DSL connections which is leading to us getting a HUGE amount of false ‘Critical’ notifications. Perhaps something with flap detection may help?

Please let me know, thank you!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_ping and warning/critical alerts

Post by hsmith »

Hello -

It seems we have received a support ticket as well as this forum post. Would you like to continue support in the ticket or on the forums? If we have this open in both spots we end up wasting your time by asking you to do the same thing someone else may have already done in the other thread.
Former Nagios Employee.
me.
derekb
Posts: 177
Joined: Wed Jun 10, 2015 1:54 pm

Re: check_ping and warning/critical alerts

Post by derekb »

Whatever is quicker ! :)
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_ping and warning/critical alerts

Post by hsmith »

Hi Derek,

I am going to close this thread and we can focus on the ticket, since it is already open and sitting in our queue.

Thanks!
Former Nagios Employee.
me.
Locked