Page 1 of 1

Dynamic threshold according to time

Posted: Thu Sep 23, 2021 3:22 am
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.

Re: Dynamic threshold according to time

Posted: Thu Sep 23, 2021 4:40 pm
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