Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
puppet node report
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hai wu  
View profile  
 More options Jun 28 2012, 4:04 am
From: hai wu <haiwu...@gmail.com>
Date: Thu, 28 Jun 2012 03:04:46 -0500
Local: Thurs, Jun 28 2012 4:04 am
Subject: puppet node report
Is there a way to download latest node report log from puppet dashboard?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Mooney  
View profile  
 More options Jun 29 2012, 6:02 pm
From: Tim Mooney <Tim.Moo...@ndsu.edu>
Date: Fri, 29 Jun 2012 17:02:06 -0500 (CDT)
Local: Fri, Jun 29 2012 6:02 pm
Subject: Re: [Puppet Users] puppet node report
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hai wu  
View profile  
 More options Jun 29 2012, 10:35 pm
From: hai wu <haiwu...@gmail.com>
Date: Fri, 29 Jun 2012 21:35:56 -0500
Local: Fri, Jun 29 2012 10:35 pm
Subject: Re: [Puppet Users] puppet node report
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.

On 6/29/12, Tim Mooney <Tim.Moo...@ndsu.edu> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ohad Levy  
View profile  
 More options Jun 30 2012, 2:35 am
From: Ohad Levy <ohadl...@gmail.com>
Date: Sat, 30 Jun 2012 09:35:54 +0300
Local: Sat, Jun 30 2012 2:35 am
Subject: Re: [Puppet Users] puppet node report

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ohad Levy  
View profile  
 More options Jun 30 2012, 2:36 am
From: Ohad Levy <ohadl...@gmail.com>
Date: Sat, 30 Jun 2012 09:36:28 +0300
Local: Sat, Jun 30 2012 2:36 am
Subject: Re: [Puppet Users] puppet node report

and of course, [1] is http://theforeman.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hai wu  
View profile  
 More options Jun 30 2012, 4:42 pm
From: hai wu <haiwu...@gmail.com>
Date: Sat, 30 Jun 2012 15:42:47 -0500
Local: Sat, Jun 30 2012 4:42 pm
Subject: Re: [Puppet Users] puppet node report
This is good to know. It seems foreman has its own report plugin
script (foreman.rb), so it should not be a problem if I use both at
the same time for reporting purposes. Puppet dashboard uses reporturl,
as long as foreman would keep its current plugin (reports = foreman),
there should be no conflict of using both, correct? It seems foreman
has a new feature using reporturl, I won't be able to use that as
reporturl is currently pointing to puppet dashboard ..

On 6/30/12, Ohad Levy <ohadl...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ohad Levy  
View profile  
 More options Jul 1 2012, 1:53 am
From: Ohad Levy <ohadl...@gmail.com>
Date: Sun, 1 Jul 2012 08:53:13 +0300
Local: Sun, Jul 1 2012 1:53 am
Subject: Re: [Puppet Users] puppet node report

On Sat, Jun 30, 2012 at 11:42 PM, hai wu <haiwu...@gmail.com> wrote:
> This is good to know. It seems foreman has its own report plugin
> script (foreman.rb), so it should not be a problem if I use both at
> the same time for reporting purposes. Puppet dashboard uses reporturl,
> as long as foreman would keep its current plugin (reports = foreman),
> there should be no conflict of using both, correct? It seems foreman
> has a new feature using reporturl, I won't be able to use that as
> reporturl is currently pointing to puppet dashboard ..

> yeah, it doesn't really matter, you can use either of them regardless.

Ohad


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »