Page 1 of 1

dynamic threshold

Posted: Tue Feb 04, 2014 12:45 pm
by gfesj69
Hi everyone, we have a group of servers used to training our employees.
The normal thresold for CPU 80% W and 90% Critical, but during some periods, when they start the trainning (login at the servers) is normal that the CPU peak 95% during 5 to 10 minutes.

Some one know if it is possible to set 2 limits of Warning and Critial, depend the period of the day? some like this

8:00-8:10 AM / 01:00-01:15 PM / 06:00-06:15 PM - Warning 96% and Critical 98%
All other periods - Warning 80% and Critical 90%

Thanks for the help!

Geraldo

Re: dynamic threshold

Posted: Tue Feb 04, 2014 2:52 pm
by lmiltchev
There is no perfect solution to this. You can try increasing the retry interval and max check attempts, so that it is going to be more than 15 min... or you can create two separate checks with different time periods, and different warning and critical thresholds... or you can set a notification period that excludes the "training times", so that you won't be "flooded" with alerts. None of this is ideal, but there is no way to set the threshold dynamically.

Re: dynamic threshold

Posted: Tue Feb 04, 2014 6:43 pm
by gfesj69
Thanks!

Gerald

Re: dynamic threshold

Posted: Wed Feb 05, 2014 9:20 am
by scottwilkerson
Another more complicated option would be to create a wrapper script/plugin (and command) that takes both sets of thresholds and in the script does a determination based on current time, which set of thresholds to use and calls the underlying plugin from the wrapper...

Re: dynamic threshold

Posted: Wed Feb 05, 2014 4:09 pm
by gfesj69
Thank you Scott!