mirror of
https://github.com/c-kr/check_json.git
synced 2024-11-23 10:53:47 +01:00
fix perfvars reference
This commit is contained in:
parent
2e8e519493
commit
27484587a4
@ -218,7 +218,7 @@ if ($np->opts->perfvars) {
|
||||
# make label ascii compatible
|
||||
$label =~ s/[^a-zA-Z0-9_-]//g ;
|
||||
my $perf_value;
|
||||
$perf_value = $json_response->{$key};
|
||||
$perf_value = $json_response->{$label};
|
||||
if ($np->opts->verbose) { print Dumper ("JSON key: ".$label.", JSON val: " . $perf_value) };
|
||||
if ( defined($perf_value) ) {
|
||||
# add threshold if attribute option matches key
|
||||
|
Loading…
Reference in New Issue
Block a user