IBM Support

Send email or text as a monitor action

News


Abstract

Send email as a monitor action

Content

You are in: IBM i Technology Updates  > IBM Navigator for i > Enhancements list > System Monitors > Send email as a monitor action

Set up to send email from IBM i

Make sure the SMTP is in started status: 

TCP/IP Servers > SMTP > right click to Start

To start, right click and select "Start":

Add the sending user profile name to the SMTP Local Mailbox Directory

ADDUSRSMTP USRPRF(userProf)

Use SNDSMTPEMM command to send the email

SNDSMTPEMM RCP(xxx@yy.com) SUBJECT('Monitor &MON triggered.') NOTE('Monitor &MON on system &ENDPOINT has CPU Utilization over the value of &TVAL for &TDUR interval(s). Current value is &VAL.')
Use SNDSMTPEMM command to send a Text message
Find SMS Gateway address and use with 10-digit cell phone number:
  •   Use 10-digit mobile phone number for the person you are sending a message to in front of the appropriate address
  •   i.e. 1234567890@carrier.com:
  • SNDSMTPEMM RCP(('1234567890@carrier.net')) SUBJECT('Monitor &MON triggered.') NOTE('Monitor &MON has CPU Utilization over the value of &TVAL for &TDUR interval(s). Current value is &VAL.')
Send message
  • SNDMSG MSG('Disk Response &MON hit &VAL') TOUSR(*SYSOPR)
  • SNDMSG MSG("CPU Trigger hit for &MON") TOUSR(xyz)

Other requirements:
  1.  IBM Portable Utilities for i Option 1 (OpenSSL) installed - use RPM process from ACS -> Tools -> Open Source Package Management
  2. IBM i option 33 (IBM PASE) installed
  3. IBM i option 34 (DCM) installed
  4.  The user certificate store for the current user profile must also be set up before the use of S/MIME. All originator certificates should be imported as a server/client certificate. All recipient certificates should  be imported as a certificate authority. Both originator and recipient certificate labels must be the associated e-mail address in lowercase.       https://www.ibm.com/docs/en/ibm-mq/9.1?topic=polices-setting-up-certificates-keystore-configuration-file-i              

May 2025:

If the customer has their email directory type set to *SMTP - which is the recommended setting now for security reasons, then they are not able to ADDUSRSMTP for user QSYS.

To workaround the issue, the client will have to switch back to *SDD email directory type for IBM i SMTP since they are allowed to create a directory entry for the QSYS user profile and customize the SMTP name under the directory name to use a different email address than qsys@<IBMiFQDN>.

We are currently in the process of scoping the work needed to correct this inconsistency since IDS is designed to always use the QSYS profile for email notifications.

                               

[{"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB68","label":"Power HW"}}]

Document Information

Modified date:
06 May 2025

UID

ibm11164700