-
Notifications
You must be signed in to change notification settings - Fork 56
unable to output perfdata from traversed object #23
Copy link
Copy link
Open
Description
I am checking a value nested in an array (eg. the same thing that was broken and later fixed in issue #21 ) and the checking itself, complete with thresholds logic, seems to be working ok:
./check_json.pl -u http://user:password@127.0.0.1:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=foobar -a '{value}->{ConsumerCount}' -w 2: -c 2:
Check JSON status API OK
But I'm not able to get the same value in outputvars, and the scripts returns this warning:
./check_json.pl -u http://user:password@127.0.0.1:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=foobar -a '{value}->{ConsumerCount}' -w 2: -c 2: -o '{value}->{ConsumerCount}'
Use of uninitialized value $output_value in concatenation (.) or string at ./check_json.pl line 252.
Check JSON status API OK - ConsumerCount:
And I cannot get the values in perfdata too, but this time without any warning:
./check_json.pl -T text/plain -u http://user:password@127.0.0.1:8161/api/jolokia/read/org.apache.activemq:type=Broker,brokerName=localhost,destinationType=Queue,destinationName=foobar -a '{value}->{ConsumerCount}' -w 1: -c 1: -p '{value}->{ConsumerCount}'
Check JSON status API OK
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels