Bug#423461: [Pkg-nagios-devel] Bug#423461: http.cfg/check_http flawed arguments (-H/-I confusion)

Josip Rodin joy at debbugs.entuzijast.net
Sat May 12 14:51:13 UTC 2007


On Sat, May 12, 2007 at 04:21:00PM +0200, Sven Velt wrote:
> > Nevertheless, I think you should try changing the default to use either
> > $HOSTNAME$ or $HOSTALIAS$, and see if there's fallout.
> > 
> > If necessary, the fallback procedure would be to add a separate set of
> > checkcommands which use the above variables in a more layered manner.
> 
> PLEASE! Don't change the default! Most Nagios installations I know
> *will* break with that change!
> 
> Have a look at /etc/nagios-plugins/config/http.conf:
> 
> ,---[ /etc/nagios-plugins/config/http.conf ]---
> | # 'check_http2' command definition
> | define command{
> |         command_name    check_http2
> |         command_line    /usr/lib/nagios/plugins/check_http -H $ARG1$ -I $HOSTADDRESS$ -w $ARG2$ -c $ARG3$
> |         }
> `---
> 
> I think that's what you're looking for!

Well, it's obviously not - that would require me to specify the first
argument. I didn't spend time adding host names (as in FQDNs) into nagios
settings just so I have to repeat the whole thing again! :)

> PS: I don't like the name "check_http2", I would prefer
> "check_http_vhost" without "-c" and "-w".

That would make sense, too.

-- 
     2. That which causes joy or happiness.




More information about the Pkg-nagios-devel mailing list