the execution time is not really relevant here if it is near zero
but icinga gets a result and schedules the next check for “in 2h” your cronjob will hardly arrive in time. setting the check interval to a higher time than your cron in important. one thing that wouldn’t hurt is to set it to 2h5m
But you can also do something like this in reference to your 2h window:
- check_interval icinga 2h
- check_attempts icinga =1
- interval CRON 1h
icinga will check every 2 hours if there is problem
your checkresult gets submitted every hour and resets the clock for icinga to check again (in 2 hours)
here some more information: