Repeated message suppression

From Brandonhutchinson.com

Revision as of 15:53, 9 December 2008 by Hutch (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

cfengine by default will not email duplicate reports for a period of one day unless Inform = ( on ).

e.g.,

# cfexecd -Fdq
...
ChecksumFile(m,/var/cfengine/outputs/previous)
ChecksumFile(m,/var/cfengine/outputs/cf_viammad001_navitaire_com_2008-12-09--09-32-36)
Previous output is the same as current so do not mail it

Note that the one day delivery suppression appears broken in cfengine 2.1.22. With this version, reports are sent once, but never again.

If you would like the duplicate reports emailed with every iteration, and do not want to turn Inform = ( on ), insert a variable into your alert that will make it unique with every iteration, such as $(date).

Personal tools