I am trying to setup reporting using tagmail so that it will e-mail me when it receives errors running the catalog on a node. I setup my tagmail.conf with "err: me@theoffice" using the hint from Pulling strings with Puppet and I don''t receive any e-mails. If I switch "err" to "all" I get a flood of e-mails so I am pretty sure I have the basic''s right but am missing something. After a bit of googling I came across this puppet bug http://projects.reductivelabs.com/issues/show/1089which might be related. Any help would be much appreciated including a link as to where I can go RTFM. Thanks! -- --dn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Dave On Sep 19, 10:33 pm, "Dave Nash" <harbinge...@gmail.com> wrote:> I am trying to setup reporting using tagmail so that it will e-mail me when > it receives errors running the catalog on a node.I''m pretty sure this functionality doesn''t exist. The left-hand side of a tagmail line specifies tags, and err isn''t a tag (unless you manually tag something ''err'' using tag("err"), but that''s not what you want). http://reductivelabs.com/trac/puppet/wiki/UsingTags explains what tags resources get but none of them relate to whether or not an operation produced an error.> I setup my tagmail.conf with "err: me@theoffice" using the hint from > Pulling strings with Puppet and I don''t receive any e-mails. If I switch > "err" to "all" I get a flood of e-mails so I am pretty sure I have the > basic''s right but am missing something. After a bit of googling I came > across this puppet bughttp://projects.reductivelabs.com/issues/show/1089whichmight be > related.Yep, looks like #1089 is a feature request for just this. I''d like something like this too so I''ll have a look at the code but I can''t guarantee I''ll work it out :~) I have patched tagmail.rb to color lines that match an error regex but it''s not pretty. Cheers, Mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey Mark, I was thinking somehow puppet automatically created the error tag when there we errors in the output stream. I guess that the book is a little out of Date then. Well if you don''t get a chance to fix it maybe I will try my hand at a little more advance Ruby in a few weeks, for now I think e-mail filters will be the way to go. Thanks --dn On Sat, Sep 20, 2008 at 2:08 PM, Mark Drayton <mdrayton@gmail.com> wrote:> > Hi Dave > > On Sep 19, 10:33 pm, "Dave Nash" <harbinge...@gmail.com> wrote: > > I am trying to setup reporting using tagmail so that it will e-mail me > when > > it receives errors running the catalog on a node. > > I''m pretty sure this functionality doesn''t exist. The left-hand side > of a tagmail line specifies tags, and err isn''t a tag (unless you > manually tag something ''err'' using tag("err"), but that''s not what you > want). http://reductivelabs.com/trac/puppet/wiki/UsingTags explains > what tags resources get but none of them relate to whether or not an > operation produced an error. > > > I setup my tagmail.conf with "err: me@theoffice" using the hint from > > Pulling strings with Puppet and I don''t receive any e-mails. If I switch > > "err" to "all" I get a flood of e-mails so I am pretty sure I have the > > basic''s right but am missing something. After a bit of googling I came > > across this puppet bughttp:// > projects.reductivelabs.com/issues/show/1089whichmight be > > related. > > Yep, looks like #1089 is a feature request for just this. I''d like > something like this too so I''ll have a look at the code but I can''t > guarantee I''ll work it out :~) I have patched tagmail.rb to color > lines that match an error regex but it''s not pretty. > > Cheers, > > Mark > > >-- --dn http://www.cordump.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---