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                                              

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Component":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
12 April 2023

UID

ibm11164700