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 />

}<br />

var TCPRetransmittedPercent = 100 * RVtcpRetransSegs / RVtcpOutSegs;<br />

// Set the performance monitor value to graph<br />

Context.SetValue(TCPRetransmittedPercent);<br />

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 />

Keep In Mind<br />

You need to include error handling in your monitor script. Your script must use<br />

Context.SetResult to report the status of the action to <strong>WhatsUp</strong> <strong>Gold</strong>.<br />

You script should check periodically to see if it has been canceled by the user. To do<br />

this, use the IsCancelled() method described in Using the Context object with<br />

Actions.<br />

Errors from this performance monitor appear in EventViewer.exe.<br />

936

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

Saved successfully!

Ooh no, something went wrong!