Explorar el Código

check_ifstatus: perfdata bug

Just turning attached patch of github issue #721 into a push request
Jan Wagner hace 12 años
padre
commit
54969129c3
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 0
      THANKS.in
  2. 1 1
      plugins-scripts/check_ifstatus.pl

+ 1 - 0
THANKS.in

@@ -302,3 +302,4 @@ Sebastian Schmidt
 Simon Kainz
 Steve Weinreich
 Tim Laszlo
+Patric Wust

+ 1 - 1
plugins-scripts/check_ifstatus.pl

@@ -216,7 +216,7 @@ foreach $key (keys %ifStatus) {
 			$ifexclude,
 			$ifunused);
    }
-my $perfdata = sprintf("up=%d,down=%d,dormant=%d,excluded=%d,unused=%d",$ifup,$ifdown,$ifdormant,$ifexclude,$ifunused);
+my $perfdata = sprintf("up=%d down=%d dormant=%d excluded=%d unused=%d",$ifup,$ifdown,$ifdormant,$ifexclude,$ifunused);
 print ("$state: $answer |$perfdata\n");
 exit $ERRORS{$state};