http through firewall
Marc Powell
marc at ena.com
Mon Jan 10 23:21:39 CET 2005
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Matt Johnson
> Sent: Monday, January 10, 2005 3:54 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] http through firewall
>
> Hi all,
>
> I've got nagios up and running on our network. It
> works a treat. Text alerts for a primary school ICT
> co-ordinator? Fantastic. I don't reckon there's many
> of them around :)
>
> Now I'm trying to test a service on a host the other
> side of a firewall. The firewall is *very*
> restrictive. I can get through to the webserver
> running on the host the other side, but the check_http
> times out the socket...?
>
> I can wget (from bash, so proxy must be set correct I
> think) from the host ip and also view pages in firefox
> - all *through* the firewall completely fine.
>
> Any ideas why I can't get nagios to get an http test
> through the same firewall?
If you must use a proxy to get out then you also have to tell check_http
to use that proxy. Something like the following should do --
# 'check_caching' command definition
define command{
command_name check_caching
command_line $USER1$/ check_http -H www.yourtestedsite.com -I
ip.of.proxy.host --onredirect follow -p 8080 -wt 20 -ct 30 -to 35 -u
http://www.yourtestedsite.com -R \/HTML
}
Of course www.mytestedsite.com could be a macro argument passed by your
service definition ($ARG1$).
check_http --help provides more information on specific command line
switches.
If you don't have to use a proxy to get out then it should just work.
Try running the command from the command line as it is defined in your
commands.cfg as the user that Nagios runs as. You may see useful error
messages that explain the problem.
--
Marc
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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