[Puppet Users] Re: Only send report email if resource failed during run

2010-02-10 Thread symfrog
Thanks, setting warning,err on tagmail works

On Feb 10, 2:57 am, Joe McDonagh  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  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-us...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> puppet-users+unsubscr...@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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Only send report email if resource failed during run

2010-02-09 Thread Doug Warner
My tagmail.conf file looks like this:
warning, err: someem...@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  wrote:
>> Hi,
>>
>> Latest version of foreman (http://theforeman.org) supports this feature.
>>
>> cheers,
>> Ohad
>>
>> On Tue, Feb 9, 2010 at 9:00 PM, symfrog  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-us...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> puppet-users+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/puppet-users?hl=en.
> 




signature.asc
Description: OpenPGP digital signature


[Puppet Users] Re: Only send report email if resource failed during run

2010-02-09 Thread symfrog
Maybe someone has created a simple custom report for this?

On Feb 9, 3:03 pm, 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  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-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > puppet-users+unsubscr...@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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.