Ok, here's the report processor to send events to Zenoss, based off
James' Zendesk module.

https://github.com/donjohnson/puppet-zenoss

-Don
Release Engineer / Toolsmith, VerticalResponse

On Wed, Jun 8, 2011 at 6:09 PM, Don <auder...@gmail.com> wrote:
> Thanks for the help off-list, James.
>
> here's the stub I'm using to check if the log is error-ful, inside of
> process():
>
>   def process
>
>     failure = false
>
>     #iterate through each log object and look for failures
>     self.logs.each do |log|
>       if log.level.to_s == 'err' || 'alert' || 'emerg' || 'crit'
>         failure = true
>       end
>     end
>
>     if failure
>       Puppet.debug "Creating Zenoss event for failed run on #{self.host}."
> ###
>
> This definitely costs a few more cycles than with 2.6.5+.
>
> I'll publish the rest of the Zenoss processor on github tomorrow or Friday.
>
> -Don
>
> On Wed, Jun 8, 2011 at 5:23 PM, James Turnbull <ja...@puppetlabs.com> wrote:
>>
>> Don wrote:
>> >
>> > I'm running 2.6.4 on the master & client. pluginsync is true on both,
>> > and reports = zenoss only on the master for this test.
>> >
>> > Why is self.status not working in this case?
>> >
>>
>> The issue is that status is only available in the V2 report format in
>> Puppet 2.6.5 and onwards. Before this you need to check for "err" tags
>> to find failed runs.
>>
>> Regards
>>
>> James Turnbull
>>
>> --
>> James Turnbull
>> Puppet Labs
>> 1-503-734-8571
>>
>> --
>> 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+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-users@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.

Reply via email to