Adding and editing an SSH performance monitor
The Secure Shell (SSH) monitor connects to a remote device using SSH to execute commands or scripts. You can either embed the script in the monitor or place a script file on the remote machine (making sure it's executable) and enter a command in the monitor to run the script. Each monitor returns a single numeric value that is recorded in the database, then is used later by different WhatsUp Gold functions such as reporting or to compare against a threshold in Alert Center.
: This feature is available with WhatsUp Gold Premium, ProView, TotalView, and TotalView Plus Editions only. To update your license, visit the WhatsUp Customer Portal.
To add a new SSH performance monitor:
- From the WhatsUp Gold web interface, go to . The Monitor Library dialog appears.
- Click the tab. The Performance Monitor list appears.
- Click . The Select Performance Monitor Type dialog appears.
- Select , then click . The New SSH Performance Monitor dialog appears.
- Enter or select the appropriate information:
: If you create a script to run on the remote device, the script must be developed, tested, and/or debugged on the remote machine. WhatsUp Gold does not support manipulation of the remote script.
- . Select the appropriate character type; either None, Linefeed, Carriage return, or Carriage return linefeed. Multiline scripts are entered and persisted on a Windows operating system, and include line-ending characters that may not be recognized on the target device. This configuration feature instructs WhatsUp Gold to replace the line-ending characters with the selected characters prior to connection and command execution.
- . Select the appropriate SSH credential that WhatsUp Gold uses to connect to the remote device. If you select , WhatsUp Gold uses the SSH credential assigned to the device to which the monitor is assigned. If the appropriate SSH credential is not listed, or the device has no SSH credentials assigned, click browse () to open the WhatsUp Gold Credentials Library and configure a set of credentials.
- Click to save changes.
- After the monitor has been added to the library, you can enable the monitor through . For more information, see Enabling performance monitors.
To edit an existing SSH performance monitor:
- From the WhatsUp Gold web interface, go to . The Monitor Library dialog appears.
- Click the tab. The Performance Monitor list appears.
- Select the performance monitor you would like to edit from the list of current monitors, then click . The Edit SSH Performance Monitor dialog appears.
- Enter or select the appropriate information:
- . Enter a unique name for the performance monitor. This name displays in the Performance Monitor Library.
- . (Optional) Enter additional information about the monitor. This description displays next to the monitor in the Performance Monitor Library.
. Enter the command you want to run and execute on the remote device. This command can be anything that the device can interpret and run; for example, a Unix shell command or a Perl script. The command or script must return a single numeric value.
As of WhatsUp Gold 16.2.3 and following releases, SSH performance monitors require that a value be returned in a specific 'Result=xxxx' format. The output MUST contain the string 'Result=xxxx' where xxxx represents a numeric value. For example:
: free -m | awk 'NR==2{print $3}'
: echo Result=$(free -m | awk 'NR==2{print $3}')
: If you create a script to run on the remote device, the script must be developed, tested, and/or debugged on the remote machine. WhatsUp Gold does not support manipulation of the remote script.
- . Select the appropriate character type; either None, Linefeed, Carriage return, or Carriage return linefeed. Multiline scripts are entered and persisted on a Windows operating system, and include line-ending characters that may not be recognized on the target device. This configuration feature instructs WhatsUp Gold to replace the line-ending characters with the selected characters prior to connection and command execution.
- . Select the appropriate SSH credential that WhatsUp Gold uses to connect to the remote device. If you select , WhatsUp Gold uses the SSH credential assigned to the device to which the monitor is assigned. If the appropriate SSH credential is not listed, or the device has no SSH credentials assigned, click browse () to open the WhatsUp Gold Credentials Library and configure a set of credentials.
- Click to save changes.