Browse Source

check_ifstatus: perfdata bug

Just turning attached patch of github issue #721 into a push request
Jan Wagner 12 years ago
parent
commit
54969129c3
2 changed files with 2 additions and 1 deletions
  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
 Simon Kainz
 Steve Weinreich
 Steve Weinreich
 Tim Laszlo
 Tim Laszlo
+Patric Wust

+ 1 - 1
plugins-scripts/check_ifstatus.pl

@@ -216,7 +216,7 @@ foreach $key (keys %ifStatus) {
 			$ifexclude,
 			$ifexclude,
 			$ifunused);
 			$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");
 print ("$state: $answer |$perfdata\n");
 exit $ERRORS{$state};
 exit $ERRORS{$state};