In the end I just changed my script to grep for 'Failed' in the
reports YAML files. My script already uses the time of the most recent
report YAML file to detect if it's been too long since the most recent
report (eg. if the puppetd process has died or something).

I'll wait for http://projects.puppetlabs.com/issues/4339 to be
completed I think.

Tim

On Nov 12, 2:45 pm, Doug Warner <d...@warner.fm> wrote:
> I use tmz's puppetstatus scripts [1] [2] and they work great for checking the
> last run time from Nagios.  I also have reports setup w/ tagmail to send me
> anything with "err" in it.
>
> -Doug
>
> [1]http://markmail.org/message/m6xi34aljso4w5qq
> [2]http://tmz.fedorapeople.org/scripts/puppetstatus/
>
> On 11/11/2010 09:09 AM, Tim wrote:
>
> > Hi,
>
> > I was wondering how people here monitor puppet runs on the clients.
> > For puppet 0.25.x I enabled reporting and then wrote a nagios plugin
> > to parse the YAML report files that each client returned after a run.
> > Specifically I was looking for any 'failures' or 'failed_restarts'.
>
> > Unfortunately with 2.6.2 the format of those YAML files has not only
> > changed but also varies hugely for different hosts depending on how
> > the run went. Plus the sheer size of these files now means it takes
> > too long for PyYAML to parse them (even for only 40 odd hosts).
>
> > In fact, I don't understand what the YAML reports are useful for -
> > they don't appear to realistically be either human or machine
> > readable.
>
> > Anyway what other approaches are there? I'd like to simply see 2
> > things:
> > 1) If there were any failures during the puppet run on the client
> > 2) When the last puppet run on each client was (ie. if it was more
> > than 50 mins ago raise a warning)
>
>
>
>  signature.asc
> < 1KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to