Adding a Log-to-Text File action

The Log to Text action logs custom messages to specified text files.

To add a new Log to Text File action:

  1. From the WhatsUp Gold web interface, go to APM > Actions, then click Actions in the Actions Management tree. The Actions page appears.
  2. Click Add Action. The Edit Action page appears.
  3. Select Log to Text File from the Action type list. The boxes for the Log To Text File action appear.
  4. Enter or select the appropriate information:
    • Name. Enter a unique name for the action. This name displays in the Action Library.
    • Description. (Optional) Enter additional information about the action. This description displays next to the action in the Action Library.
    • Log file. Enter the full path to the location where the log file will bee written.
    • Log file write mode. Select Append to have log messages appended to the Log file. Select Overwrite to have log messages overwrite existing log messages.
    • Log Message. Enter the message that will be written to the log file. This message supports percent variables. The default log message is:

      %Application.ApplicationInstance.ApplicationName is
      %Application.ApplicationInstance.CurrentState.

      Details:

      Application is hosted on
      %Application.ApplicationInstance.MasterDeviceDisplayName

      Triggering component: %Application.TriggeringComponent.Name

      Triggering component’s current state:
      %Application.TriggeringComponent.CurrentState

      Triggering component’s previous state:
      %Application.TriggeringComponent.PreviousState

      ----------------------------------------

      This message was logged on %System.Date at %System.Time

      Ipswitch WhatsUp Gold

  5. Click Save. The Log to Text File action is added to the actions list.

See Also

Creating an action in APM

Adding an Active Script action

Adding an E-mail action

Adding a Windows Event Log action

Adding a PowerShell Script action

Adding a Program action

Adding a Service Restart action

Adding an SMS action

Adding an SMS Direct action

Adding an SSH action

Adding a Syslog action

Adding a VMware action