Package: nagios-statd-server
Version: 3.12-1.1
Severity: normal
Tags: patch

Apparently it amuses windows admins to include spaces in network share names. 
The disk check dies with 'Server returned unusual data.' (even if the share has 
been ignored).

I've changed the regular expression matching df a little bit and it seems to 
handle all our shares okay.

--- nagios-stat.with-globbing.orig      2011-02-26 00:42:07.000000000 +0000
+++ nagios-stat 2011-02-26 01:53:24.000000000 +0000
@@ -19,7 +19,7 @@
        def disk(self):
                self.__setthreshold("warning",90)
                self.__setthreshold("critical",95)
-               diskre1 = 
re.compile("^([\w\/\:\.\-\=\@\$]*)\s*\d*\s*\d*\s*\d*\s*(\d*)\%\s*([\w\/\-]*)")
+               diskre1 = 
re.compile("^([\s\w\/\:\.\-\=\@\$]+)\s+\d+\s+\d+\s+\d+\s+(\d+)\%\s+([\w\/\-]+)")
                procre1 = re.compile("^\/proc\s*-\s*-\s*-\s*-\s*/proc")

                # Compile an array of these disks


-- System Information:
Debian Release: 6.0
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nagios-statd-server depends on:
ii  python2.5                     2.5.5-11   An interactive high-level object-o

nagios-statd-server recommends no packages.

nagios-statd-server suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to