An example of using Shell Script Action.

Document ID : KB000029720
Last Modified Date : 14/02/2018
Show Technical Document Details

 Introduction:

 An example of using the shell script action.

 

 Environment:

 Introscope from 9.1x until 10x

 

 Instructions:

 Step 1: Create a simple batch script to send Introscope alerts to a txt file.

 You need to use %1 to pass the message to the batch script.

1.png


Step 2: Create a simple alert based on GC Heap: Bytes in Use:

2.png

Step 3: Create a new shell action:

3.png


 Step 4
: Configure the shell script for both the danger and caution thresholds:

4.png

 Step 5: Enable the shell action, and specify the location of the above batch script:

5.png

Step 6
: New alerts will be sent to both the console and test.txt.

 

6.png

 

Additional Information:

 

For further information, see:

http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec615753.aspx?intcmp=searchresultclick&resultnum=1