当 puppet 运行 失败时发送电子邮件通知
send email notification when a puppet run fails
我正在使用开源 Puppet 3.8 版来控制我在 AWS 中的环境。
我想知道是否有监控傀儡代理失败的好方法。
基本上,每次木偶 运行 失败时(对于每个节点),我都希望通过电子邮件收到通知。
有没有办法在puppet的开源版本中实现这个功能?
如有任何帮助,我们将不胜感激。
为此我推荐使用 tagmail 模块:https://forge.puppet.com/puppetlabs/tagmail
"Puppet's loglevels (debug, info, notice, warning, err, alert, emerg, crit, and verbose) can also be used as tags, and the all tag always matches every log message."
您还可以设置为标记特定资源或 类,具体取决于您希望错误消息显示的时间。
我正在使用开源 Puppet 3.8 版来控制我在 AWS 中的环境。 我想知道是否有监控傀儡代理失败的好方法。 基本上,每次木偶 运行 失败时(对于每个节点),我都希望通过电子邮件收到通知。 有没有办法在puppet的开源版本中实现这个功能?
如有任何帮助,我们将不胜感激。
为此我推荐使用 tagmail 模块:https://forge.puppet.com/puppetlabs/tagmail
"Puppet's loglevels (debug, info, notice, warning, err, alert, emerg, crit, and verbose) can also be used as tags, and the all tag always matches every log message."
您还可以设置为标记特定资源或 类,具体取决于您希望错误消息显示的时间。