FAQ
Is there a way to download latest node report log from puppet dashboard?

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

  • Tim Mooney at Jun 29, 2012 at 10:04 pm

    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.mooney@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+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
  • Hai wu at Jun 30, 2012 at 2:36 am
    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 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.mooney@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+unsubscribe@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+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
  • Ohad Levy at Jun 30, 2012 at 6:35 am

    On Sat, Jun 30, 2012 at 5:35 AM, hai wu 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 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.mooney@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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
  • Ohad Levy at Jun 30, 2012 at 6:36 am
    On Sat, Jun 30, 2012 at 9:35 AM, Ohad Levy wrote:
    On Sat, Jun 30, 2012 at 5:35 AM, hai wu 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.
    and of course, [1] is http://theforeman.org
    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 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.mooney@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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
  • Hai wu at Jun 30, 2012 at 8:42 pm
    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 wrote:
    On Sat, Jun 30, 2012 at 5:35 AM, hai wu 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 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.mooney@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
  • Ohad Levy at Jul 1, 2012 at 5:53 am

    On Sat, Jun 30, 2012 at 11:42 PM, hai wu 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
    On 6/30/12, Ohad Levy wrote:
    On Sat, Jun 30, 2012 at 5:35 AM, hai wu 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 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.mooney@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedJun 28, '12 at 8:04a
activeJul 1, '12 at 5:53a
posts7
users3
websitepuppetlabs.com

3 users in discussion

Hai wu: 3 posts Ohad Levy: 3 posts Tim Mooney: 1 post

People

Translate

site design / logo © 2021 Grokbase