per host custom macros
Brandino Andreas
ampranti at gmail.com
Sun Nov 26 21:02:18 CET 2006
Maybe something like that will help
http://www.nagiosexchange.org/Patches_2_0.67.0.html?&tx_netnagext_pi1[p_view]=427
Wednesday, March 29, 2006, 8:10:53 PM, you wrote:
> 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
> ..
<> --- - - - --- <>
Brandino Andreas
ampranti at gmail.com
<> --- - - - --- <>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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