[Nagiosplug-help] check_http gets 403 but not when run from command line.
steve at onsightit.com
Thu Oct 16 23:40:44 CEST 2008
I believe I resolved it. I changed the host name from localhost to the real hostname, but did not change the IP address. See bad config below.
# Define a host for the local machine
use linux-server ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
From: Thomas Guyot-Sionnest [mailto:dermoth at aei.ca]
Sent: Wednesday, October 15, 2008 11:20 PM
To: Steve Woods
Cc: nagiosplug-help at lists.sourceforge.net
Subject: Re: [Nagiosplug-help] check_http gets 403 but not when run from command line.
-----BEGIN PGP SIGNED MESSAGE-----
On 14/10/08 07:21 PM, Steve Woods wrote:
> If I run: /usr/local/nagios/libexec/check_http --verbose
> --onredirect=follow --host=localhost from the command line it works, but
> when scheduled through nagios it fails with a 403. It even does this
> when I turn off mod_security.
> Anyone else getting 403’s with check_http? I can run the command from
> the command line as any user successfully.
Can you please send your service and command definitions?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Help