bad output from check_linux_raid with RAID0 and linear volumes
Bug #621380 reported by
c.h.
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nagios Plugins |
Unknown
|
Unknown
|
|||
nagios-plugins (Debian) |
Fix Released
|
Unknown
|
|||
nagios-plugins (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: nagios-plugins
The check_linux_raid script is slightly broken. If you do not pass an MD device, it should check all MD devices on the host. However, upon running the check, it outputs:
Use of uninitialized value within %status in pattern match (m//) at ./check_linux_raid line 82, <MDSTAT> line 11.
Use of uninitialized value within %status in pattern match (m//) at ./check_linux_raid line 91, <MDSTAT> line 11.
OK md0 status=[UUUU]. md1 status=[UUUU]. md2 active with no status information.
The first two lines are invalid output for a nagios script.
There is a bug in Debian's tracker (#579049), but I don't see one here. The fix is a simple patch (attached).
tags: | added: patch |
Changed in nagios-plugins (Ubuntu): | |
status: | Incomplete → New |
summary: |
- bad output from check_linux_raid + bad output from check_linux_raid with RAID0 volumes |
summary: |
- bad output from check_linux_raid with RAID0 volumes + bad output from check_linux_raid with RAID0 and linear volumes |
Changed in nagios-plugins (Ubuntu): | |
status: | New → Confirmed |
status: | Confirmed → Triaged |
importance: | Medium → Low |
Changed in nagios-plugins (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
Hi Chris, thanks for reporting this bug and working with us to make Ubuntu even better!
I haven't been able to reproduce this. In fact, I happened to have a VM with a disk in recovery right now, so I ran it:
clint@lucid- i386-plus1: ~$ /usr/lib/ nagios/ plugins/ check_linux_ raid i386-plus1: ~$
CRITICAL md0 status=[_U]. md1 status=[_U]. md2 status=[UU].
clint@lucid-
Does this only happen in the embedded perl mode of nagios? Also what version of the nagios-plugins package do you have in stalled?
Setting to Incomplete, chris, when you've replied, you can set it back to new.
Thanks!
Also setting importance to Medium, as this will affect a fairly large amount of users.
Linking to Debian bug:
http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 579049