IP SLA critical alert

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kalyanpabolu
Posts: 246
Joined: Fri Jul 03, 2020 4:18 am

IP SLA critical alert

Post 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!!
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: IP SLA critical alert

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked