On Tue, Jul 19, 2011 at 11:03 AM, Rich Rauenzahn <rraue...@gmail.com> wrote: > I assumed this would have been fixed by 2.7.1, but it appears that > when we call the functions err(), warning(), etc., that they don't get > added to the report object, which we are using to generate nagios > alerts. > > I'm guessing I'll have to write my own to do that -- does anyone have > any examples of logging the error message and also adding it to the > report object? (... and I don't really want to use the exec { > "/bin/false": } workaround)
Digging through the code it looks like puppet adds messages internally using Puppet.warning(), Puppet.error(), so I made a custom function to call these directly. I'm still not getting my error() messages in the report yaml ... why? And is there any workaround? -- 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.