Tim Uckun
2009-Sep-07 02:42 UTC
[Puppet Users] reporting and err tag. [was Silent failure]
>> > As long as you are on a recent version there is an ''err'' tag, which you > can use in conjunction with tagmail to mail you any errors. I send mine > to a distribution group that ends up going to my team mates. >I am trying to implement this but I am not getting any logging or reporting at all. I do get emails if I put all: tag in the tagmail.conf but no emails when I put in err: tag in the file (I force an error). Here is my configuration on the puppetmaster [main] confdir=/usr/local/home/tim/puppet/etc ssldir=/etc/puppet/ssl vardir=/var/puppet [puppetmasterd] storeconfigs=true reports = tagmail,store,log tagmap=/etc/puppet/tagmail.conf smtpserver=some.smtp.server I also run puppetmaster like this (just to be sure) puppetmasterd --no-daemonize --verbose --debug --reports tagmail,store,log This is what tagmail.conf looks like #all: timuckun@gmail.com #this works err: timuckun@gmail.com #this doesn''t work if I force an error. This is what the client puppet.conf looks like [main] logdir=/var/log/puppet vardir=/var/lib/puppet ssldir=/var/lib/puppet/ssl rundir=/var/run/puppet factpath=$vardir/lib/facter #pluginsync=true [puppetd] report=true This is how I run the client (just to make sure) puppetd --server my.server.com --no-daemonize --logdest console --verbose --onetime --debug --test --trace --report No reports get generated. There is nothing int he /var/puppet/reports directory. No indications of anything going wrong in the log files. Nothing anywhere telling me what the problem might be. For me this has been the biggest problem with puppet. Complete silent failure. I have followed the documentation carefully, there is no indication of why it failed even with full debugging on and logging to the console. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Tim Uckun
2009-Sep-07 21:59 UTC
[Puppet Users] Re: reporting and err tag. [was Silent failure]
I hate to bump my own post but.... Can anybody point me in the direction of how to make the "err:" tag mailing work. I can get the "all:" tag working but when I force an error the "err:" tag doesn''t fire. See my previous email about the way I have set up the configuration. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Luke Kanies
2009-Sep-09 23:19 UTC
[Puppet Users] Re: reporting and err tag. [was Silent failure]
On Sep 6, 2009, at 7:42 PM, Tim Uckun wrote:> >>> >> As long as you are on a recent version there is an ''err'' tag, which >> you >> can use in conjunction with tagmail to mail you any errors. I send >> mine >> to a distribution group that ends up going to my team mates. >> > > I am trying to implement this but I am not getting any logging or > reporting at all. I do get emails if I put all: tag in the > tagmail.conf but no emails when I put in err: tag in the file (I force > an error). > > > Here is my configuration on the puppetmaster > > [main] > confdir=/usr/local/home/tim/puppet/etc > ssldir=/etc/puppet/ssl > vardir=/var/puppet > > [puppetmasterd] > storeconfigs=true > reports = tagmail,store,log > tagmap=/etc/puppet/tagmail.conf > smtpserver=some.smtp.server > > I also run puppetmaster like this (just to be sure) > > puppetmasterd --no-daemonize --verbose --debug --reports > tagmail,store,log > > This is what tagmail.conf looks like > > #all: timuckun@gmail.com #this works > err: timuckun@gmail.com #this doesn''t work if I force an error. > > > This is what the client puppet.conf looks like > > [main] > logdir=/var/log/puppet > vardir=/var/lib/puppet > ssldir=/var/lib/puppet/ssl > rundir=/var/run/puppet > factpath=$vardir/lib/facter > #pluginsync=true > > [puppetd] > report=true > > > > This is how I run the client (just to make sure) > puppetd --server my.server.com --no-daemonize --logdest console > --verbose --onetime --debug --test --trace --report > > > No reports get generated. There is nothing int he /var/puppet/reports > directory. No indications of anything going wrong in the log files. > Nothing anywhere telling me what the problem might be. > > For me this has been the biggest problem with puppet. Complete silent > failure. I have followed the documentation carefully, there is no > indication of why it failed even with full debugging on and logging to > the console.We just caught this problem of not being able to use the log level as a tag, and I think it got fixed around 0.24.8, so that might be the issue if you''re running a slightly older version. I''m still a little confused, though -- how do you know you''re getting an error if you''re not getting any error reports anywhere? -- I''m worried about Bart. Today, he''s sucking people''s blood, tommorrow he might be smoking. -Marge Simpson --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.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 -~----------~----~----~----~------~----~------~--~---
Tim Uckun
2009-Sep-10 02:36 UTC
[Puppet Users] Re: reporting and err tag. [was Silent failure]
> I''m still a little confused, though -- how do you know you''re getting > an error if you''re not getting any error reports anywhere?I am running the puppetmaster and the puppet non deamonized. In any case I have developed a workaround for this problem by calling the --compile on all my nodes in a test script. This way unless they all pass I won''t commit. Presumably if they do pass the pupper client will send a report if things go bad on the client and I will get emails. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---