Page 1 of 1

IP SLA critical alert

Posted: Thu Apr 15, 2021 9:39 am
by kalyanpabolu
Hi Team,

I am using check_cisco_ip_sla.py plugin to check the IP SLA for network devices. The plugin is working perfectly fine. But, the problem is, it gives OK or warning if 1 out of 3 IP SLA is failed.

Example, We have 3 IP SLA on one router, 1 of them is failed, then the script returns warning on basis of some percentage.

What we want is, it should send critical alert even if 1 is failing. It should not have any concept of warning.

Example: For a device if we have 5 IP SLA, and if all are UP, it should send OK. If any of them fails, it should send critical.

I am attaching the script here. Please help me to modify the script so it returns the required output.

Thanks in advance!!

Re: IP SLA critical alert

Posted: Thu Apr 15, 2021 2:36 pm
by benjaminsmith
Hi,
Example: For a device if we have 5 IP SLA, and if all are UP, it should send OK. If any of them fails, it should send critical.
I haven't used this plugin before but it does look like you can set this up using percentages in the arguments, for example:

Code: Select all

./check_cisco_ip_sla.py --hostname 192.168.0.1 --community public --mode check --entries 10,20,30,40,50 --critical-pct 20
See: https://github.com/mhoogveld/check_cisco_ip_sla

If that does not work, alternatively, you could create 4 separate service checks for each entry, and use the BPI feature to create a grouping and notify if any one item has failed in the grouping.

We have a step-by-step guide on how to set up BPI in Nagios XI.

Nagios XI Using BPI In Nagios XI

Best Regards,
Benjamin