Check_md_raid from nagiosexchange.org error
Ilya Meylikhov
rage_q3 at mail.ru
Tue May 6 11:19:58 CEST 2008
Hello all!
Anyone uses a plugin check_md_raid from nagiosexchange.org?
While my arrays were rebuilding I ran this plugin and got an error:
backup:/home/rage# mdadm --manage /dev/md3 --fail /dev/sda5
mdadm: set /dev/sda5 faulty in /dev/md3
backup:/home/rage# mdadm --manage /dev/md3 --remove /dev/sda5
mdadm: hot removed /dev/sda5
backup:/home/rage# mdadm --manage /dev/md3 --add /dev/sda5
mdadm: re-added /dev/sda5
backup:/home/rage# /usr/local/nagios/libexec/check_raid -vvv
finding all MD arrays via: sudo /sbin/mdadm --detail --scan
found array /dev/md0
found array /dev/md1
found array /dev/md2
found array /dev/md3
found array /dev/md4
found array /dev/md5
[output cut]
Now testing raid device "/dev/md3"
/dev/md3:
Version : 00.90.03
Creation Time : Wed Apr 23 07:41:34 2008
Raid Level : raid1
Array Size : 5116544 (4.88 GiB 5.24 GB)
Device Size : 5116544 (4.88 GiB 5.24 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 3
Persistence : Superblock is persistent
Update Time : Tue May 6 09:05:02 2008
State : clean, degraded, recovering
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1
Rebuild Status : 5% complete
UUID : 7550f78b:22061677:db94040d:31b9e596
Events : 0.17940
Number Major Minor RaidDevice State
0 8 5 0 spare rebuilding /dev/sda5
1 8 21 1 active sync /dev/sdb5
Traceback (most recent call last):
File "/usr/local/nagios/libexec/check_raid", line 200, in ?
main()
File "/usr/local/nagios/libexec/check_raid", line 194, in main
result, message = test_raid(verbosity)
File "/usr/local/nagios/libexec/check_raid", line 127, in test_raid
message += 'Array "%s" is in state' % shortname,
TypeError: cannot concatenate 'str' and 'tuple' objects My system is Linux
Debian 4 2.6.18-6-686 . The plugin was taken here -
http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2418.html;d=1
Thanks in advance,
Ilya.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080506/f38ab7ce/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-------------- 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