email

Email plugin for scm which sends emails based on client status.

Description

The email plugin sends emails to configured receipients if a client status messages passes the configured filter.

Plugin

The email plugin is installed under share/plugins/monitor/memailplugin.so.

To add the plugin to scm, add it to the plugin list:

plugins = ${plugins}, memailplugin

Examples

An example configuration looks like this:

# Send notification is a clients CPU usage exceeds 100 percent
memailplugin.filter = "cpuusage>100"

# Send emails, yes
memailplugin.sendEmail = true

# Send emails to this address(es)
memailplugin.recipients = operator@my-agency.org, operator2@my-agency.org

memailplugin.reportSilentClients = false

# Minutes before report missing clients
memailplugin.reportRequiredClients = 1

# Interval to calculate mean of the message values for (in minutes)
memailplugin.filterMeanInterval = 1

# List of clients we definitely require to be operative
memailplugin.requiredClients = scautopick, scautoloc, scevent, scamp,\
                               scmag, scqc, scevtlog

Configuration

memailplugin.recipients

Type: list:string

Defines a comma separated list of email addresses to send notifications to.

memailplugin.template

Type: string

Configures a custom message text that is appended to each message when clients passed the filter.

memailplugin.filter

Type: string

Defines the filter for each client status. A filter is an expression that can be constructed with all available status tags (scm –print-tags) and logical and numerical operators. See scm for more information.

memailplugin.requiredClients

Type: list:string

No description available

memailplugin.reportSilentClients

Type: boolean

Default is true.

memailplugin.reportSilentClientsTimeSpan

Type: double

Unit: min

Default is 1.

memailplugin.reportRequiredClients

Type: double

Unit: min

Default is 10.

memailplugin.filterMeanInterval

Type: double

Unit: min

Default is 10.

memailplugin.sendEmail

Type: boolean

Enables sending of emails using mailx shell command. Default is false.