Python to send color email notifications of changes to func-inventory
Python Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc/images
etc
func-inventory-notifier
func/overlord
old
scripts
.gitignore
MANIFEST.in
README.rst
TODO.txt
setup.py
ugly-uninstall.sh

README.rst

func-inventory-notifier

send colorized HTML emails of func-inventory changes

Author:Ralph Bean <ralph.bean@gmail.com>

a sample email received from func-inventory-notifier

An example of a notification sent by func-inventory-notifier showing that the httpd service was started on the host lukacs.

Screenshots

Bugs

Installation Notes

To begin with, read about func and especially func-inventory if you don't yet know what they are.

Make sure you have func installed and working as you please.

Install func-inventory-notifier with:

pip install func-inventory-notifier

(or)

yum install func-inventory-notifier

Configure func-inventory notifier by editing /etc/func/func-inventory-notifier.conf

Take it for a spin by running /usr/bin/func-inventory-notifier

Further Usage Notes

It is particularly useful when scheduled to run regularly with cron. For instance, with a default installation of both func and func-inventory-notifier, a crontab entry like

0 * * * * /usr/bin/func-inventory-notifier 2>&1 | /bin/logger -t func

will wake up on the hour, monitor func-inventory's git repository, and if a change has happened, prepare and fire off an email to the root user. Any errors will be tossed to the system log for you to see (and report!)

We use it in conjunction with func's filetracker module to log all of our configurations changes in /etc: think yum repo configurations, httpd, passwd and shadow.