-
Notifications
You must be signed in to change notification settings - Fork 59
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
Bug when thre is a colon in Key value #43
Comments
Hi, can you show the command you're running. I could not recreate that yet. |
Ok so it's not the Bracket, but the colon. Due to this:
|
Unittest to recreate
|
@drewkerrigan One solution would be to add a new CLI paramter to set a custom separator for the -q option. What do you think? 🤔 |
Other checks like nwc health use a similar approach. |
@K0nne I'm not sure I know what you mean? |
I mean special options for options. |
yeah I thinks that's the only solution here |
Yeah I think for the short term a custom separator via cli option will be fine. For the medium-long term I think we may want to actually switch to something like json path for the majority of this functionality |
@drewkerrigan Been thinking about a jsonpath solution, I see an issue with having a library for that, since the script loses its independence. You know what I mean? I'll write some code for a custom separator and we'll see if that works |
@martialblog agree re: script independence. If we go the json path route we would likely want to rip out some open source functionality and put it directly in the script. That would need to be a major version change though, since the interface would definitely be broken for existing users. |
Fixed in v2.0 Branch https://github.com/drewkerrigan/nagios-http-json/tree/python3 Release will follow soon |
Script return : UNKNOWN: Status UNKNOWN.HTTPError[500] when I have brackets in key value.
Sample:
Any idea ?
The text was updated successfully, but these errors were encountered: