Smarts SAM: Can I log the values of user-defined columns in the notification using the file notification adapter?
search cancel

Smarts SAM: Can I log the values of user-defined columns in the notification using the file notification adapter?

book

Article ID: 304112

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:


Can I log the values of user-defined columns in a Smarts SAM notification using the file notification adapter?
Can I use the Smarts SAM Notification adapter file notifier to log the values of user-defined columns in a Smarts SAM notification?


Environment

VMware Smart Assurance - SMARTS

Resolution

You should be able to log the values of user-defined columns in a Smarts SAM notification by modifying  the file-custom.asl file. This file is located in the following directory:

<BASEDIR>/SAM/smarts/rules/notifier/file

To modify the file-custom.asl file to meet your logging requirements, do the following:

  1. Open the file-custom.asl file for editing using sm_edit as follows:

    <BASEDIR>/SAM/smarts/bin/sm_edit rules/notifier/file/file-custom.asl

     
  2. Find the section labeled as follows:

    * This is how the adapter constructs the default message.
    * Edit to suit your tastes.

     
  3. Add a line as in the following example:

    currentEvent->icUserDefined1 . " "