This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

(LM) Log Manager for Orion Email Notifications

For those of us unfamiliar with Powershell, as an alternative to Sending Emails from Log Manager for Orion using PowerShell the attached files can be used to send email notifications with HTML formatting.

SendEmailNotificationConfiguration.exe accepts 4 command line arguments.

  • -from
  • -recipients
  • -subject
  • -body

Each argument value should be enclosed within " "

-from

This is the email address the email will appear to come from. typically this will be someone@yourdomain.com

-recipients

Accepts a ; separated list of email recipients

-subject

The subject of the email notification.

-body

The content of a HTML formatted email body. This will include the 3 variables sent by log manager.

  • ${DateTime}
  • ${IpAddress}
  • ${Message}

An example of the command line arguments.

-from "tony@emea.sales"

-recipients  "usera@domain.local;userb@domain.local"

-subject "Log Manager Email Notification"

-body "SYSLOG MESSAGE NOTIFICATION <hr /> RECEIVED AT: ${DateTime} <br /> SOURCE IP: ${IpAddress} <br /> MESSAGE: ${Message}"

This will generate the following email:

4.png

How to Use

1 - Install or Copy Files

1. Run Setup.exe or copy the 4 files below to your preferred directory

  • SendEmailNotification.exe
  • SendEmailNotification.exe.config
  • SendEmailNotificationConfiguration.exe
  • SendEmailNotificationConfiguration.exe.config

The only difference is that by running setup.exe a shortcut to SendEmailNotificationConfiguration.exe will be added to your start menu.

2- Configure SMTP Details

To configure your smtp server details launch SendEmailNotificationConfiguration.exe

1.png

Enter your required details and Send a Test Email

2.png

Once confirmed. click Save Email Settings

3.png

These settings are saved to SendEmailNotification.exe.config and are encrypted using the default .Net machine level encryption.

3. Configure a Log Manager Rule

1. From the "Log Viewer" dashboard click on "Configure Rules"

5.png

2. Within SYSLOG, My Custom Rules, Click "CREATE NEW RULE"

6.png

3. Define the conditions for the rule to meet your requirements. for example:

7.png

4. Add an Action - to RUN AN EXTERNAL PROGRAM

8.png

5. Enter the path to SendEmailNotification.exe and the command line arguments required.

9.png

EmailNotification.zip
Parents Reply Children
No Data