When having multiple records like:
{
"from": "0.050",
"error": false,
"test": {
"test01": {
"alive": true,
"value": 147.43,
"rate_below_threshold": false,
"last_time": "Mon, 03 Jul 2017 11:31:46 GMT"
}
}
}
I got empty response for value ('{test}->{test01}->{value}')
e.g.:
/usr/lib64/nagios/plugins/check_json.pl --url "https://example.com/test.json" --attribute '{test}->{test01}->{value}' --warning 140: --critical 110: --perfvars '{test}->{test01}->{value}' --outputvars '{test}->{test01}->{value}'
Use of uninitialized value $output_value in concatenation (.) or string at /usr/lib64/nagios/plugins/check_json.pl line 252.
And no value returned..
When having multiple records like:
{
"from": "0.050",
"error": false,
"test": {
"test01": {
"alive": true,
"value": 147.43,
"rate_below_threshold": false,
"last_time": "Mon, 03 Jul 2017 11:31:46 GMT"
}
}
}
I got empty response for value ('{test}->{test01}->{value}')
e.g.:
/usr/lib64/nagios/plugins/check_json.pl --url "https://example.com/test.json" --attribute '{test}->{test01}->{value}' --warning 140: --critical 110: --perfvars '{test}->{test01}->{value}' --outputvars '{test}->{test01}->{value}'
Use of uninitialized value $output_value in concatenation (.) or string at /usr/lib64/nagios/plugins/check_json.pl line 252.
And no value returned..