The sendMail.cfg file
If you send email, you must modify the sendMail.cfg file. It contains the name of the mail server and its port, the sender name and address, and a CC field for a list of email names that are automatically appended to the ccDst field defined in the event rule.
| Source | Tag | Description |
|---|---|---|
| Event | eventType | One of the event types (for example, sysStateChanged). |
| eventTimestamp | The data and time the event occurred (for example 17-Jun-02, 14:35:33 EDT). | |
| eventArgs | The event arguments (for example, hwType = spu, hwId =1002). | |
| eventDetail | Shorthand for the eventType, eventArgs, and eventTimestamp. | |
| Event rule | eventType | One of the event types (for example, hwDiskFull). |
| eventArgsExpr | The event argument match expression (for example, hwType == spu). | |
| notifyType | The type of notification, email, or runCmd. | |
| notifyDst | The notification destination (from -dst) (for example, jdoe@company.com). | |
| notifyCcDst | The cc notification destination (from -ccDst) (for example, jsmith@company.com). | |
| notifyMsg | The notification message (from -msg). | |
| eventAggrCount | The aggregate count of events for notification (email only) | |
| Environment | NZ_HOST | The host environment variable. |
| NZ_DIR | The nz directory. | |
| NZ_BIN_DIR | The nz bin directory. | |
| NZ_DATA_DIR | The nz data directory. | |
| NZ_KIT_DIR | The nz kit directory. | |
| NZ_LOG_DIR | The nz log directory. | |
| NZ_SBIN_DIR | The nz sbin directory. | |
| NZ_SYS_DIR | The nz system directory. | |
| NZ_TMP_DIR | The nz temp directory. |
| Argument | Description | Example |
|---|---|---|
| -dst | Your email address | -dst ‘jdoe@company.com,bsmith@company.com’ You can specify multiple recipients. |
| -msg | The subject field of the email | -msg ‘NPS system $HOST went from $previousState
to $currentState at $eventTimestamp.’ This message substitutes the host name for $HOST, the previous system state for $previousState, the current system state for $currentState, and the date and time the event occurred for $eventTimeStamp. |
| -bodyText | Optional body of the email | -bodyText '$notifyMsg\n\nEvent:\n$eventDetail\nEvent Rule:\n$eventRuleDetail'
This message substitutes the text in the -msg argument for the $notifyMsg, outputs a newline and the word ‘Event’ then the contents of the eventType through eventArgs, newline, and the word ‘Event Rule’. |
| -ccDst | Optional cc specification | -ccDst ‘rdoe@company.com,tsmith@company.com’ You can specify multiple recipients. |