[Nagiosplug-help] http_check plugin query

Michael Saldivar mike.saldivar at advocatecreditrepair.com
Sat Jul 2 07:12:03 CEST 2011

On Thu, Jun 30, 2011 at 11:13 PM, T.K.Thapa <tapan.thapa at yahoo.com> wrote:

>         check_command                   check_http2!!'-u
> /MMPPlus/RequestReceiverServlet?mobileNo=919200000000&moid=0000&operator=TATA&circle=DELHI&content=TAPAN&shortCode=542428
> -w 3 -c 5 -r ^TAPAN$ -t 7'
>         register                        1
>         }
> Current message which should be checked by above service is TAPAN however
> response which is coming from url is TAPAN_1. It should thorough some
> error or waring in nagios.
> If i am firing below mentioned command in command line then it is working
> as expected.
> Command:
> ./check_http -H -p 80 -u
> "/MMPPlus/RequestReceiverServlet?mobileNo=919200000000&moid=0000&operator=TATA&circle=DELHI&content=TAPAN&shortCode=542428"
> -w 3 -c 5 -r ^TAPAN$ -t 7

The difference is in your config file, your regex is enclosed in single
quotes, which would prevent it from expanding.

Perhaps try modifying your commands.cfg entry to:

define command{
        command_name    check_http2
        command_line    $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ $ARG2$

And change the check_command within your host.cfg to:

        check_command check_http2!!'-u
-w 3 -c 5'! -r ^TAPAN$ -t 7!
Experiment with that a bit.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20110701/aa0511a0/attachment.html>

More information about the Help mailing list