Dynamic Interval for host and service checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
salami
Posts: 30
Joined: Tue Jun 26, 2018 4:36 am

Dynamic Interval for host and service checks

Post by salami »

Hi,
I need to have dynamic interval host or service checks based on host or service status. it means that when host or service is up or OK, i need to check it every 1 min and when status of host or service changed to Down or Critical, the check interval change to 5 min. if there is solution for this purpose, please help me.

thanks
jforcier

Re: Dynamic Interval for host and service checks

Post by jforcier »

You could set your check interval to 1 minute and your retry interval to 5 minutes. If you want it to continue checking every 5 minutes you would have to increase the max check attempts because it will revert back to the normal check interval once it reaches that limit.
check_interval: This directive is used to define the number of "time units" to wait before scheduling the next "regular" check of the service. "Regular" checks are those that occur when the service is in an OK state or when the service is in a non-OK state, but has already been rechecked max_check_attempts number of times.

retry_interval: This directive is used to define the number of "time units" to wait before scheduling a re-check of the service. Services are rescheduled at the retry interval when they have changed to a non-OK state. Once the service has been retried max_check_attempts times without a change in its status, it will revert to being scheduled at its "normal" rate as defined by the check_interval value.
salami
Posts: 30
Joined: Tue Jun 26, 2018 4:36 am

Re: Dynamic Interval for host and service checks

Post by salami »

Thanks for your reply.

Topic can be locked.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Dynamic Interval for host and service checks

Post by scottwilkerson »

salami wrote:Thanks for your reply.

Topic can be locked.
Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked