Skip to content

Use of uninitialized value $output_value in concatenation (.) or string at check_json.pl line 252 #30

Description

@alexandruvilceloiu

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions