SOURCES: munin-plugins.patch - one more fix for iostat_ios

baggins baggins at pld-linux.org
Sun Nov 30 00:31:59 CET 2008


Author: baggins                      Date: Sat Nov 29 23:31:59 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- one more fix for iostat_ios

---- Files affected:
SOURCES:
   munin-plugins.patch (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SOURCES/munin-plugins.patch
diff -u SOURCES/munin-plugins.patch:1.19 SOURCES/munin-plugins.patch:1.20
--- SOURCES/munin-plugins.patch:1.19	Tue May 20 13:06:21 2008
+++ SOURCES/munin-plugins.patch	Sun Nov 30 00:31:53 2008
@@ -504,6 +504,15 @@
 diff -Naur munin-1.3.4/node/node.d.linux/iostat_ios.in munin-1.3.4-p/node/node.d.linux/iostat_ios.in
 --- munin-1.3.4/node/node.d.linux/iostat_ios.in	Sat Mar  8 02:42:39 2008
 +++ munin-1.3.4-p/node/node.d.linux/iostat_ios.in	Fri Apr  4 11:13:06 2008
+@@ -27,7 +27,7 @@
+ 
+ use constant STATEFILE => '@@PLUGSTATE@@/iostat-ios.state';
+ 
+-if ($ARGV[0] eq 'autoconf') {
++if ($ARGV[0] && $ARGV[0] eq 'autoconf') {
+     if (-r "/proc/diskstats" or -r "/proc/partitions") {
+ 	print "yes\n";
+ 	exit 0;
 @@ -37,7 +37,7 @@
      }
  }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/munin-plugins.patch?r1=1.19&r2=1.20&f=u



More information about the pld-cvs-commit mailing list