Ask Your Question
0

alerting after puppet runs

asked 2018-06-11 08:46:10 -0500

sirinek gravatar image

We have a very large environment, and always have a number of nodes that either:

  1. Fail a puppet run
  2. The puppet run logs a change to a resource on every puppet run not because of buggy or non-idempotent code, but because there is something wrong with the underlying resource. Some examples are a service that starts then dies between puppet runs, or a buggy package that may give a successful return value upon install but does not really get installed.

Is there a good way to perform some action based upon the results of a puppet run? Ideally we would like to do something like send an snmp trap, an email, log a message to syslog, etc. when a puppet run fails or a change is logged over multiple puppet runs.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-06-12 07:32:07 -0500

Mr_Sharma gravatar image

Hi Sirinek, It seems in your case Tagmail module would be beneficial which is available on Puppet forge. You would need few configuration to be enabled to use tagmail also you can control the type of mail notification based on the loglevels.

Find the details here: https://forge.puppet.com/puppetlabs/t...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2018-06-11 08:46:10 -0500

Seen: 79 times

Last updated: Jun 12