[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Macro help



Note I searched the archive for an answer for this and all I found was someone else asking the exact same question ( http://www.hswn.dk/hobbiton/2005/08/msg00344.html ). If anyone has successfully used macros in hobbit-clients.cfg, please let me know.

-Charles

Charles Jones wrote:

Can we use macros in other config files besides hobbit-alerts.cfg? I'm trying to use the following in hobbit-clients.cfg, and it's just not working:

$TOMCAT_1_1="prod-app-12|prod-app-15|prod-app-19"
$TOMCAT_1_2="prod-app-32"
$TOMCAT_1_3="prod-app-23|prod-app-27"
$TOMCAT_2_1="prod-app-4|prod-app-7|prod-app-14|prod-app-29"

HOST=%($TOMCAT_1_1)
        PROC "tomcat_1_1" TRACK=tc_1_1

HOST=%($TOMCAT_1_2)
        PROC "tomcat_1_2"  TRACK=tc_1_2

HOST=%($TOMCAT_1_3)
        PROC "tomcat_1_3"  TRACK=tc_1_3

HOST=%($TOMCAT_2_1)
        PROC "tomcat_2_1"  TRACK=tc_2_1

Note: I have many. many more hosts to define, which is why I would prefer to use macros if possible.