Mail Notifications » History » Version 1
Ohad Levy, 12/14/2009 06:38 AM
| 1 | 1 | Ohad Levy | h1. Summarized E-Mail Reports |
|---|---|---|---|
| 2 | |||
| 3 | h2. Overview |
||
| 4 | |||
| 5 | Starting in version 0-1.3 Foreman can send a hourly / daily email report containing information about your nodes. |
||
| 6 | this information will include: List of hosts that had errors or that have performed any action through puppet. |
||
| 7 | additionally, it would include a list of all of your hosts which didn't run Puppet recently (defaults to 30 minutes). |
||
| 8 | |||
| 9 | h2. Configuration |
||
| 10 | |||
| 11 | You would need to setup a cron job: |
||
| 12 | |||
| 13 | Available options: |
||
| 14 | * days => number of days to scan backwards (defaults to 1) |
||
| 15 | * hours => number of hours to scan backwards (defaults to disabled) |
||
| 16 | |||
| 17 | Example: |
||
| 18 | <pre> |
||
| 19 | rake reports:summarize days=3 RAILS_ENV="production" # Sends out a summary email for the last 3 days. |
||
| 20 | </pre> |
||
| 21 | or |
||
| 22 | <pre> |
||
| 23 | rake reports:summarize hours=12 RAILS_ENV="production" # Sends out a summary email for the last 12 hours. |
||
| 24 | </pre> |
||
| 25 | |||
| 26 | h3. Recipients |
||
| 27 | |||
| 28 | If you are using LDAP authentication, Foreman will send the reports directly to all registered users, if that's not what you would like, add the following line to your *config/settings.yaml* file: |
||
| 29 | <pre> |
||
| 30 | # where do send out daily report emails, comment out if you want to send to registered Foreman users instead. |
||
| 31 | :administrator: ohadlevy@gmail.com |
||
| 32 | </pre> |