Creating Windows event log event using Windows command

Open the Alert management screen.

In the Alerts list, locate the Network performance site alert and, in the Actions menu for that alert, select Edit notifications.

Append the following lines to the message notification definition:

Reference number: DCRUM_{sTS}_{eTSzdata}_{encodeURL(13)}

{buildLink}{/LSServlet?dmiAction=Generate&lsAction=LoadByName&lsEntryName=Metric
%20Charts%20-%20Network&FILTER_cLoc={encodeURL(13)}&startTime={sTS}&endTime={eTSzdata}}
{view network performance details in CAS}{true}{false}

Location: {14},{13}
  • The first line builds a reference number from available parameters:

    • {sTS} - Last sample end timestamp
    • {eTSzdata} - Last sample timestamp
    • {14} - Area
    • {encodeURL(13)} - Encode URL in parameter {13} which is Site .
Note

For the list of parameters that can be inserted into the message definition, click gear.

  • The second line builds a URL to a NAM report containing detailed information on triggered alert.
  • The third line build a location out of Area and Site parameters.
  • The second line builds a URL to a NAM report containing detailed information on the triggered alert.
  • The third line builds a location out of the Area and Site parameters.

Select the Script tab and, if no script recipients have been defined, click Recipient Configuration.

Select the Scripts tab and click Add to add a script recipient.

Provide the following:

  • Description for the notification recipient.

    Example: Windows Event Log

  • Executable for the exact path to the script interpreter.
    Example: C:\Windows\System32\eventcreate.exe

    The path to the eventcreate executable may vary depending on the operating system you use.

  • Parameters for the location of the script, the notification message.
    Example:

    /so CAS /t warning /id 1000 /l application /d {notificationMessage}
    

Click Save and Close to return to the Alert notifications screen.

In the Alert recipient list, click the Actions menu corresponding to alert recipient you have just created and select Enable notifications.

Click Finish to complete alert notification setup.

On the summary screen, click Apply to confirm your changes to the configuration.

Click Save and Publish.

Optionally, now you can use third party applications that monitor and report based on  Windows Event Log, for example Microsoft System Center Operations Manager (SCOM),  to report and notify DCRUM alerts.

The end result is entries being populated into the event log. For Example: Entries are populated into the event log. For example: