On Tue, Feb 15, 2011 at 6:55 AM, Rus Hughes <[email protected]> wrote: > Hi, > > We'd like to run puppet regularly in noop then trigger an event after > the run depending on the results, namely to hook puppet in to our > Nagios implementation so that if anything changes for any reason we > receive an alert. > > We already have puppet configured to send out puppet reports via email > but don't want to completely rely on that. > > Is it possible to craft a trigger of some sort so that after a run we > can run a shell script which goes 'ok, nothing has changed, send > nagios an OK' or 'omg changes, > send nagios a CRITICAL and wake everyone up' ?
It sounds like you're looking for a postrun_command ? # A command to run after every agent run. If this command returns a non-zero # return code, the entire Puppet run will be considered to have failed, even though it might have # performed work during the normal run. # The default value is ''. # postrun_command = Or perhaps even more simply, set up reporting so you can mine the structured report data for status information. > > Thanks, > > Rus > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
