Subject: Variable substitution inside host grouping?

From: Sebastian Kayser <[email-masked]>
Date: Fri, 19 Aug 2005 13:17:08 +0200

Is there something like a variable substitution i can use inside my host 
groupings?

Inside my host groupings i have configured several script checks via the 
Prog service. Each of these scripts takes the hostname as parameter.

So instad of having to write down the hostname for each of these scripts

Host "foobar" {

   countstop:     yes

   Service Prog {
      label:      MetaDB
      command:    check.sh ds-metadb foobar
      expect:     ^OK
   }
   ...
}

i am in search for something like

Host "foobar" {

   countstop:     yes

   Service Prog {
      label:      MetaDB
      command:    check.sh ds-metadb $HOST
      expect:     ^OK
   }
   ...
}

Cheers,

Sebastian