阅读环境变量MONIT配置
如何读取MONIT配置内的环境变量?例如,我有以下内容。
...
alert [email protected] only on { timeout }
但是,我希望在不同环境中使用不同的电子邮件地址,并希望从机器的环境变量(例如$ home)中加载它。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好主意,但是这种功能尚不可用。
你不能这样做!
Nice idea, but such a function is not available yet.
You can not do this!