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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

GetReferenceVariable(sRefVarName<br />

);<br />

be set. This is how you can tell the <strong>WhatsUp</strong> <strong>Gold</strong> system if<br />

the monitor succeeds or fails.<br />

Every script should call SetResult. If SetResult is not called,<br />

the script is always assumed to have succeeded.<br />

Example<br />

JScript<br />

Context.SetResult(0, "Script completed<br />

successfully."); //Success<br />

Context.SetResult(1, "An error occurred.");<br />

//Failure<br />

VBScript<br />

Context.SetResult 1, "An error occurred."<br />

This method allows the code to grab a reference variable to<br />

be used in the monitor.<br />

Example<br />

JScript<br />

Context.GetReferenceVariable("A")<br />

A reference variable "A" would have had to have been<br />

created.<br />

SetValue(nValue); This method allows you to graph a value.<br />

Example<br />

JScript<br />

Context.SetValue(245)<br />

929

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

Saved successfully!

Ooh no, something went wrong!