[Nagiosplug-help] http_check plugin query
T.K.Thapa
tapan.thapa at yahoo.com
Sat Jul 2 13:02:49 CEST 2011
Hello Michael,
My bad luck..
Still not working as per my expectation.
I tried below combination but no luck.
define command{
command_name check_http2
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ $ARG2$
}
define service{
use generic-service ; Name of service template to use
host_name jvnag
service_description [INDIA] MMPPlus Sync URL Check
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups mvas-admins,india-support,mma-PM
notification_interval 20
notification_period 24x7
notification_options w,u,c,r,f
check_command check_http2!172.22.65.51!'-u /MMPPlus/RequestReceiverServlet?mobileNo=919200000000&moid=0000&operator=TATA&circle=DELHI&content=TAPAN&shortCode=542428 -w 3 -c 5 -t 7'!-r ^TAPAN$!
register 1
}
second service check---
define service{
use generic-service ; Name of service template to use
host_name jvnag
service_description [INDIA] MMPPlus Sync URL Check
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups mvas-admins,india-support,mma-PM
notification_interval 20
notification_period 24x7
notification_options w,u,c,r,f
check_command check_http2!172.22.65.51!'-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
}
Please suggest if you have something else in your mind.
Regards
Tapan Thapa
tapan.thapa at yahoo.com
--- On Sat, 2/7/11, Michael Saldivar <mike.saldivar at advocatecreditrepair.com> wrote:
From: Michael Saldivar <mike.saldivar at advocatecreditrepair.com>
Subject: Re: [Nagiosplug-help] http_check plugin query
To: "Nagios Plugin Help List" <nagiosplug-help at lists.sourceforge.net>
Date: Saturday, 2 July, 2011, 10:42 AM
On Thu, Jun 30, 2011 at 11:13 PM, T.K.Thapa <tapan.thapa at yahoo.com> wrote:
check_command check_http2!172.22.65.51!'-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 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 -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!172.22.65.51!'-u /MMPPlus/RequestReceiverServlet?mobileNo=919200000000&moid=0000&operator=TATA&circle=DELHI&content=TAPAN&shortCode=542428 -w 3 -c 5'! -r ^TAPAN$ -t 7!
Experiment with that a bit. -Mike
-----Inline Attachment Follows-----
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
-----Inline Attachment Follows-----
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20110702/29cd9c12/attachment.html>
More information about the Help
mailing list