Page 1 of 1

BPI - how to alert if % is above a threshold

Posted: Tue Oct 18, 2016 3:55 pm
by gsl_ops_practice
Hello,

My understanding of BPI is that I can set a warning and critical thresholds, below which the BPI group will generate events, if coupled with a BPI service check.

At present, we have a set of services running on one host out of 3, so the critical threshold is set to 30% and this has been tested and it works brilliantly.

However, I need to make sure that these same services do not run on more than one host at a time. Is there a way to set up BPI so that we will get a Critical at below 30% and above 34%?

Thank you

Re: BPI - how to alert if % is above a threshold

Posted: Tue Oct 18, 2016 5:09 pm
by ssax
Not currently, you may be able to get around it by creating another service that utilizes the check_cluster plugin:

https://assets.nagios.com/downloads/nag ... sters.html

Re: BPI - how to alert if % is above a threshold

Posted: Wed Oct 19, 2016 10:00 am
by gsl_ops_practice
Hello,

Based on my understanding of the check_cluster, the logic is the same as for BPI, you can define a less-than threshold, but not greater than.

I would appreciate it if you can raise a feature request for a future version to add this functionality into BPI. Even if the cluster plugin could work, the process of getting a NagiosCore plugin out of github into an enterprise tool really does not appeal.

Thank you.

Re: BPI - how to alert if % is above a threshold

Posted: Wed Oct 19, 2016 3:22 pm
by lmiltchev
Based on my understanding of the check_cluster, the logic is the same as for BPI, you can define a less-than threshold, but not greater than.
Can you show us the actual command that you are running along with the output of it?

You could probably use "x:" (<x) for your thresholds in order to solve the issue... Read more about thresholds and ranges here:
https://nagios-plugins.org/doc/guidelin ... HOLDFORMAT