Using sample scripts for monitoring (Linux)


With PATROL for Scripting, you use custom scripts to monitor your environment. BMC provides some basic scripts to help you get started with the monitoring. You can create realistic and customizable scripts through an external scripting tool, configure them from a local or a remote computer, and start the monitoring. For details about configuring scripts, see Configuring remote scripts and configuring local scripts.

This topic provides descriptions of the scripts provided by BMC and instructions for managing these scripts. For instructions about defining the script output, see Defining the script output.

Important

When executing scripts, the KM requires the same user privileges as a real user would. For example, if you normally require administrator-level privileges to access the monitored application, the KM requires the same privileges to run a script on that application.

Using Sample scripts

Part 3 of this four-part video series introduces you to the sample scripts provided with the KM and the everyday use cases they support. To view Part 2 in this series, see https://youtu.be/pur74iytl7U.

icon-play.png https://youtu.be/8UlHY-dpGgg


Provided scripts

The following sample scripts are provided for your reference and cannot be deleted or replaced without administrator permission. To use them, update the content according to your operating system.

To view the list of available scriptsThe script attributes of scripts provided by BMC do not support non-English characters.

  1. Navigate to $PATROL_HOME\..\TRO\Conf\Scripts\Samples.
  2. To modify the list, click the relevant column heading to sort the list based on a specific column. 
    To sort in reverse order, click the column heading again.

To add custom scripts

  • You can use scripts located from on your remote or local device. 
  • If the script does not exist on the remote device and is located on your local monitoring system, the script is automatically copied to the Scripts folder. (%PATROL_HOME%/TRO/Conf/Scripts/DeviceName or %PATROL_HOME%/TRO/Conf/Scripts).

To delete scripts from the list

You cannot delete default scripts that are delivered with PATROL for Script KM. 

  1. Navigate to $PATROL_HOME\..\TRO\Conf\Scripts\Samples. 
  2. Select one or multiple scripts to delete and click the Delete button. 
  3. Click Yes in the confirmation message.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*