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 status

To start use:

STRTCPSVR SERVER(*SMTP) 

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 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)

[{"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":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
25 May 2021

UID

ibm11164700