How to pass parameters properly to a command?
Posted: Mon Jul 25, 2016 2:05 pm
Hi friends!
I'm wondering on how to pass arguments to a command properly.
Currently my service entry looks like this;
And the command (which works fine on command line passing the params directly)
However this does not seem to work I get some "null" output.
Does anyone see the mistake maybe? Or can give me a hint on how to debug this?
Thank you very much in advance!
I'm wondering on how to pass arguments to a command properly.
Currently my service entry looks like this;
Code: Select all
define service {
hostgroup_name production-sidekiq-worker
service_description Busy sidekiq workers
servicegroups sidekiq-servers
check_command check-sidkiq-json-stats!example.com!USER!PASSWORD
use generic-service
notification_interval 0 ; set > 0 if you want to be renotified
}Code: Select all
# Check Sidkiq JSON stats
define command {
command_name check-sidkiq-json-stats
command_line $USER1$/check_http_json.py -B $ARG2$:$ARG3$ -H $ARG1$ -s -p sidekiq/stats -c "sidekiq.busy,@25:"
}Does anyone see the mistake maybe? Or can give me a hint on how to debug this?
Thank you very much in advance!