I think I am running into a quoting problem with illegal characters, if I run this from the command line I get the expected result: root@vm-is-snmp01$ /usr/lib/nagios/plugins/check_http -I 10.4.22.32 -4 -w 3 -c 5 -u /webdynpro/dispatcher/demo.sap.com/serverstatusapp/ServerStatusApp?SAPtestId=0# -s "SYSTEM PASS" -p 50100 -A "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:16.0.1) Gecko/20121011 Firefox/21.0.1" -v
<page from -v>
HTTP OK: HTTP/1.1 200 OK - 11002 bytes in 0.106 second response time |time=0.105894s;3.000000;5.000000;0.000000 size=11002B;;;0

However the check with this definition fails:
define command{
        command_name    check_http_url_port_string_A
command_line /usr/lib/nagios/plugins/check_http -I '$HOSTADDRESS$' -4 -w '$ARG1$' -c '$ARG2$' -u '$ARG3$' -s '$ARG4$' -p '$ARG5$' -A '$USER8$' -v
        }

-The result is able to connect to the (nasty) HTTP server and pull a page but it's the same one I get when connecting with out defining a User-Agent...but the verbose results show it using the User-Agent (below). Because the user agent has some ugly characters in it I am wondering if it's not being quoted right. My resource.cfg file says

$USER8$=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:16.0.1) Gecko/20121011 Firefox/21.0.1
CGI results:
GET /webdynpro/dispatcher/demo.sap.com/serverstatusapp/ServerStatusApp?SAPtestId=0# HTTP/1.0 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:16.0.1) Gecko/20121011 Firefox/21.0.1
Connection: close


http://10.4.22.32:50100/webdynpro/dispatcher/demo.sap.com/serverstatusapp/ServerStatusApp?SAPtestId=0# is 1817 characters
STATUS: HTTP/1.1 500 Internal Server Error
**** HEADER ****
<rest of cruft from -v>


Any suggestions would be appreciated.
--


*Jeremy Page*|Senior Technical Architect|*Gilbarco Veeder-Root, A Danaher Company*
*Office:*336-547-5399|*Cell:*336-601-7274|*24x7 Emergency:*336-430-8151


Please be advised that this email may contain confidential information. If you are not the intended recipient, please notify us by email by replying to the sender and delete this message. The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to