Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

tirithen

Reviews(1)
Good plugin (I'm using version 1.9) but I was having problem with the output from mdadm was printing one extra space after state clean (State: clean*space**new line*), see full output last

It works fine after changing line 530 from:

if($device_status !~ /clean$/) {

to:

if($device_status !~ /clean\s*$/) {

I guess that others will have this problem as well so it might be a good idea to release an updated version.

system information:
-------------------
Ubuntu Server 12.04
mdadm - v3.2.5 - 18th May 2012
Nagios Core 3.2.3

mdadm output:
-------------

$ sudo mdadm --detail /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Thu Jun 13 10:19:11 2013
Raid Level : raid1
Array Size : 1464974592 (1397.11 GiB 1500.13 GB)
Used Dev Size : 1464974592 (1397.11 GiB 1500.13 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent

Update Time : Mon Jun 24 10:56:45 2013
State : clean