Adding and editing an Active Script Active Monitor
- Last Updated: September 11, 2023
- 6 minute read
The Active Script monitor lets you write either VBScript or JScript code to perform specific customized checks on a device. If the script returns an error code, the monitor is considered down. A variety of Active Script resources are available on the Active Scripts Resource page.
註: Ipswitch does not support any custom scripts you create; only the ability to use them in the Active Script monitor. For more information, see Extending WhatsUp Gold with scripting.
To add a new Active Script active monitor:
-
- 在 WhatsUp Gold 網頁介面上移至 [管理] > [監控工具]。此時會出現 [監控工具資料庫] 對話方塊。
- 按一下 [主動] 索引標籤。此時會出現「主動監控工具」清單。
- 按一下 [新增]。此時會出現 [選取主動監控工具類型] 對話方塊。
- Select Active Script Monitor, then click OK. The New Active Script Monitor dialog appears.
-
- 輸入或選取適當資訊:
- Name. Enter a unique name for the active monitor. This name displays in the Active Monitor Library.
- Description. Enter additional information about the monitor. This description displays next to the monitor in the Active Monitor Library.
- Timeout.
輸入 WhatsUp Gold 嘗試連線到所選裝置的時間長度。若超過您輸入的時間後仍未連線,就會發生「逾時」狀況,WhatsUp Gold 隨即停止與 SMTP 伺服器連線,且視為連線失敗。
- Script Type. Select either VBScript or JScript.
- Use in rescan. Select this option to have the monitor appear in the Active Monitor list on the Device Properties dialog. WhatsUp Gold adds the monitor type to the device during a rescan, which is launched using Rescan on the Device Properties dialog, if the protocol or service is active on the device.
- Script text. Enter your monitor code here.
-
按一下 [確定] 可儲存變更內容。
-
After configuring an active monitor in the Active Monitor Library, add the monitor to devices.
To edit an existing Active Script active monitor:
- 在 WhatsUp Gold 網頁介面上移至 [管理] > [監控工具]。此時會出現 [監控工具資料庫] 對話方塊。
- 按一下 [主動] 索引標籤。此時會出現「主動監控工具」清單。
- 選取要修改的監控工具,然後按一下 [編輯]。
-
- 輸入或選取適當資訊:
- Name. Enter a unique name for the active monitor. This name displays in the Active Monitor Library.
- Description. Enter additional information about the monitor. This description displays next to the monitor in the Active Monitor Library.
- Timeout.
輸入 WhatsUp Gold 嘗試連線到所選裝置的時間長度。若超過您輸入的時間後仍未連線,就會發生「逾時」狀況,WhatsUp Gold 隨即停止與 SMTP 伺服器連線,且視為連線失敗。
- Script Type. Select either VBScript or JScript.
- Use in rescan. Select this option to have the monitor appear in the Active Monitor list on the Device Properties dialog. WhatsUp Gold adds the monitor type to the device during a rescan, which is launched using Rescan on the Device Properties dialog, if the protocol or service is active on the device.
- Script text. Enter your monitor code here.
-
按一下 [確定] 可儲存變更內容。