Turn email into events with zenmail and zenpop3. Zenmail allows us to start an internal SMTP server and direct other devices to send alerts directly to Zenoss via the open SMTP port. The message gets turned into an event in Zenoss. We can use the zenpop3 daemon to retrieve emails from a specified account and generate events based on those emails.
To use either program in daemon mode, we edit the $ZENHOME/bin/zenoss
configuration file, so that the daemons start when Zenoss starts. Also, the daemons will be available via Settings > Daemons in the Zenoss portal.
As the Zenoss user:
1. Back up
$ZENHOME/bin/zenoss
.2. Open
$ZENHOME/bin/zenoss
in a text editor.3. Find the line in the script that begins with
$ZENHOME/bin/zenfunctions
and uncomment or add the following lines (refer to the next screenshot):4. Restart the Zenoss daemons with the command
zenoss restart
.
When we restart the Zenoss daemon, zenmail and zenpop3 print warning messages that...