Hi @akeilhofer and welcome to the checkmk community.
If you know the time thsi will happen you also can schedule a periodic downtime of this service. You can accomplish this via rule (Recurring downtimes for services) or via the action menu from your service.
If you don’t like to get notifications to this service at the rebuild time you also can set a rule to diasable the notification for this specific service via the rule Notification period for services.
Then I guess you need multiple rules with multiple definitions.
To my opinion behind:
And rebuild of an RAID will always be as situation which isn’t normal for a system. It can have an impact to the I/O performance and also is kind of an degraded state of your system/RAID. Additionally, if you set a rebuild state to OK you will never get informed about, if your RAID is rebuilding outside the cron planned rebuild.
Most Debian and Debian-derived distributions create a cron job which issues an array check at 0106 hours each first Sunday of the month in /etc/cron.d/mdadm. This task appears as resync in /proc/mdstat and syslog. So if you suddenly see RAID-resyncing for no apparent reason, this might be a place to take a look.
Hetzner seems to distribute these checks to various time by default, but nonetheless this seems odd to me.
Yeah, I know this behavior from hetzner. For mdstat rebuild or recheck is both the same, a syncing state. I actually have no software RAID system to see the output of the agent at this RAID recheck. Maybe it’s possible to modify the check to differ between rebuild and recheck.
Can you send me the output section of you agent at this situation?
The parse function for md have to be changed to get use to the third state check beside recovery and resync for the check function. It’s not an task of a few minutes. You can write a mail to feedback@checkmk.com or talk to one of the checkmk partners to build a extension pack for (by inserting coins).
If you are comfortable with python you can try on your own to get this working by copying the ~site/share/check_mk/checks/md file to ~site/local/share/check_mk/checks/md and changing it to you needs.