Create the Monitor

Follow these steps to monitor the Adaptive CLI created in the previous section.

1. Create a new monitor, select Adaptive CLI as the type.

2. Name the monitor, set the polling interval.

3. Select device(s) to monitor and then select the ACLI you just created. Notice that the attributes appear in the input parameters tab.

4. Under the Monitor Attributes tab, use the defaults.

5. Set any thresholds you like in the Thresholds node. This example monitors normal functionality so it includes no thresholds.

6. When you save the monitor it begins working and executes the ACLI every polling cycle, extracting the data.

Create a Monitor for an External Script

The following steps describe creating a monitor for an external command configured as an Adaptive CLI (ACLI).

Create the Adaptive CLI

1. Right click in the Actions portlet, and create a new External Command ACLI

2. Make a new attribute schema with attribute: Status (integer)

3. In Scripts, enter the following as Script Content:

perl "C:\Dorado\owareapps\performance\scripts\http_test.pl"[_EquipmentManager_IP_Address]

The path that precedes the owareapps directory may differ, for example on Linux.

Several Perl scripts appear in this performance\scripts directory by default. You can try others in addition to the http_test.pl script.

4. In the Value Extraction panel enter the following:

^\{(\d+)\}.*

5. Click Apply

6. Click Save

7. Right click and Execute the ACLI to test it.

8. Look in Job Viewer for the results.

Click Set attribute extraction results, click here to see the results appear in the bottom panel. Notice also that you must check informational messages for all these to appear, and that several additional sets of messages besides the extraction results appear.

Create a Monitor for the External Script Adaptive ACLI

Now that you have verified the script is working, you can create a monitor to see how this attribute is doing.

1. In the Monitors portlet, create a new ACLI Monitor

2. Uncheck Update Network Status (recommended since the ICMP monitor is already doing this)

3. In Monitor Options select your example monitor configured previously.

4. Confirm that Monitor Attributes displays the Status attribute configured previously.

5. In the Conditions tab of the Monitor Editor, create “Status Up” condition, with the severity of Informational, and check Alert.

6. Create a criterion which is Status = 0.

7. Save this condition

8. Create a new Condition called “Status Down”

9. The criterion is Status = 1

10. Apply and Save

11. Save your monitor

You may want to test your monitor, in which case, you may want to change the interval to 30 seconds.

12. Right-click to select View Monitor Data, and you can see the results of your efforts.

Create a Monitor Report

You can create reports based on your monitors. The following example creates a report based on How to: Create an SNMP Interface Monitor above.

1. Create a new Report Template by right-clicking the Report Templates portlet, selecting New > Table Template.

2. Name the report (here: Test SNMP Interface Report).

3. Select a source in the Source tab. Here: Active Monitoring > SNMP Interfaces.

4. Notice that the Select your inventory columns panel displays the attributes available based on your monitor selection.

5. Select Available columns and click the right arrow to move them to Selected. In this case we select SNMP Interfaces: Monitor Target, Polled Date / Time, ifInErrors.

6. Arrange the columns and fonts as you like in the Layout tab.

7. Save the template.

8. Right-click, and select New in the Reports portlet.

9. Enter a Name and Title for the report.

10. Notice that since this is the first report created since you made the Test SNMP Interface Report template, that it is the Report Template already selected.

11. Since the monitor already filters devices, we add no filter in the Report, although you could add one to further filter the monitored devices.

12. Test SNMP Interface Report should appear in the Reports portlet.

13. Right-click and select Execute (noticing that you can also schedule such reports, even repeatedly).

14. Click the magnifying glass to the right of the Report Completed message in My Alerts to see the report.

15. Hover your cursor over the lower right corner of the report to see a set of icons that let you expand, zoom out and in, save, or print the report.