Hello! Even if puppet rule sets are OK, sometimes errors occur on puppet clients upon processing puppet rules. What are the best practices to catch/analyze them?
On Wed, Apr 20, 2011 at 13:46, Pavel Piatruk <piatruk.p@gmail.com> wrote:> Even if puppet rule sets are OK, sometimes errors occur on puppet clients upon > processing puppet rules. > What are the best practices to catch/analyze them?Puppet logs to syslog out of the box; we used a combination of our regular log collection and analysis tools, and a nagios check that puppet had run recently, to monitor the situation at my last job. Daniel -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman <daniel@puppetlabs.com> ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- 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.
We use a dashboard -- in our case Foreman -- and watch for hosts returning anything other than complete success. Any diagnostic messages at all drop the host into "hosts that made modifications" category, and errors drop the host into "hosts in error state." I have my team watching the dashboard throughout the day and if we see hosts drop into either category, they independently look and determine if there needs to be an investigation. The only tough thing about this is that it requires your classes to be well-behaved -- no extraneous output or debugging statements, or execs that run blindly every time. But you don''t have any of those anyway in your production environment, right? ;-) -Eric On Apr 20, 4:46 pm, Pavel Piatruk <piatru...@gmail.com> wrote:> Hello! > > Even if puppet rule sets are OK, sometimes errors occur on puppet clients upon > processing puppet rules. > What are the best practices to catch/analyze them? > > 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-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 might want to look into tagmail which can mail all errors to you (amongst other things). Alternatively there are dashboards you can use which prettify things quite a bit (puppet-dashboard, Foreman). It might be worth noting that at least Foreman supports tagmail type functionality - I''m not sure about puppet-dashboard as I haven''t been following the development too closely. http://docs.puppetlabs.com/references/stable/report.html#tagmail http://www.puppetlabs.com/puppet/related-projects/dashboard/ http://theforeman.org/ -- 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.