# Problem with non-executing checks

**URL:** <https://community.icinga.com/t/problem-with-non-executing-checks/8728>\
**Category:** Icinga 2\
**Created:** [November 25, 2021, 2:23pm UTC](https://community.icinga.com/t/problem-with-non-executing-checks/8728 "2021-11-25T14:23:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![monitorinjunkie](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@monitorinjunkie](https://community.icinga.com/u/monitorinjunkie)\
**Post date:** [November 25, 2021, 2:23pm UTC](https://community.icinga.com/t/problem-with-non-executing-checks/8728/1 "2021-11-25T14:23:37Z")

</div>

- Version used 2.9

- Operating System Centos 7 x64

- Enabled features  
Enabled features: api checker command compatlog debuglog ido-mysql livestatus mainlog notification perfdata statusdata

- Icinga Web 2 version 2.6.1

Hello  
We have a serious problem with non-executing checks on an Icinga 2.9 instance at a customer. It happened that the system time was inadvertently set to a future year (!) for a short time, which means that almost all Icinga services got a “last check” time stamp in the future. This has now led to a permanent state of non-execution of all affected services. How can we enforce checking to resume? (Setting “next check” to now, anywhere, or restoring the “icinga” database didn’t help!)

![grafik](https://community.icinga.com/uploads/default/original/2X/6/6d85b5c476c7031115feabc21fae5b581447a4e6.png)

Thx

---

<div class="post-metadata">

**Author:** ![rsx](https://community.icinga.com/user_avatar/community.icinga.com/rsx/32/2094_2.png) [@rsx](https://community.icinga.com/u/rsx)\
**Post date:** [November 25, 2021, 2:41pm UTC](https://community.icinga.com/t/problem-with-non-executing-checks/8728/2 "2021-11-25T14:41:23Z")

</div>

I’d try:

```auto
systemctl stop icinga2
rm /var/lib/icinga2/icinga2.state
systemctl start icinga2

```

---

<div class="post-metadata">

**Author:** ![steaksauce](https://community.icinga.com/user_avatar/community.icinga.com/steaksauce/32/1831_2.png) [@steaksauce](https://community.icinga.com/u/steaksauce)\
**Post date:** [November 26, 2021, 1:57am UTC](https://community.icinga.com/t/problem-with-non-executing-checks/8728/3 "2021-11-26T01:57:25Z")

</div>

If this doesn’t work, I would imagine it’s reading for the next check from the state file or DB – you might need a way to clear out the last executed check timestamp from one or both of these locations (as well as the history for Icingaweb2 – those probably show future dates too I would imagine).

Off hand, I’m not sure if that information exists in the state file, database, or both, but iirc when Icinga2 restarts, it drops a lot of the db tables, and then populates them from the state file on start, so I would check there first. Also not sure if the db writes back to the state file, so maybe the DB is the place to start 😅

Worst case scenario, if nothing works, set up a new master, move the object to the new master, reconnect any agents/zones to the new master and see if that helps – but again I would only treat that as a last resort.

---

<div class="post-metadata">

**Author:** ![monitorinjunkie](https://community.icinga.com/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@monitorinjunkie](https://community.icinga.com/u/monitorinjunkie)\
**Post date:** [November 26, 2021, 6:34am UTC](https://community.icinga.com/t/problem-with-non-executing-checks/8728/4 "2021-11-26T06:34:37Z")

</div>

Hello Roland,

Supper.  
Has solved problem

Thx
