On Sat, Jun 30, 2012 at 5:35 AM, hai wu <haiwu...@gmail.com> wrote:

> Thanks Tim.
>
> The problem is if you have multiple puppetmaster servers with
> different Puppet[:reportdir] on different local drives, thus for each
> node report yaml file, you would have to go to each puppetmaster
> server to retrieve the latest report file for that node, which is not
> ideal, as the copy is already stored in puppet dashboard, the problem
> is puppet dashboard would purge the file right away after loading it
> into database, and there's no way to retrieve that via API.
>

If you would consider using Foreman [1], there is a very simple api to
consume that state, e.g.

https://server/hosts/fqdn/reports/last

A lot of people use that along side with monitoring tools (such as nagios)
to generate alerts etc.

cheers,
Ohad

>
> On 6/29/12, Tim Mooney <tim.moo...@ndsu.edu> wrote:
> > In regard to: [Puppet Users] puppet node report, hai wu said (at 3:04am
> > on...:
> >
> >> Is there a way to download latest node report log from puppet dashboard?
> >
> > There's a way to do just about anything, but before you write some
> > complicated web screen-scraping code to get the report from the web
> > interface of dashboard, consider just enabling additional report backends
> > and instead pulling the data from there.
> >
> > There was a very good blog post about "when puppet reports" a few weeks
> > ago, check it out for more information on other reporting backends that
> > are available and how you might go about developing your own (perhaps
> > one for a database).  See
> >
> >       http://puppetlabs.com/blog/when-puppet-reports-part-1/
> >
> > Note also there's a part 2 that you'll want to check out.
> >
> > The most straightforward method would probably be to enable the yaml
> > backend and just pull the data from there.
> >
> > Tim
> > --
> > Tim Mooney
> tim.moo...@ndsu.edu
> > Enterprise Computing & Infrastructure                  701-231-1076
> (Voice)
> > Room 242-J6, IACC Building                             701-231-8541 (Fax)
> > North Dakota State University, Fargo, ND 58105-5164
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Puppet Users" group.
> > To post to this group, send email to puppet-users@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.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@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.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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