Преглед изворни кода

check_ifstatus: perfdata bug

Just turning attached patch of github issue #721 into a push request
Jan Wagner пре 12 година
родитељ
комит
54969129c3
2 измењених фајлова са 2 додато и 1 уклоњено
  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};