1
0
mirror of https://github.com/c-kr/check_json.git synced 2024-11-23 19:03:49 +01:00

fix perfvars reference

This commit is contained in:
Shaun Smiley 2017-05-11 11:48:10 -07:00
parent 2e8e519493
commit 27484587a4

View File

@ -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