Open thinkl33t opened 4 years ago
Hi @thinkl33t
Sorry about not getting back to you sooner. It appears my watch of the repository was disabled.
Try using multiple -C
calls, so the command line becomes:
... -n 'total http requests' -p -C "-d" -C "{\"token\": \"TOKENTOKENTOKEN\"}"
For Icinga2, you might find this relevant for your CheckCommand
definition.
We're trying to grab prometheus data from gitlab - this requires a token adding to the URL:
When using this script, we've found it doesn't appear to work specifying the above as a url, possibly because the url given has a path appended to it in the check_prometheus_metric script.
We tried passing the key through as extra data:
But still got an error - presumably you can't have two data entries passed to curl.