Problem with check_http returning 403 error
Marc Powell
marc at ena.com
Mon Aug 1 20:35:59 CEST 2005
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Eugene Ventimiglia
> Sent: Monday, August 01, 2005 12:57 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Problem with check_http returning 403 error
>
> I want to check a website defined by hostname with check_http using
> the following line (domain name obscured):
>
> check_http! -H m-xube.com -u /gd/GetIvrData.aspx
This is an odd way to pass the arguments. This is probably the source of
your issue. I'd try the following --
# Service definition
define service{
use generic-service
host_name some_host
service_description HTTP
retry_check_interval 3
contact_groups whatever
check_command
check_http!m-xube.com!"/gd/GeIvrData.aspx"
}
define command{
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$ -u
$ARG2$
}
You can of course add additional arguments to check_http as you deem
necessary (like -e or -s). The quotes around the second argument may or
may not be necessary (probably not). I added them just in case.
--
Marc
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
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