search cancel

How to use the nas Auto Operator profile name variable to identify the AO profile that triggered the email message

book

Article ID: 202846

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

Is there a variable you can use in emailgtw notifications that contains the name of the Auto Operator profile that was fired/triggered which sent the email notification?

We may have several AO profiles that generate an email when certain log file matches occur.  One called "Email <name>" which will send me specific errors from various systems. There are several distribution groups that my email address is in that ALSO gets emails from other AO profiles.  It would make figuring out which profile is sending the message a little easier if we could include the name of the profile that sent it.

Environment

Release : 8.5.1 or higher

Component : UIM - EMAILGTW

Resolution

Edit your emailgtw template.html in the emailgtw probe directory.

For example, you can just add a single line into the template:
<td width="25%"><b><font color="#FFFFFF">AO Profile: $profile</font></b></td>

emailgtw - modified template example:

<table cellSpacing="0" cellPadding="0" width="100%" border="1" bgcolor="#330066">
  <tbody>
    <tr>
      <td width="100%" bgColor="#330066" valign="middle" align="left">
        <table width="100%" border="0" bgcolor="#330066" cellspacing="0" cellpadding="0">
          <tbody>
            <tr>
              <td width="4%" height="2" align="left">
                <table width="100%" border="0" height="19">
                  <tbody>
                    <tr>
                      <td width="100%" bgColor="$level_col" bordercolorlight="#FFFFFF" bordercolordark="#C0C0C0"> </td>
                    </tr>
                  </tbody>
                </table>
              </td>
              <td width="10%" valign="middle" align="left"><b><font color="#FFFFFF">$level_exp</font></b></td>
              <td width="86%" valign="top" align="left">
                <table width="100%" border="0">
                  <tbody>
                    <tr>
                      <td width="25%"><b><font color="#FFFFFF">$source[$hostname_strip]</font></b></td>
                      <td width="25%"><b><font color="#FFFFFF">$subsys</font></b></td>
                      <td width="25%"><b><font color="#FFFFFF">Robot: $robot</font></b></td>
                      <td width="25%"><b><font color="#FFFFFF">Probe: $prid</font></b></td>
                      <td width="25%"><b><font color="#FFFFFF">AO Profile: $profile</font></b></td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
          </tbody>

This is very helpful when trying to match up an emailed UIM alarm message to the AO profile it came from.

Additional Information

What is already published/documented for the emailgtw probe variables is listed here:

emailgtw Advanced Configuration - CA Unified Infrastructure Management Probes - CA Technologies Documentation.
https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/alphabetical-probe-articles/emailgtw-email-gateway/emailgtw-advanced-configuration.html