Operational Defect Database

BugZero updated this defect 58 days ago.

VMware | 325280

Smarts SAM: How do you configure the sm_notify.log of the SAM Notification Adapter so that the mail notifier will log processed notifications?

Last update date:

3/22/2024

Affected products:

Smart Assurance - SMARTS

Affected releases:

No affected releases provided.

Fixed releases:

No fixed releases provided.

Description:

Symptoms

How do you configure the sm_notify.log of the Smarts SAM Notification Adapter so that the mail notifier will log processed notifications?Smarts SAM Notification Adapter sm_notify.log for mail notifier does not contain any messages about processed notifications

Cause

By default the log file for sm_notify process only logs its connect/disconnect events to the domain.

Resolution

To add additional logging so that the mail notifier process will log processed notifications, you must change to mail-notify.asl script as follows: Open the mail-notify.asl script for editing as follows:./sm_edit rules/notifier/mail/mail-notify.asl Find the mailer-> function to send mail at the very end of the script.Add a print statement below the mailer-> function as follows:68 mailer->sendmail(sender, recipients, subject, body) ? LOG, STOP;69 print(sender."\t".recipients."\t".subject."\t".body."\n"); /*print statement added for logging.*/ Restart the sm_notify service. Notifications processed by the adapter will be written to the log.

Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Unavailable

Learn More

Search:

...