Check_http command
Subhendu Ghosh
sghosh at sghosh.org
Tue Nov 25 23:01:07 CET 2003
from the service definition -
$ARG1$ == www.cnn.com
$ARG2$ == /TECH/index.html
You might want a new command definition since $HOSTADDRESS$ doesn't really
contain www.cnn.com ....
-sg
On Tue, 25 Nov 2003, Arzamendi, Peter wrote:
> Opps I forgot to add the -u $ARG1$ after the command line setting
>
>
>
> -----Original Message-----
> From: Arzamendi, Peter
> Sent: Tuesday, November 25, 2003 12:10 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Check_http command
>
>
> I'm having problems with the check_http command with Nagios. When the
> command is ran though Nagios I get an Connection refused by host error
> messages. When I run the command from the command line it works fine.
> Anyone else having this problem?
>
> RedHat9
> Nagios 1.1
>
>
> services.cfg
> define service {
> host_name WebServer1
> service_description WebCheck
> check_command
> check_http_url!www.cnn.com!/TECH/index.html
> use generic-service
> max_check_attempts 3
> normal_check_interval 5
> retry_check_interval 1
> check_period 24x7
> notification_interval 120
> notification_period 24x7
> notification_options c,r
> contact_groups Windows-admins
> }
>
>
> Checkcommands.cfg
> define command {
> command_name check_http_url
> command_line $USER1$/check_http -H $HOSTADDRESS$ -u
> $ARG1$
> }
>
> Thanks,
> Pete
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. Does
> SourceForge.net help you be more productive? Does it help you create
> better code? SHARE THE LOVE, and help us help YOU! Click Here:
> http://sourceforge.net/donate/
> _______________________________________________
> 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
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> 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
>
--
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
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