Passing API Key for Plugin
Posted: Tue Jun 30, 2020 8:38 am
hi,
trying to pass an API key to work w/ a palo alto monitoring plugin.
I have it working through the command line but once i create the XI command and service with the same key it fails. I've tried hardcoding the key to the command, pass it as an $ARG$ and as a $USER$ variable in the resource.cfg file.
I am not sure why the UI doesn't like the same thing the command line accepts.
Command Line:
check_paloalto -H IPaddress -T TOKEN throughput -i interface
THROUGHPUT OK
UI:
check_paloalto -H $HOSTADDRESS$ -t 300 -T $ARG3$ $ARG1$ -i $ARG2$
THROUGHPUT UNKNOWN - Expected status code: 200 (OK), returned status code was: 403
trying to pass an API key to work w/ a palo alto monitoring plugin.
I have it working through the command line but once i create the XI command and service with the same key it fails. I've tried hardcoding the key to the command, pass it as an $ARG$ and as a $USER$ variable in the resource.cfg file.
I am not sure why the UI doesn't like the same thing the command line accepts.
Command Line:
check_paloalto -H IPaddress -T TOKEN throughput -i interface
THROUGHPUT OK
UI:
check_paloalto -H $HOSTADDRESS$ -t 300 -T $ARG3$ $ARG1$ -i $ARG2$
THROUGHPUT UNKNOWN - Expected status code: 200 (OK), returned status code was: 403