check_http problem with $ char in url

nagiosadmin nagiosadmin at snef.fr
Tue Feb 7 11:52:59 CET 2006


Hi,

You just have to do this in your services.cfg :

check_command                  
check_http_new!/CICS/CWBA/DFH\$$WB1A!4056!"successfully"

--> put an additional "$".

That's all folks !!

Davy Gaussen

-----Message d'origine-----
De : nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] De la part de Andrea Coppo
Envoyé : mardi 7 février 2006 11:33
À : nagios-users at lists.sourceforge.net
Objet : [Nagios-users] check_http problem with $ char in url

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




-------------------------------------------------------
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&kid3432&bid#0486&dat1642
_______________________________________________
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