[Nagiosplug-devel] Check_http suggestion

Hiren Patel hir3npatel at gmail.com
Wed Jun 10 21:24:22 CEST 2009


Mark Mathieson wrote:
> I was wondering if anyone had considered forcing, or at least allowing, 
> the check_http plug-in to use the local *_proxy variables.  It doesn’t 
> appear to use them at the moment.
> 
>  
> 
> It may seem an odd sort of request, so I’ll explain the situation 
> briefly.  I have a Nagios server that can see the outside world 
> directly, but all of the internal users use a proxy.  I’m running 
> check_http to verify that web access is available to users and various 
> internal services.  Thing is, because the existing check_http doesn’t 
> use a proxy but the users do, if the proxy link goes down, Nagios thinks 
> everything is fine and I don’t find out that it’s not until users start 
> screaming.
> 
>  
> 
> I’ve tried embedding the call in a script, exporting the *_proxy 
> variables manually, but check_http happily ignores the variables and 
> will continue returned success values due to the direct link, even if 
> you turn the proxy off!  I can’t turn the direct link off, as there are 
> other checks that rely on it.
> 
>  
> 
> My only other option appears to be writing my own plug-in leveraging wget.
> 
>  
> 
> Any thoughts? 
> 
>
personally I think it's a good idea, it could be useful in cases like 
yours, would a patch for this be accepted? I'd be prepared to work on 
this if core developers would accept it?




More information about the Devel mailing list