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. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]