Page 1 of 1

[Nagios-devel] $USERn$ macros throughout config

Posted: Tue Sep 02, 2008 2:59 am
by Guest
Hi,

I was wondering whether it would be desirable to be able to use
$USERn$ macros throughout the Nagios configuration and not just in
check definitions etc. In my instance I wanted to be able to flag
whether we were on a central server or a distributed one. I was going
to use $USER10$ set to 0 on the central server and $USER10$ set to 1
on a distributed server. I was then going to use $USER10$ as the value
of active_checks_enabled and notifications_enabled. As it didn't work
I have created a separate template file which doesn't get sync'd
between servers that defines the values, but I still feel the use of
the macro would be cleaner.

Cheers,
Fraser





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]