symfrog
2010-Feb-09 13:00 UTC
[Puppet Users] Only send report email if resource failed during run
Hi I have configured puppet to send reports via email using tagsmail. The problem is that it sends all the log messages every run (without a metric summary), which is not so useful. Is it possible to only send a report with the metrics only if one or more resources failed? 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.
Ohad Levy
2010-Feb-09 13:03 UTC
Re: [Puppet Users] Only send report email if resource failed during run
Hi, Latest version of foreman (http://theforeman.org) supports this feature. cheers, Ohad On Tue, Feb 9, 2010 at 9:00 PM, symfrog <wpdutoit@gmail.com> wrote:> Hi > > I have configured puppet to send reports via email using tagsmail. The > problem is that it sends all the log messages every run (without a > metric summary), which is not so useful. Is it possible to only send a > report with the metrics only if one or more resources failed? > > 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<puppet-users%2Bunsubscribe@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.
symfrog
2010-Feb-09 13:52 UTC
[Puppet Users] Re: Only send report email if resource failed during run
Maybe someone has created a simple custom report for this? On Feb 9, 3:03 pm, Ohad Levy <ohadl...@gmail.com> wrote:> Hi, > > Latest version of foreman (http://theforeman.org) supports this feature. > > cheers, > Ohad > > On Tue, Feb 9, 2010 at 9:00 PM, symfrog <wpdut...@gmail.com> wrote: > > Hi > > > I have configured puppet to send reports via email using tagsmail. The > > problem is that it sends all the log messages every run (without a > > metric summary), which is not so useful. Is it possible to only send a > > report with the metrics only if one or more resources failed? > > > 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<puppet-users%2Bunsubscribe@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.
Doug Warner
2010-Feb-09 15:34 UTC
Re: [Puppet Users] Re: Only send report email if resource failed during run
My tagmail.conf file looks like this: warning, err: someemail@example.com This only sends me email if warning or err events are seen. -Doug On 02/09/2010 08:52 AM, symfrog wrote:> Maybe someone has created a simple custom report for this? > > On Feb 9, 3:03 pm, Ohad Levy <ohadl...@gmail.com> wrote: >> Hi, >> >> Latest version of foreman (http://theforeman.org) supports this feature. >> >> cheers, >> Ohad >> >> On Tue, Feb 9, 2010 at 9:00 PM, symfrog <wpdut...@gmail.com> wrote: >>> Hi >> >>> I have configured puppet to send reports via email using tagsmail. The >>> problem is that it sends all the log messages every run (without a >>> metric summary), which is not so useful. Is it possible to only send a >>> report with the metrics only if one or more resources failed? >> >>> 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<puppet-users%2Bunsubscribe@googlegroups.com> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >
Joe McDonagh
2010-Feb-10 00:57 UTC
Re: [Puppet Users] Only send report email if resource failed during run
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ohad Levy wrote:> Hi, > > Latest version of foreman (http://theforeman.org) supports this feature. > > cheers, > Ohad > > On Tue, Feb 9, 2010 at 9:00 PM, symfrog <wpdutoit@gmail.com> wrote: > >> Hi >> >> I have configured puppet to send reports via email using tagsmail. The >> problem is that it sends all the log messages every run (without a >> metric summary), which is not so useful. Is it possible to only send a >> report with the metrics only if one or more resources failed? >> >> 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<puppet-users%2Bunsubscribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> >> >Puppet has supported an ''err'' tag since like .24.6, however if your distro comes with something old, you may not have success trying to use this. - -- Joe McDonagh AIM: YoosingYoonickz IRC: joe-mac on freenode L''ennui est contre-révolutionnaire -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEUEARECAAYFAktyBF8ACgkQRkBieEaRmuY36ACeNRfJiTCyM4GNAyrbgQmUYLET yMMAlRPRBoCknJyi3rUxRJKomC4ghVE=is5Z -----END PGP SIGNATURE----- -- 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.
symfrog
2010-Feb-10 09:02 UTC
[Puppet Users] Re: Only send report email if resource failed during run
Thanks, setting warning,err on tagmail works On Feb 10, 2:57 am, Joe McDonagh <joseph.e.mcdon...@gmail.com> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > Ohad Levy wrote: > > Hi, > > > Latest version of foreman (http://theforeman.org) supports this feature. > > > cheers, > > Ohad > > > On Tue, Feb 9, 2010 at 9:00 PM, symfrog <wpdut...@gmail.com> wrote: > > >> Hi > > >> I have configured puppet to send reports via email using tagsmail. The > >> problem is that it sends all the log messages every run (without a > >> metric summary), which is not so useful. Is it possible to only send a > >> report with the metrics only if one or more resources failed? > > >> 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<puppet-users%2Bunsubscribe@googlegroups.com> > >> . > >> For more options, visit this group at > >>http://groups.google.com/group/puppet-users?hl=en. > > Puppet has supported an ''err'' tag since like .24.6, however if your > distro comes with something old, you may not have success trying to use > this. > > - -- > Joe McDonagh > AIM: YoosingYoonickz > IRC: joe-mac on freenode > L''ennui est contre-r volutionnaire > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEUEARECAAYFAktyBF8ACgkQRkBieEaRmuY36ACeNRfJiTCyM4GNAyrbgQmUYLET > yMMAlRPRBoCknJyi3rUxRJKomC4ghVE> =is5Z > -----END PGP SIGNATURE------- 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.