nagios plugin check_md_raid: adapt to treat routine checks normally
Posted 08-14-2014 at 05:29 AM by catkin
Updated 08-14-2014 at 05:30 AM by catkin (Vertical spacing adjustment)
Updated 08-14-2014 at 05:30 AM by catkin (Vertical spacing adjustment)
Tags check_md_raid nagios
The problem
At least on Debian, md arrays are routinely checked monthly by /etc/cron.d/mdadm. During the check, the nagios plugin check_md_raid generates critical alerts.
The solution
In /usr/lib/nagios/plugins/check_md_raid, change
to
At least on Debian, md arrays are routinely checked monthly by /etc/cron.d/mdadm. During the check, the nagios plugin check_md_raid generates critical alerts.
The solution
In /usr/lib/nagios/plugins/check_md_raid, change
Code:
re_clean = re.compile('^clean(, no-errors)? $')
Code:
re_clean = re.compile('^clean(, (checking|no-errors))? $')
Total Comments 0