Configure email / smtp notification on a MUST_START_ALARM
search cancel

Configure email / smtp notification on a MUST_START_ALARM

book

Article ID: 264606

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Email configuration example for a MUST_START_ALARM alarm

 

 

Environment

Workload Automation AutoSys

Resolution

  • Configure below options via $AUTOUSER/config.$AUTOSERV

NotifySMTPHost=<x>
NotifySMTPFromAddress=<x>
NotifySMTPUser=<x>
NotifyMethod=1
UseSMTPAuthentication=1

  • Example Blob/job definitions:

insert_glob: email_input
blob_mode: text
blob_type: emailtemplate
blob_file: /opt/CA/WorkloadAutomationAE/autosys/install/email_templates/sample_template

insert_job: neverrun
job_type: b
status: FAILURE

insert_job: test_must_start_complete2
job_type: CMD
machine: localhost
command: sleep 300
date_conditions: y
days_of_week: all
start_mins: 11, 21, 31, 41, 51, 01
must_start_times: +1
must_complete_times: +2
condition: s(neverrun)
notification_alarm_types: MUST_START_ALARM
send_notification: f
notification_template: email_input
notification_emailaddress_on_alarm: [email protected]
notification_emailaddress: [email protected]

  • The above raises an alarm and sends an email to [email protected] if/when test_must_start_complete2 does not start within 1 minute of its designated start time(s).
                             
  • It will trigger as the job neverrun is inserted with a default status of FAILURE.

 

Additional Information

  • There are other examples and details about the different fields/settings in the documentation
  • There is also documentation in the $AUTOUSER/config.$AUTOSERV file itself about the config file settings.