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
dynamic threshold
Re: dynamic threshold
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: dynamic threshold
Thanks!
Gerald
Gerald
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: dynamic threshold
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
Thank you Scott!