Xymon Mailing List Archive search

creating a macro made of macro's in hobbit-alerts.cfg

list Asif Iqbal
Wed, 25 May 2005 15:04:24 -0400
Message-Id: <user-9a2e1a8a8676@xymon.invalid>

On Wed, May 25, 2005 at 02:58:18PM, Tom Georgoulias wrote:
Is it possible to create some macros of hosts, then bundle combinations of those smaller macros into larger ones?

Say I have 3 groups of systems:

$DB=%(db1|data1|dbase).domain.com

$MAIL=%(mail1|smtp|webmail).domain.com

$WS=%(ws1|fred|wilma).domain.com

I'd like to make 2 macros of those systems, one for critical systems, the other for everthing on my network:

$CRITICAL=%($DB|$MAIL)

$ALL=%($DB|$MAIL|$WS)

Then use only the variables $CRITICAL or $ALL as my HOST=<variable name> entry.

If this can be done, I'm having problems getting the syntax right.  Any pointers?
I could benefit from this too. What I found out is that it does not like
macro made out of macro.

Thanks

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
"..there are two kinds of people: those who work and those who take the credit...try
 to be in the first group;...less competition there."  - Indira Gandhi