Cannot Send E-mail Notifications to Multiple Targets
When the notification server is on Windows computer and you are using Blat as the command-line e-mail client, e-mail notifications are not being sent to all of the e-mail addresses that are entered as notification targets.
Explanation | Solution |
---|---|
The PATROL KM for Event Management is not configured to pass command-line arguments. | From the PATROL Configuration Manager, set the /AS/EVENTSPRING/ useEnvOnlyForCmds rule to 0. For more information, see To Set the /AS/EVENTSPRING/ useEnvOnlyForCmds Value. |
Why set the /AS/EVENTSPRING/useEnvOnlyForCmds Rule to O?
The batch file uses the environment variable AS_NOTIFICATION_TARGETS to get the list of e-mail targets. PATROL does not allow commas to be passed to the environment variable.
If you set the rule /AS/EVENTSPRING/useEnvOnlyForCmds to 0, the PATROL KM for Event Management passes the targets as command-line arguments first. Command-line arguments support commas.
Default Values
If you configure the notification server using the Quick Config menu option, the default value for /AS/EVENTSPRING/useEnvOnlyForCmds is 1 on Unix and AS/400 (iSeries) environments, which does not support commas.
In Windows and VMS environments, the default value is 0, which does support commas.
To Set the /AS/EVENTSPRING/ useEnvOnlyForCmds Value
- From the PATROL console, access the host KM menu commands as described in Accessing KM Commands and InfoBoxes.
- Choose the KM menu command Event Management > Alert Settings > Local Alert Settings > Notification Command > Set For Classes.
- From the Choose Target Class(es) dialog box, select / (for all application classes) and select Accept.
The SET EVENT MANAGEMENT VARIABLE: alertLocalCommand dialog box is displayed, as shown in the following figure.
SET EVENT MANAGEMENT VARIABLE: alertLocalCommand dialog box - For the option Call command using Event Management KM environment variables only, select No.
- To save your changes, click Accept.
- Restart the PATROL Agent for the changes to be recognized.