Search code examples
linuxconfigurationmonit

Reading environment variables in Monit Configuration


How can I read environment variable inside monit configuration? For example, I have the following.

...
alert [email protected] only on { timeout }

But, I want different email address in different environments and want to load it from the environment variable (e.g. $HOME) of the machine.


Solution

  • Nice idea, but such a function is not available yet. You can not do this!