Checks that run once a day are intermittently stuck

There are some checks that run only once a day. They tend to get stuck every now and then.

The UI typically shows (example date):

Last check: on May 24
Next check: at 04:27

When I run them manually the check works fine and will work for some time.
UI will show then:

Last check 0m 11s ago
Next check: on Jun 1 18:15

Relevant configs

template Host "generic-host" {
  max_check_attempts = 10
  check_interval = 1m
  retry_interval = 30s

  check_period = "24x7" 
  check_command = "hostalive"

  vars.notification_period = "workhours"
object TimePeriod "24x7" {
  display_name = "Icinga 2 24x7 TimePeriod"
  ranges = {
    "monday" 	= "05:00-24:00"
    "tuesday" 	= "05:00-24:00"
    "wednesday" = "05:00-24:00"
    "thursday" 	= "05:00-24:00"
    "friday" 	= "05:00-24:00"
    "saturday" 	= "05:00-24:00"
    "sunday" 	= "05:00-24:00"
  }
}



object TimePeriod "workhours" {
  display_name = "Normal Work Hours"
  ranges = {
    "monday" 	= "07:00-24:00"
    "tuesday" 	= "07:00-24:00"
    "wednesday" = "07:00-24:00"
    "thursday" 	= "07:00-24:00"
    "friday" 	= "07:00-24:00"
    "saturday" 	= "10:00-24:00"
    "sunday" 	= "10:00-24:00"
  }
}
apply Service "Backup status" {
	import "generic-service"
	check_command = "check_imap_receive"
	check_interval = 1440m

	vars.imap_address = "aaa.coml"
	vars.imap_user = "aaa@aaa.org"
	vars.imap_password = "aaaaa"
	
	vars.header = host.vars.header
        vars.from = host.vars.from
	assign where host.vars.backup_email == true
}
object Host "KS-FS01" {
        import "KISS"
        display_name = "KS-FS01 (Synology)"
        address = "10.222.232.222"
	vars.synology_password = "asdA#3535"
	vars.synology_warningtemprature = "70"
	vars.synology_criticaltemprature = "80"



vars.backup_email[ "" ] = {
	
	vars.header = "Non Sensitive Data successful" 
	vars.seconds = "172800"
	vars.from = "KS-FS01"
	
}
	vars.backup_email = true
	vars.header = "Non Sensitive Data successful" 
	vars.from = "KS-FS01"
}

The type of check doesnt matter, being it a imap check, or SNMP check

icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.5-1)

Copyright (c) 2012-2022 Icinga GmbH (https://icinga.com/)
License GPLv2+: GNU GPL version 2 or later https://gnu.org/licenses/gpl2.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
Platform: Debian GNU/Linux
Platform version: 11 (bullseye)
Kernel: Linux
Kernel version: 5.10.0-16-amd64
Architecture: x86_64

Sensitive data was redacted

Hello @jortiexx!

Have you tried replacing 24:00 with, say, 23:50?

Best,
A/K