16.01.2013 Views

Ipswitch WhatsUp Gold User Guide - Ipswitch Documentation Server

Ipswitch WhatsUp Gold User Guide - Ipswitch Documentation Server

Ipswitch WhatsUp Gold User Guide - Ipswitch Documentation Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Ipswitch</strong> <strong>WhatsUp</strong> <strong>Gold</strong> <strong>User</strong> <strong>Guide</strong><br />

Using Scripting Actions<br />

Active Script Actions can be configured to trigger when an active monitor's state changes.<br />

They can be programmed to perform a variety of tasks, from running automated remediation<br />

scripts to posting data to external, third party services via API.<br />

Note: Please be aware that <strong>Ipswitch</strong> does not support the custom scripts that you create;<br />

only the ability to use them in the Active Script Monitor.<br />

For more information, see Extending <strong>WhatsUp</strong> <strong>Gold</strong> with scripting (on page 909).<br />

Adding and editing an Active Script Action<br />

This action allows you to write either VBScript or JScript code to perform a customized action.<br />

If the script returns an error code, the action failed.<br />

To add or edit an active script action:<br />

1 Click the Admin tab, then click Action Library.<br />

2 Click New to create a new active script action, and then select Active Script Action<br />

from the list. Click OK.<br />

- or -<br />

From the list of current actions, select the action you want to change, and then click<br />

Edit.<br />

3 Type or select the appropriate information in the following fields.<br />

Name. Type a name for the action. This name displays in the Action Library.<br />

Description. Type a short description. This description displays next to the action in<br />

the Action Library.<br />

Timeout. The amount of time (in seconds) <strong>WhatsUp</strong> <strong>Gold</strong> should wait for the action<br />

script to run.<br />

Note: Though the maximum timeout is 60 seconds, you are highly discouraged from using a<br />

timeout longer than the default of 10 seconds. You are encouraged to use the shortest<br />

timeout possible.<br />

Script type. Select the scripting language that you want to use to write this active<br />

script (either VBScript or JScript).<br />

Script text. Write or insert your action code here.<br />

Note:It is not recommend that you use percent variables in script text, because they may<br />

resolve to text containing special characters (' ' (quotes), " " (double-quotes), % (percent),<br />

new line characters, and the like) that may break your script.<br />

This script action has a context object you can use to get specific information about the<br />

context of the action.<br />

306

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!