User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Y-GMX-Trusted: 0 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 Subject: Re: [Nagios-users] Monitoring software RAID in Debian GNU/Linux X-BeenThere: nagios-users@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list Reply-To: [EMAIL PROTECTED] List-Id: Nagios Users List <nagios-users.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/nagios-users>, <mailto:[EMAIL PROTECTED]> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=nagios-users> List-Post: <mailto:nagios-users@lists.sourceforge.net> List-Help: <mailto:[EMAIL PROTECTED]> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/nagios-users>, <mailto:[EMAIL PROTECTED]> Content-Type: multipart/mixed; boundary="===============1950325105==" Sender: [EMAIL PROTECTED] Errors-To: [EMAIL PROTECTED] X-pstn-neptune: 3/1/0.33/61 X-pstn-levels: (S:99.90000/99.90000 CV:99.0000 R:95.9108 P:95.9108 M:97.0282 C:98.6951 ) X-pstn-settings: 4 (1.5000:1.5000) s cv gt3 gt2 gt1 r p m c X-pstn-addresses: from <[EMAIL PROTECTED]> [294/10]
--===============1950325105== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wednesday, 07 May 2008 13:07:47 +0100, Hari Sekhon wrote: > Hi Daniel, Hi Hari! > Could you please try version 0.7.2 on nagiosexchange and let me know = =20 > how you get on. Sure! ##################### Initial state ####################### xenhost7:~# ./check_md_raid.pl.072 -vvv finding all MD arrays via: /sbin/mdadm --detail --scan found array /dev/md0 found array /dev/md1 found array /dev/md2 Now testing raid device "/dev/md0" /dev/md0: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:04 2008 Raid Level : raid1 Array Size : 979840 (957.04 MiB 1003.36 MB) Device Size : 979840 (957.04 MiB 1003.36 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun May 4 01:06:13 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 956ff562:7ba15903:6068b800:4a673998 Events : 0.4 Number Major Minor RaidDevice State 0 8 1 0 active sync /dev/sda1 1 8 17 1 active sync /dev/sdb1 Now testing raid device "/dev/md1" /dev/md1: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:15 2008 Raid Level : raid1 Array Size : 19534976 (18.63 GiB 20.00 GB) Device Size : 19534976 (18.63 GiB 20.00 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Tue May 13 14:17:18 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 119bcdde:0ac351b2:d05e4382:e6def213 Events : 0.9846 Number Major Minor RaidDevice State 0 8 2 0 active sync /dev/sda2 1 8 18 1 active sync /dev/sdb2 Now testing raid device "/dev/md2" /dev/md2: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:25 2008 Raid Level : raid1 Array Size : 292053568 (278.52 GiB 299.06 GB) Device Size : 292053568 (278.52 GiB 299.06 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 2 Persistence : Superblock is persistent Update Time : Sun May 4 02:31:57 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8d954d13:82dabd5b:096fe691:7819c2d2 Events : 0.10 Number Major Minor RaidDevice State 0 8 3 0 active sync /dev/sda3 1 8 19 1 active sync /dev/sdb3 RAID OK: All arrays OK [3 arrays checked] xenhost7:~# mdadm --detail /dev/md{0..2} /dev/md0: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:04 2008 Raid Level : raid1 Array Size : 979840 (957.04 MiB 1003.36 MB) Device Size : 979840 (957.04 MiB 1003.36 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun May 4 01:06:13 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 956ff562:7ba15903:6068b800:4a673998 Events : 0.4 Number Major Minor RaidDevice State 0 8 1 0 active sync /dev/sda1 1 8 17 1 active sync /dev/sdb1 /dev/md1: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:15 2008 Raid Level : raid1 Array Size : 19534976 (18.63 GiB 20.00 GB) Device Size : 19534976 (18.63 GiB 20.00 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Tue May 13 14:21:54 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 119bcdde:0ac351b2:d05e4382:e6def213 Events : 0.9846 Number Major Minor RaidDevice State 0 8 2 0 active sync /dev/sda2 1 8 18 1 active sync /dev/sdb2 /dev/md2: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:25 2008 Raid Level : raid1 Array Size : 292053568 (278.52 GiB 299.06 GB) Device Size : 292053568 (278.52 GiB 299.06 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 2 Persistence : Superblock is persistent Update Time : Sun May 4 02:31:57 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8d954d13:82dabd5b:096fe691:7819c2d2 Events : 0.10 Number Major Minor RaidDevice State 0 8 3 0 active sync /dev/sda3 1 8 19 1 active sync /dev/sdb3 ##################### Removing /dev/sdb2 ####################### xenhost7:~# ./check_md_raid.pl.072 -vvv finding all MD arrays via: /sbin/mdadm --detail --scan found array /dev/md0 found array /dev/md1 found array /dev/md2 Now testing raid device "/dev/md0" /dev/md0: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:04 2008 Raid Level : raid1 Array Size : 979840 (957.04 MiB 1003.36 MB) Device Size : 979840 (957.04 MiB 1003.36 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun May 4 01:06:13 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 956ff562:7ba15903:6068b800:4a673998 Events : 0.4 Number Major Minor RaidDevice State 0 8 1 0 active sync /dev/sda1 1 8 17 1 active sync /dev/sdb1 Now testing raid device "/dev/md1" /dev/md1: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:15 2008 Raid Level : raid1 Array Size : 19534976 (18.63 GiB 20.00 GB) Device Size : 19534976 (18.63 GiB 20.00 GB) Raid Devices : 2 Total Devices : 1 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Tue May 13 14:42:58 2008 State : clean, degraded Active Devices : 1 Working Devices : 1 Failed Devices : 0 Spare Devices : 0 UUID : 119bcdde:0ac351b2:d05e4382:e6def213 Events : 0.9910 Number Major Minor RaidDevice State 0 8 2 0 active sync /dev/sda2 1 0 0 1 removed Now testing raid device "/dev/md2" /dev/md2: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:25 2008 Raid Level : raid1 Array Size : 292053568 (278.52 GiB 299.06 GB) Device Size : 292053568 (278.52 GiB 299.06 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 2 Persistence : Superblock is persistent Update Time : Sun May 4 02:31:57 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8d954d13:82dabd5b:096fe691:7819c2d2 Events : 0.10 Number Major Minor RaidDevice State 0 8 3 0 active sync /dev/sda3 1 8 19 1 active sync /dev/sdb3 RAID CRITICAL: 1 array not ok - Array MD1 is in state "clean, degraded" (ra= id1) [3 arrays checked] xenhost7:~# mdadm --detail /dev/md{0..2} /dev/md0: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:04 2008 Raid Level : raid1 Array Size : 979840 (957.04 MiB 1003.36 MB) Device Size : 979840 (957.04 MiB 1003.36 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun May 4 01:06:13 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 956ff562:7ba15903:6068b800:4a673998 Events : 0.4 Number Major Minor RaidDevice State 0 8 1 0 active sync /dev/sda1 1 8 17 1 active sync /dev/sdb1 /dev/md1: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:15 2008 Raid Level : raid1 Array Size : 19534976 (18.63 GiB 20.00 GB) Device Size : 19534976 (18.63 GiB 20.00 GB) Raid Devices : 2 Total Devices : 1 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Tue May 13 14:41:50 2008 State : clean, degraded Active Devices : 1 Working Devices : 1 Failed Devices : 0 Spare Devices : 0 UUID : 119bcdde:0ac351b2:d05e4382:e6def213 Events : 0.9900 Number Major Minor RaidDevice State 0 8 2 0 active sync /dev/sda2 1 0 0 1 removed /dev/md2: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:25 2008 Raid Level : raid1 Array Size : 292053568 (278.52 GiB 299.06 GB) Device Size : 292053568 (278.52 GiB 299.06 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 2 Persistence : Superblock is persistent Update Time : Sun May 4 02:31:57 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8d954d13:82dabd5b:096fe691:7819c2d2 Events : 0.10 Number Major Minor RaidDevice State 0 8 3 0 active sync /dev/sda3 1 8 19 1 active sync /dev/sdb3 ##################### Adding /dev/sdb2 ####################### xenhost7:~# ./check_md_raid.pl.072 -vvv finding all MD arrays via: /sbin/mdadm --detail --scan found array /dev/md0 found array /dev/md1 found array /dev/md2 Now testing raid device "/dev/md0" /dev/md0: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:04 2008 Raid Level : raid1 Array Size : 979840 (957.04 MiB 1003.36 MB) Device Size : 979840 (957.04 MiB 1003.36 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun May 4 01:06:13 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 956ff562:7ba15903:6068b800:4a673998 Events : 0.4 Number Major Minor RaidDevice State 0 8 1 0 active sync /dev/sda1 1 8 17 1 active sync /dev/sdb1 Now testing raid device "/dev/md1" /dev/md1: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:15 2008 Raid Level : raid1 Array Size : 19534976 (18.63 GiB 20.00 GB) Device Size : 19534976 (18.63 GiB 20.00 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Tue May 13 16:09:50 2008 State : clean, degraded, recovering Active Devices : 1 Working Devices : 2 Failed Devices : 0 Spare Devices : 1 Rebuild Status : 6% complete UUID : 119bcdde:0ac351b2:d05e4382:e6def213 Events : 0.10360 Number Major Minor RaidDevice State 0 8 2 0 active sync /dev/sda2 2 8 18 1 spare rebuilding /dev/sdb2 Now testing raid device "/dev/md2" /dev/md2: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:25 2008 Raid Level : raid1 Array Size : 292053568 (278.52 GiB 299.06 GB) Device Size : 292053568 (278.52 GiB 299.06 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 2 Persistence : Superblock is persistent Update Time : Sun May 4 02:31:57 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8d954d13:82dabd5b:096fe691:7819c2d2 Events : 0.10 Number Major Minor RaidDevice State 0 8 3 0 active sync /dev/sda3 1 8 19 1 active sync /dev/sdb3 RAID WARNING: 1 array not ok - Array "MD1" is in state "clean, degraded, recovering" (raid1) - Rebuild Status : 6% complete [3 arrays checked] xenhost7:~# mdadm --detail /dev/md{0..2} /dev/md0: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:04 2008 Raid Level : raid1 Array Size : 979840 (957.04 MiB 1003.36 MB) Device Size : 979840 (957.04 MiB 1003.36 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sun May 4 01:06:13 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 956ff562:7ba15903:6068b800:4a673998 Events : 0.4 Number Major Minor RaidDevice State 0 8 1 0 active sync /dev/sda1 1 8 17 1 active sync /dev/sdb1 /dev/md1: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:15 2008 Raid Level : raid1 Array Size : 19534976 (18.63 GiB 20.00 GB) Device Size : 19534976 (18.63 GiB 20.00 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Tue May 13 16:11:29 2008 State : clean, degraded, recovering Active Devices : 1 Working Devices : 2 Failed Devices : 0 Spare Devices : 1 Rebuild Status : 43% complete UUID : 119bcdde:0ac351b2:d05e4382:e6def213 Events : 0.10378 Number Major Minor RaidDevice State 0 8 2 0 active sync /dev/sda2 2 8 18 1 spare rebuilding /dev/sdb2 /dev/md2: Version : 00.90.03 Creation Time : Thu Apr 10 17:46:25 2008 Raid Level : raid1 Array Size : 292053568 (278.52 GiB 299.06 GB) Device Size : 292053568 (278.52 GiB 299.06 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 2 Persistence : Superblock is persistent Update Time : Sun May 4 02:31:57 2008 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 8d954d13:82dabd5b:096fe691:7819c2d2 Events : 0.10 Number Major Minor RaidDevice State 0 8 3 0 active sync /dev/sda3 1 8 19 1 active sync /dev/sdb3 Perfect! Now it seems to works well. Was the problem related to the output of mdadm? Thanks for your reply and the new version of plugin! :-) Regards, Daniel --=20 Daniel Bareiro - System Administrator Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Lennt - Linux user #188.598 --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIKe8rZpa/GxTmHTcRAthIAJ4s/fJ6q9CjnUQxrXmtowoM0pqQOACfUtk1 yYG9k3XIjdeJL/Xb6k9n3wA= =5Foo -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1-- --===============1950325105== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============1950325105== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nagios-users mailing list Nagios-users@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 --===============1950325105==--