Creating events by e-mail
Zenoss Core provides two not often talked about daemons to generate events from e-mails. The zenmail
daemon allows us to start a Zenoss Core SMTP server that other programs can use as a mail server to send e-mail messages directly to Zenoss Core. Zenoss Core automatically turns the message into an event. The zenpop3
daemon retrieves e-mails from a specified account and generates events based on the incoming e-mails.
To use either program in daemon mode, we need to edit the $ZENHOME/bin/zenoss
configuration file, so that the daemons start when Zenoss Core starts.
As the zenoss user:
Open
$ZENHOME/bin/zenoss
in a text editor.Find the line in the script that begins with
$ZENHOME/bin/zenfunctions
and uncomment or add the following lines (refer to the next screenshot):C="$C zenmail" C="$C zenpop3"
Restart the Zenoss daemons with the command
zenoss
restart
:
When we restart the Zenoss daemons, zenmail and zenpop3 print warning messages that tell us that they were unable to...