Dynamic threshold according to time

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mhm
Posts: 1
Joined: Wed Sep 22, 2021 4:49 am

Dynamic threshold according to time

Post by mhm »

Hello everyone,

I would like to know if there is a way to create adaptive thresholds in Nagios for monitoring according to the time of the day. For example I want to have a different thresholds during the day and during the night. I know one solution can probably be to create separate config files and rotate them on a schedule, but this is not ideal. Are there any recommendations? Thanks in advance.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Dynamic threshold according to time

Post by benjaminsmith »

Hi,

That would be the easiest way to do it. It's not something built into XI or Core.

You could write a wrapper script for the plugin, and pass different thresholds depending on the time.

--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!
Locked