Adding and editing 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 Admin > Actions. The Action Library appears.
  2. Click New. The Select Action Type dialog appears.
  3. Select Log to Text File, then click OK. The New Log To Text File Action dialog appears.
  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:

      %Device.ActiveMonitorDownNames is %Device.State on %Device.Type: %Device.HostName (%Device.Address).

      Details:

      Monitors that are down include: %Device.ActiveMonitorDownNames

      Monitors that are up include: %Device.ActiveMonitorUpNames

      Notes on this device (from device property page):

      %Device.Notes

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

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

    Ipswitch WhatsUp Gold

  5. Click OK to save changes.

To edit an existing Log to Text action:

  1. From the WhatsUp Gold web interface, go to Admin > Actions. The Action Library dialog appears.
  2. Select the action you would like to edit, then click Edit.
  3. 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 be 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:

      %Device.ActiveMonitorDownNames is %Device.State on %Device.Type: %Device.HostName (%Device.Address).

      Details:

      Monitors that are down include: %Device.ActiveMonitorDownNames

      Monitors that are up include: %Device.ActiveMonitorUpNames

      Notes on this device (from device property page):

      %Device.Notes

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

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

      Ipswitch WhatsUp Gold

    Tip: Right-click in the Log Message box to select the percent variables you would like to use in the action.

  4. Click OK to save changes.

See Also

Configuring an action

Adding and editing an Active Script Action

Adding and editing a Beeper Action

Adding and editing an Email Action

Adding and editing a Pager Action

Adding and editing a PowerShell action

Example - PowerShell action scripts

Adding and editing a Program Action

Adding and editing a Service Restart Action

Adding and editing a SMS Action

Adding and editing a SMS Direct Action

Adding and editing a SNMP Set Action

Adding and editing a Sound Action

Adding and editing a SSH Action

Adding and editing a Syslog Action

Adding and editing a Text-To-Speech Action

Adding and Editing a VMware Action

Adding and Editing a Web Alarm Action

Adding and Editing a Windows Event Log Action

Using the WinPopup Action