Skip to content

Commit

Permalink
check_multi: set lower limit only when set
Browse files Browse the repository at this point in the history
fixes ERROR: STDOUT => ERROR: option -l - Cannot convert '' to float
  • Loading branch information
Thomas-Gelf committed Feb 26, 2019
1 parent ff7cd69 commit c718dbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion share/pnp/templates.dist/check_multi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
# Template for check_multi
#

$opt[1] = "--lower-limit=$MIN[1] --vertical-label num --title \"Number of Checks\" ";
$opt[1] = "--vertical-label num --title \"Number of Checks\" ";
if (isset($MIN[1]) && is_numeric($MIN[1])) {
$opt[1] .= "--lower-limit=$MIN[1] ";
}
$ds_name[1] = "Executed Plugins";

$def[1] = "DEF:var1=$RRDFILE[1]:$DS[1]:AVERAGE " ;
Expand Down

0 comments on commit c718dbd

Please sign in to comment.