![Puppet:获取目录评估的实时状态并发布到远程服务器](https://linux22.com/image/613004/Puppet%EF%BC%9A%E8%8E%B7%E5%8F%96%E7%9B%AE%E5%BD%95%E8%AF%84%E4%BC%B0%E7%9A%84%E5%AE%9E%E6%97%B6%E7%8A%B6%E6%80%81%E5%B9%B6%E5%8F%91%E5%B8%83%E5%88%B0%E8%BF%9C%E7%A8%8B%E6%9C%8D%E5%8A%A1%E5%99%A8.png)
根据这篇文章http://docs.puppetlabs.com/guides/puppet_internals.html
Pupet Agent从Master处获取目录的过程分为四个阶段。
资源生成 => 关系 => 评估 => 报告
Reporting
As the transaction progresses, it collects logs and metrics on what it does. At the end
of evaluation, it turns this information into a report, which it sends to the server (if
requested).
评估结束时,傀儡代理会生成一份报告,并将报告发送给主人。
有没有办法获取评估阶段的实时状态并将其发布到远程日志收集器?
很高兴收到任何建议。
答案1
毕竟我使用 Nagios & NSClient++ 来收集 puppet 的实时事件日志,详细信息可以在这里找到http://blog.medin.name/2012/03/20/real-time-event-log-monitoring-with-nsclient/