per host custom macros

jeff vier boinger at tradingtechnologies.com
Wed Mar 29 20:10:53 CEST 2006


On Wed, 2006-03-29 at 12:06 -0600, jeff vier wrote:
> <snip>
> > define host {
> > 	use generic-host
> > 	host_name myhost.mydomain.com
> > 	alias myhost
> > 	address 1.2.3.4
> > 
> > 	custom_macro FOOPROPERTY=AA:BB:CC:DD
> > 	custom_macro BARVALUE=BigImportantValue
> > 
> > 	hostgroups all_foo,all_bar
> > }
> <snip>

> > define command {
> > 	command_name check_foo
> > 	command_line $USER1$/check_foo -f $FOOPROPERTY$
> > }
> 
> You've pretty much exactly described $ARG1$, $ARG2$, ... $ARGn$

I'm sorry - I misspoke.

You've *almost* described $ARGn$.

My apologies.

Just hack in another property.
shouldn't be a big deal.

then it'd just be, like,

...
host_macro1 BLAH
host_macro2 FOO
...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060329/a4764105/attachment.sig>


More information about the Users mailing list