Hi, So far we don''t trust our puppet skills enough to have puppetd run automatically every morning (for example). This means we currently apply configurations using "puppetd --test" manually when needed. I''d like to monitor whether items/resources are out of sync and report this to our monitoring system. So far I see two options. Parse the output of "puppetd --test --noop --summarize" as we get something like this: "Changes: Total: 64 Resources: Applied: 64 Out of sync: 64 Scheduled: 2430 Total: 1088" Another option I''ve seen is "reports" (--report when running puppetd) which sends a YAML report to the server. I could then analyze reports on the puppetmaster. A raw " grep ''^ source:'' " may do the trick. I would then send the number of pending items to zabbix (our monitoring tool) and delete the report. Anyway, I''m wondering whether there''s already a nifty feature that does what I want and that I missed. By the way we''re running 0.24.8 but if 0.25 has better (well... "simple to parse") reporting, we could probably move to 0.25. Thanks for your help. Calimero --~--~---------~--~----~------------~-------~--~----~ 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
2009-Sep-23 12:45 UTC
[Puppet Users] Re: Monitoring whether puppetd should be run
On Wed, Sep 23, 2009 at 6:03 PM, Calimero <calimero.ng@evolutive.org> wrote:> > Hi, > > So far we don''t trust our puppet skills enough to have puppetd run > automatically every morning (for example). >why not ? :)> > Another option I''ve seen is "reports" (--report when running puppetd) > which sends a YAML report to the server. > I could then analyze reports on the puppetmaster. A raw " grep ''^ > source:'' " may do the trick. I would then send the number of pending > items to zabbix (our monitoring tool) and delete the report. >one option while using reports, instead of parsing them yourself, you can use Foreman, to collect and store the data in a database, it should be failry simple to display the content that you want once the reports are imported. (script based or http) Ohad --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Calimero
2009-Sep-25 11:51 UTC
[Puppet Users] Re: Monitoring whether puppetd should be run
On 23 sep, 14:45, Ohad Levy <ohadl...@gmail.com> wrote:> > why not ? :) >Let''s say that we''re doing everything from scratch: new distro, new apps, new deployment system and at last: puppet+svn. My colleague and I we''ve spent almost a year migrating configs to puppet, creating RPM packages, etc ... so we''re pretty good at it. But there are colleagues who''ve been fiddling with puppet for only over a month, and haven''t played yet with our "core" classes. Of course we should give them some "advanced" training but again, there''s a lot of stuff we need to fix first... (like the fact that our current telco will shutdown our uplink in a bit more than a week while we still have a few services that haven''t been migrated yet to the new infrastructure ...). Right now we prefer applying stuff "by hand" (dsh + puppetd) on servers that are temporarily put offline.> one option while using reports, instead of parsing them yourself, you can > use Foreman, to collect and store the data in a database, it should be > failry simple to display the content that you want once the reports are > imported.I''ll take a look at "The Foreman" which looks interesting. But I''d rather not add an extra layer / extra database. Thanks ! Calimero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---