<br><br><div class="gmail_quote">On Thu, Jun 30, 2011 at 12:50 AM, T.K.Thapa <span dir="ltr"><<a href="mailto:tapan.thapa@yahoo.com">tapan.thapa@yahoo.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit" valign="top">Query:<br>./check_http -H 172.22.65.51 -p 80 -u "/MMPPlus/RequestReceiverServlet?mobileNo=919200000000&moid=0000&operator=TATA&circle=DELHI&content=TAPAN&shortCode=542428" -w 3 -c 5 -s TAPAN -t 7<br>
<br>Response:<br>HTTP OK HTTP/1.1 200 OK - 0.015 second response time |time=0.014855s;3.000000;5.000000;0.000000 size=172B;;;0<br><br>Now i am not able to figure it out, how to configure this in nagios configuration files.<br>
<br>When i am putting -u with parameters, it is not accepted by nagios.<br></td></tr></tbody></table></blockquote></div><br><br>It would be helpful if you included your config files, so we could point out the difference.<br>
<br>Below are what my config files are, modified to do what I think you are trying to do:<br><br>This is the standard check_http command in /usr/local/nagios/etc/objects/commands.cfg :<br><br># 'check_http' command definition<br>
define command{<br>        command_name    check_http<br>        command_line    $USER1$/check_http -I $HOSTADDRESS$ $ARG1$<br>        }<br><br>the -I checks by IP, and $ARG1$ accepts everything after the second ! as an argument.  So this is what the config check would be:<br>
<br>YourHostNameHere.cfg:<br><br>define service{<br>        use                     generic-service<br>        host_name               YourHostNameHere<br>        service_description     YourNameForThisSiteHere<br>        check_command           check_http!172.22.65.51!'-u /MMPPlus/RequestReceiverServlet?mobileNo=919200000000&moid=0000&operator=TATA&circle=DELHI&content=TAPAN&shortCode=542428 -w 3 -c 5 -s TAPAN -t 7'<br>
        }<br><br><br clear="all">-Mike<br>