Ask Your Question

Last run metrics from _old_ versions of puppet.

asked 2016-06-08 19:52:18 -0500


We have a totally fragmented system, and are running a number of really ancient versions of puppet. There are apparently reasons not to upgrade these instances. We have some 2.6.4, some 2.6.9, some 2.6.17, some 3.7.4. We are looking for a way to universally monitor a few key metrics from them all. I wrote a datadog check in python to read the /var/lib/puppet/state/lastrunsummary.yaml file to extract some of this information. Turns out 2.6.4 doesn't write this file.

The question:

Does anyone know of another way to return the last puppet run date, and the number of failures? Are there command line options for puppet that span some or all of these versions of puppet that might work for me? Any other files that might allow me to parse this information?

Huge thanks in advance!


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-17 21:50:39 -0500

DarylW gravatar image

updated 2016-06-17 21:52:55 -0500

I have come across a few scripts like the following... from ripienaar's github

I haven't tested it with older versions of puppet, but it may do what you are looking for. ... Or.. it probably falls into the same problem that your script has. I'm not sure how the older version of puppet behaves. Does it log it's information to /var/log/messages ? If so, you could have a dumb script that parses back to the last occurance of 'puppet-agent' (I know that's how it shows up for puppet 3.7.4)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2016-06-08 19:52:18 -0500

Seen: 18 times

Last updated: Jun 17 '16