Package: nagios-plugins-standard Version: 1.4.12-5 Severity: normal Tags: patch
check_linux_raid malfunctions if system has software RAID devices with two or more digits. For example, for system having /dev/md10, /dev/md11 etc, the plugin returns 'UNKNOWN' in automatic mode (if RAID devices are manually specified it works). Also, if system has both one-digit, and two-digit RAID devices, the two-digit devices are silently ignored in checks, which is even more problematic. Problem is that plugin checks only for 'md[0-9]' devices in /proc/mdstat. Trivial patch which fixes that by looking for 'md[0-9]+' instead is attached. -- System Information: Debian Release: 5.0.1 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.27.17-grsec (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages nagios-plugins-standard depends on: ii bind9-host [host] 1:9.5.1.dfsg.P1-2 Version of 'host' bundled with BIN ii dnsutils 1:9.5.1.dfsg.P1-2 Clients provided with BIND ii fping 2.4b2-to-ipv6-15 sends ICMP ECHO_REQUEST packets to ii libc6 2.7-18 GNU C Library: Shared libraries ii libldap-2.4-2 2.4.11-1 OpenLDAP libraries ii libmysqlclient15off 5.0.51a-24+lenny1 MySQL database client library ii libnet-snmp-perl 5.2.0-1 Script SNMP connections ii libpq5 8.3.7-0lenny1 PostgreSQL C client library ii libradiusclient-ng2 0.5.5-1 Enhanced RADIUS client library ii nagios-plugins-basic 1.4.12-5 Plugins for the nagios network mon ii qstat 2.11-1 Command-line tool for querying qua ii radiusclient1 0.3.2-11.1 /bin/login replacement which uses ii smbclient 2:3.2.5-4lenny2 a LanManager-like simple client fo ii snmp 5.4.1~dfsg-12 SNMP (Simple Network Management Pr ii ucf 3.0016 Update Configuration File: preserv nagios-plugins-standard recommends no packages. Versions of packages nagios-plugins-standard suggests: pn nagios3 <none> (no description available) ii whois 4.7.30 an intelligent whois client -- no debconf information
--- /usr/lib/nagios/plugins/check_linux_raid.org 2009-06-25 19:06:27.000000000 +0200 +++ /usr/lib/nagios/plugins/check_linux_raid 2009-06-25 19:16:45.000000000 +0200 @@ -44,7 +44,7 @@ my $nextdev; if(defined $ARGV[0]) { $nextdev = shift; } -else { $nextdev = "md[0-9]"; } +else { $nextdev = "md[0-9]+"; } my $code = "UNKNOWN"; my $msg = "";