http_check with tags in hostaddress to check.
Marc Powell
marc at ena.com
Wed Aug 12 17:13:56 CEST 2009
On Aug 12, 2009, at 9:30 AM, Sharada wrote:
> My http_check comamnd for this is :
>
> $USER1$/check_http -H $HOSTADDRESS$ -u /nagios -S -s "The user ID or
> password is invalid"
>
>
> PROBLEM:
> Hostaddress is secure.abc.net
>
> How do I send something/some_transaction.dll also in the link?
Is there some reason it's not as simple as replacing the relevent
parts? --
$USER1$/check_http -H secure.abc.net -u /something/
some_transaction.dll -S -s "The user ID or password is invalid"
You could make it more complex but more flexible by passing hostname
and url as command arguments
command_line --
$USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -u $ARG2$ -S -s "$ARG3$"
service definition check_command
check_command check_http!secure.abc.net!/something/
some_transaction.dll!The user ID or password is invalid
--
Marc
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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