A large volatile part of my Nagios 3 (Icinga 1, actually) config looks like this:
...
define host{
host_name bla0037
use template-bla
}
define host{
host_name bla0042
use template-bla
}
...
Scripted management would be much easier if I could bundle up host definitions into single lines, like this:
...
define host{ host_name bla0037; use template-bla }
define host{ host_name bla0042; use template-bla }
...
But I haven't found out yet how. (e.g. semicolon makes the rest of a line a comment). Ideas?
(Generating lots of little host-bla0XYZ.cfg
files would also help automation, but I'd rather not clutter the conf dirs).