Re: How can use complex password in check_http for url
Posted: Tue Jul 09, 2024 9:18 am
Hi @baber,
I think the single quotes may be in the wrong place.
Or with your latest example (assuming the double quotes are not actually a part of the password).
I think the single quotes may be in the wrong place.
You previously posted, that running the check_http command with the username and password in single quotes does work.baber wrote: ↑Tue Jul 09, 2024 1:38 am I changed it such as follow
Is that correct ?Code: Select all
define service{ use local-service host_name subs service_description mebp servicegroups OD check_command check_http!' -H mb.com -w 5 -c 10 -p 8980 -u /mb/ai/branch/all -a mba:785\!"@"Nobv' }
I think your single quotes need to be in the same place as what you were using when running the check command in the terminal.
Code: Select all
check_command check_http! -H myurl.com -w 5 -c 10 -p 8980 -u /me/api/test/all -a 'john:555\!@BabP'
Code: Select all
check_command check_http! -H mb.com -w 5 -c 10 -p 8980 -u /mb/ai/branch/all -a 'mba:785\!@Nobv'