From the command line, this works:
./check_http -H 192.168.9.237 -u “/cognos8/gateway/cognosisapi.dll?b_action=xts.run&m=portal/main.xts&startwel=yes” -s “credential”
From WINDOWS.CFG, this does NOT work:
check_command check_http!-u “/cognos8/gateway/cognosisapi.dll?b_action=xts.run&m=portal/main.xts&startwel=yes” -s “credential” -t 5
Any idea why this works from CLI but not a CFG file?
Spoke too soon. Still having an issue, using the new command definition. Getting a “bad request” warning now, so it may be with how the URL is getting passed, what with the “&” and all.
I’m getting a “Return code of 127 is out of bounds - plugin may be missing” error when trying to use the custom command. The custom command should be in commands.cfg, right?