Ask Your Question

How to Monitor Puppet agents

asked 2015-12-29 04:53:13 -0600 gravatar image

HI All,

I have 1200 + Servers in the infrastructure & I want to monitor puppet agent on all of them to make sure that update on all Linux boxes pushing correctly & Linux systems are in consistent state. What is the best way to monitor it ?

Thanks & Regards


edit retag flag offensive close merge delete

Comments Also don't forget to monitor the master,

ramindk gravatar imageramindk ( 2016-01-03 04:54:09 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted

answered 2015-12-29 16:26:02 -0600

Marek Maksimczyk gravatar image

Reports should be sent to PuppetDB and as interface to DB use Puppet Board or Puppet Dashboard. Personally I use Puppet Board, it has simple and clear interface, I didn't try Puppet Dashboard.

edit flag offensive delete link more

answered 2015-12-29 16:34:41 -0600

iain gravatar image

updated 2015-12-30 06:24:26 -0600

We wanted to be able to monitor our puppet clients from minimal nagios checks, rather than having checks on each client. To do this I created two script that parses the puppetdb api responses. We are currently using API v3 and the scripts are written in Perl.

The first check looks at the node list (http://puppetdb.server:8080/v3/nodes) and does two tests. First it checks the date/time of catalog_timestamp to find all the clients that haven't run puppet recently, then it looks at report_timestamp to find all clients that haven't finished a successful run and submitted a report.

The second check looks at the events list (http://puppetdb.server:8080/v3/events) and filters on the last 30 minutes and failure status. This shows up any clients that are successfully completing but with non-critical errors.

edit flag offensive delete link more

answered 2015-12-31 03:41:16 -0600

YevgenyT gravatar image

Another option is using Foreman to collect Puppet run reports. It's a way to monitor Puppet infrastructure.

edit flag offensive delete link more

answered 2015-12-29 13:46:50 -0600

Tomasz Olszewski gravatar image

updated 2016-01-01 05:09:15 -0600

Easiest way is to monitor content of file, which is generated by each puppet agent run:


Years ago I created very simple NRPE plugin for similar purpose, check if you need an example.

edit flag offensive delete link more


Your filename got altered by the markdown. The correct name is: /var/lib/puppet/state/last_run_summary.yaml

iain gravatar imageiain ( 2015-12-29 16:24:11 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2015-12-29 04:53:13 -0600

Seen: 379 times

Last updated: Jan 01 '16