check_http problem with $ char in url
Andrea Coppo
andrea.coppo at erptech.it
Tue Feb 7 11:33:07 CET 2006
I have problem with check_http checking the url:
http://192.168.25.191:4056/CICS/CWBA/DFH$WB1A
Problem is "$"
in services.cfg:
check_command
check_http_new!/CICS/CWBA/DFH\$WB1A!4056!"successfully"
in checkcommands.cfg:
command_name check_http_new
command_line $USER1$/check_http_new $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$
# cat ../libexec/check_http_new
#!/bin/bash
LOUTPUT=`/usr/local/nagios/libexec/check_http -H $1 -u $2 -p $3 -R "$4"`
echo $1 $2 $3 $4 > /tmp/http_out.txt
echo $LOUTPUT
# cat /tmp/http_out.txt
192.168.25.191 /CICS/CWBA/DFH$WB1A$ 4056 successfully
HTTP WARNING: HTTP/1.0 400 Bad Request
I tried to escape the $ with \ , \\ , '/CICS/CWBA/DFH$WB1A'
nagios add a second "$" at the end of the url...
Why ?
Do you have ideas to solve my problem ?
thanks,
bye.
Andrea
----------------------------------------------------------------------
http://www.erptech.it/
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list