mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-02 13:20:54 -05:00
check_ifstatus: perfdata bug
The perfdata output violates the current Nagios Plugin Development Guidelines (http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN202 : "space separated list of label/value pairs"). Thus the Addon PNP did not read the perdata correctly. The patch replaces the commas with spaces in the perfdata output. Many thanks to Patric Wust. --- Closes #1169 and #721.
This commit is contained in:
parent
71063655e5
commit
69b719aa2e
2 changed files with 2 additions and 1 deletions
|
|
@ -323,3 +323,4 @@ Eric J. Mislivec
|
|||
Jean-Claude Computing
|
||||
Andy Brist
|
||||
Mikael Falkvidd
|
||||
Patric Wust
|
||||
|
|
|
|||
|
|
@ -221,7 +221,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};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue