I've used two different ways of doing this, depending on whether or not you
have this stuff installed/running:
(1) if you have PuppetDB, just use that. I probably have a (Python) check
plugin for this somewhere if you need it.
(2) use `mco puppet status` and parse the output of that

These also have the advantage that they can be run as cron'ed passive
checks, and submit the results very efficiently.


On Tue, Jul 22, 2014 at 6:20 PM, Denmat <[email protected]> wrote:

> This one from RIP works ok for me:
>
> https://github.com/ripienaar/monitoring-scripts/blob/master/puppet/check_puppet.rb
>
>
> On 23 Jul 2014, at 5:47, Atom Powers <[email protected]> wrote:
>
> I use a script that checks if the puppet client is running and parses the
> lastrunreport for last run time and if any errors were reported applying
> the catalog.
>
>
> On Tue, Jul 22, 2014 at 12:36 PM, Bernard Clark <[email protected]>
> wrote:
>
>> We need to be alerted whenever a puppet report from any puppet client is
>> late. We were thinking of having Nagios monitor the last modification time
>> of a client's /var/lib/puppet/client_data/catalog/<fqdn>.json and alert us
>> when that file ages too much. Anyone have a better idea?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-users/5d8181b7-6911-4af1-95dd-24331425d80e%40googlegroups.com
>> <https://groups.google.com/d/msgid/puppet-users/5d8181b7-6911-4af1-95dd-24331425d80e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Perfection is just a word I use occasionally with mustard.
> --Atom Powers--
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAF-H%3DOkfzUo9JD9Jt_s8z3zr-w5f5M%3DGrZACWc_s%2B52E0DrE4g%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAF-H%3DOkfzUo9JD9Jt_s8z3zr-w5f5M%3DGrZACWc_s%2B52E0DrE4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/FF386C74-4A77-4EE4-BE09-62D0ACB129A1%40gmail.com
> <https://groups.google.com/d/msgid/puppet-users/FF386C74-4A77-4EE4-BE09-62D0ACB129A1%40gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAFt4V4%3DdCQQbG0iVE08nNV5nuEtQGyuqm8hq7qptxmHkTjFvfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to