dynamic threshold

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
gfesj69
Posts: 59
Joined: Fri Jan 03, 2014 10:04 am
Location: Brazil

dynamic threshold

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: dynamic threshold

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gfesj69
Posts: 59
Joined: Fri Jan 03, 2014 10:04 am
Location: Brazil

Re: dynamic threshold

Post by gfesj69 »

Thanks!

Gerald
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: dynamic threshold

Post 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...
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
gfesj69
Posts: 59
Joined: Fri Jan 03, 2014 10:04 am
Location: Brazil

Re: dynamic threshold

Post by gfesj69 »

Thank you Scott!
Locked