Package: mon-contrib Version: 1.0+dfsg-3 Severity: normal Tags: patch softraid.monitor reports spurious errors on arrays that have bitmaps as they have routine changes to bitmap use that don't indicate any problems with the array. The following patch fixes this:
--- /usr/lib/mon/mon.d/softraid.monitor 2016-05-10 00:17:31.837348544 +1000 +++ /tmp/softraid.monitor 2016-05-10 01:10:05.187246570 +1000 @@ -67,7 +67,7 @@ # stops being read-only). # regular expression used because of kernel dependent output if [ "${1:-unset}" = "learn" ]; then - sed 's/active \?(auto-read-only)/active/' "$mdstat" > "$md_ref" + sed 's/active \?(auto-read-only)/active/' "$mdstat" |grep -v bitmap: > "$md_ref" [ $? -ne 0 ] && { echo "Writing to $md_ref failed."; exit 2; } fi if [ ! -r "$md_ref" ]; then @@ -77,7 +77,7 @@ exit 2 fi md_out="Complete contents of $mdstat:\n\n$(cat $mdstat)" -diff=$(diff -U 0 -w $md_ref <(sed 's/active \?(auto-read-only)/active/' $mdstat)) +diff=$(diff -U 0 -w $md_ref <(sed 's/active \?(auto-read-only)/active/' $mdstat | grep -v bitmap:)) stat=$? if [ $stat -eq 0 ]; then echo -e "$HOSTNAME\nSoftware RAID ok:\n$md_out" -- System Information: Debian Release: 8.4 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages mon-contrib depends on: ii mon 1.2.0-9 mon-contrib recommends no packages. mon-contrib suggests no packages. -- no debconf information -- debsums errors found: debsums: changed file /usr/lib/mon-contrib/mon.d/softraid.monitor (from mon-contrib package)