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!!
IP SLA critical alert
-
kalyanpabolu
- Posts: 246
- Joined: Fri Jul 03, 2020 4:18 am
IP SLA critical alert
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
Hi,
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
I haven't used this plugin before but it does look like you can set this up using percentages in the arguments, for example: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.
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!