Plugin check_md_raid

Daniel Bareiro daniel-listas at gmx.net
Mon May 6 02:58:29 CEST 2013


Hi all!

I'm trying the script check_md_raid [1] of Hari Sekhon (version 0.7.2).
It works correctly with Debian GNU/Linux Squeeze, but seems to have a
problem with the parsing in Debian GNU/Linux Wheezy (since yesterday is
stable).

I copy high verbose output:

-----------------------------------------------------------------------
sirius:~# /usr/local/nagios/libexec/non-std/check_md_raid.pl -vvv
finding all MD arrays via: /sbin/mdadm --detail --scan
found array /dev/md0
found array /dev/md1
found array /dev/md2
found array /dev/md3
Now testing raid device "/dev/md0"
/dev/md0:
        Version : 0.90
  Creation Time : Sat May 24 16:54:22 2008
     Raid Level : raid1
     Array Size : 979840 (957.04 MiB 1003.36 MB)
  Used Dev Size : 979840 (957.04 MiB 1003.36 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Sat Feb 16 22:55:30 2013
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 7ca3a761:0b7f8242:966549c2:cf5e5f4f
         Events : 0.28032

    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       1       8        1        1      active sync   /dev/sda1
Now testing raid device "/dev/md1"
/dev/md1:
        Version : 0.90
  Creation Time : Sat May 24 16:54:41 2008
     Raid Level : raid1
     Array Size : 96320 (94.08 MiB 98.63 MB)
  Used Dev Size : 96320 (94.08 MiB 98.63 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Sun May  5 21:46:33 2013
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : e6b6e28f:f1d35cb5:9000b848:259f4f40
         Events : 0.306356

    Number   Major   Minor   RaidDevice State
       0       8       18        0      active sync   /dev/sdb2
       1       8        2        1      active sync   /dev/sda2
Now testing raid device "/dev/md2"
/dev/md2:
        Version : 0.90
  Creation Time : Sat May 24 16:54:52 2008
     Raid Level : raid1
     Array Size : 1951808 (1906.38 MiB 1998.65 MB)
  Used Dev Size : 1951808 (1906.38 MiB 1998.65 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Sun May  5 21:46:33 2013
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : f1545e54:3ecbd06e:8a13b91c:feb5b20b
         Events : 0.2484914

    Number   Major   Minor   RaidDevice State
       0       8       19        0      active sync   /dev/sdb3
       1       8        3        1      active sync   /dev/sda3
Now testing raid device "/dev/md3"
/dev/md3:
        Version : 0.90
  Creation Time : Sat May 24 16:55:14 2008
     Raid Level : raid1
     Array Size : 484355780 (461.92 GiB 495.98 GB)
  Used Dev Size : 484355780 (461.92 GiB 495.98 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 3
    Persistence : Superblock is persistent

    Update Time : Sun May  5 21:46:33 2013
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : a18a76b5:cfe1950e:3e109807:c4b19353
         Events : 0.3107222

    Number   Major   Minor   RaidDevice State
       0       8       20        0      active sync   /dev/sdb4
       1       8        4        1      active sync   /dev/sda4
RAID CRITICAL: 4 arrays not ok - Array MD0 is in state "clean " (raid1), Array MD1 is in state "clean " (raid1), Array MD2 is in state "clean " (raid1), Array MD3 is in state "clean " (raid1) [4
arrays checked]
-----------------------------------------------------------------------

As you can see from the output, the four arrays are clean, but the
script displays a "CRITICAL" state.


Hari, if you're out there, do you know what could be the problem?


Thanks in advance for your reply.


Regards,
Daniel

[1] http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/Linux-Software-Raid-Plugin-for-32-2Dbit-and-64-2Dbit-systems/details
-- 
Daniel Bareiro
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Squeeze - Linux user #188.598
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130505/ec2c0782/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list