Macros vs variables


(Marki) #1

Hey,
Just a quick stupid question: Why is it in fact that can’t you use variables inside a checkcommand but instead have to use “macros”, i.e.

arguments = {
“-H” = “$mysql_host$”
“-u” = “$mysql_user$”

instead of

arguments = {
“-H” = host.address
“-u” = vars.mysql_user

Somehow those $xxx$ macros make me shudder each time since they seem to be some relic from Nagios…