How can I monitor the Puppet agent run?
We're starting to depend on Puppet in our infrastructure. Is there a simple way to monitor the state of Puppet agent runs?
Each Puppet agent run should generate a /var/lib/puppet/state/last_run_summary.yaml file that looks something like the following.
--- version: puppet: "2.7.21" config: 1365531454 changes: total: 0 events: success: 0 total: 0 failure: 0 resources: failed_to_restart: 0 failed: 0 changed: 0 out_of_sync: 0 total: 263 skipped: 6 restarted: 0 scheduled: 0 time: user: 0.02537 filebucket: 0.000382 file: 2.221451 config_retrieval: 8.83160305023193 ssh_authorized_key: 0.006314 total: 14.0908550502319 service: 1.630493 group: 0.001 last_run: 1365532022 exec: 1.339523 package: 0.034719
Your best bet to check that this file exists, is it recent, and ... (more)
You can also use Puppet-dashboard or foreman to get a visual view of status of all the nodes.
"Monitor the state of Puppet agent runs" can be interpreted either as "the REAL-TIME state of Puppet agent runs" or as "the last reported state of Puppet agent runs across my environment." The first is harder, and more interesting.
If what you want is to monitor the current runstate of Puppet agents across your infrastructure in real-time, check out https://github.com/hunner/progress_mq. It's not well documented but it may provide the core of what you're looking for. In essence, what this thing does is publish events on a message queue as they happen on Puppet agents ... (more)
Asked: 2013-04-09 14:51:14 -0500
Seen: 8,655 times
Last updated: Apr 13 '13