Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm too stupid to do the simplest lookups #31

Open
T-One opened this issue Jul 28, 2017 · 4 comments
Open

I'm too stupid to do the simplest lookups #31

T-One opened this issue Jul 28, 2017 · 4 comments

Comments

@T-One
Copy link

T-One commented Jul 28, 2017

Hello,

looks like i'm really stupid because all i get is "no value received" or a "Check JSON status API OK" but no values at all....

This is a JSON Response i want to check:

{
"versionInfo": [
{
"versionString": "1.1"
,"majorVersion": "1"
,"minorVersion": "1"
}
]
}

i want to check the majorVersion value.

./check_json.pl --url "https://user:pw@host/pathtojason" --attributes '{versionInfo}->{majorVersion}' --ignoressl

always ends in a "Check JSON status API UNKNOWN - No value received"

Whats up with this?

@bchabot
Copy link

bchabot commented Aug 30, 2017

I'm in the same boat. The --attributes syntax is either poorly documented or broken. REALLY needs examples of the json data, the -a syntax and exactly what it returns.

@bchabot
Copy link

bchabot commented Aug 30, 2017

Here's an even simpler issue. the JSON reply is the version number of our installed software:
[
'7.4.0'
];

I use -a "" in the command line.... since there is nothing specific to request...

And it still gives me:

Check JSON status API UNKNOWN

@simpleuser99
Copy link

I have the same problem

@mkayontour
Copy link

FYI use quotes
-a '{"entries"}->{"database-Check"}->{"status"}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants