Setting up unread email as an event in the operator console
The severity of the event is determined from the content of the email, if it has any of the following keywords:
- State: <severity>
- Severity: <severity>
If both the keywords are missing, then the default configured severity value, INFO is used. The following severity values are also supported:
- OK
- MINOR
- MAJOR
- CRITICAL
- WARNING
Only emails that are in the configured folder of the email server are read. The following properties can be configured in the pronet.conf property file:
pronet.email2event.mailserver.port=143
pronet.email2event.protocol=imap
pronet.email2event.mailserver.username=<user name>
pronet.email2event.mailserver.password=<encrypyted password>
pronet.email2event.mailserver.ssl.enabled=false
pronet.email2event.folder=inbox
pronet.email2event.delete.read.messages=true
pronet.email2event.mailbox.scan.frequency.mins=15
pronet.email2event.enabled=false
pronet.email2event.default.severity=INFO
Configuring an email as an event
You can configure an email as an event through the command line interface by running the pw email2event command:
usage:
pw email2event [-y]|[-c]|[-s]|[-e]
The following table lists the parameters available in the pw email2event command :
Options | Description |
---|---|
–y | Encrypts the mailbox password. |
–c | Configures email as event. |
-s | Starts scanning email as event. |
–e | Stops scanning email as event |
Example
Run the following command to encrypt your mail box password. This command will prompt you to enter the mail box password in plain text, and gives the encrypted password as the output.
$ pw email2event -y
Assign this encrypted password value to the pronet.email2event.mailserver.password property in the pronet.conf file.
Open the pronet.conf file and configure the following properties:
pronet.email2event.mailserver.fqdn=<f.e.webmail.bmc.com>pronet.email2event.mailserver.username=<username>
pronet.email2event.mailserver.password=<encrypted password>
pronet.email2event.delete.read.messages=falsepronet.email2event.mailbox.scan.frequency.mins=5pronet.email2event.mailserver.ssl.enabled=true
pronet.email2event.enabled=true- Restart the server.
$ pw sys start
Limitations
- A dedicated email account is required.
- Only IMAP protocol is supported.
- IMAP protocol is also supported over SSL or TLS.
- There is no proxy support in connecting to the email server.
- NTLM authentication is not supported.
- The configured user account must have read and write permission for the configured folder.
- Email servers with HTTP access are not supported.
- The cell process must be running to create events.
- Events that are created are assigned to priority 5.