Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > e0894f442e68fe82e73465fdc936b6fb > files > 10

munin-1.3.4-4mdv2009.0.src.rpm

Index: node/node.d/snmp__cpuload.in
===================================================================
--- node/node.d/snmp__cpuload.in	(révision 1269)
+++ node/node.d/snmp__cpuload.in	(copie de travail)
@@ -82,7 +82,8 @@
 	exit 0;
 }
 
-print "cpu.value ", &get_single ($session, "1.3.6.1.2.1.25.3.3.1.2.1"), "\n";
+my $value = &get_single ($session, "1.3.6.1.2.1.25.3.3.1.2.1");
+print "cpu.value ", $value, "\n" if(defined($value));
 
 sub get_single
 {
Index: node/node.d.linux/load.in
===================================================================
--- node/node.d.linux/load.in	(révision 1266)
+++ node/node.d.linux/load.in	(copie de travail)
@@ -52,8 +52,8 @@
 	# These two are optional. They are only used if you have
 	# configured your munin to tell a Nagios-server about any
 	# problems
-	echo 'load.warning $LOAD_WARN'
-	echo 'load.critical $LOAD_CRIT'
+	echo "load.warning $LOAD_WARN"
+	echo "load.critical $LOAD_CRIT"
 	# This one is purely to add an explanation to the web page. The first
 	# one is for the graph itself, while the second one is for the field
 	# "load".
Index: node/node.d/postfix_mailstats.in
===================================================================
--- node/node.d/postfix_mailstats.in	(révision 1230)
+++ node/node.d/postfix_mailstats.in	(copie de travail)
@@ -191,7 +191,7 @@
 	elsif ($line =~ /postfix\/smtpd.*reject: \S+ \S+ \S+ (\S+)/)
 	{
             my $cause = $1;
-            $cause = 'OTHER' unless $1 =/^\d+$/;
+            $cause = 'OTHER' unless $1 =~ /^\d+$/;
 	    $rejects->{$cause} ++;
 	}
     }