In this example, we will demonstrate how to setup a system that switches off port 21 of a switch when the load (in bytes/10s) on the port exceeds a certain threshold. The example described here is not very realistic and you'll probably never use it in a real-life situation but is however very instructive!
The instructions given below are based on the following assumptions:
- The switch is up-and-running
- The switch is reachable by SNMP
- The switch is added to the network map and has a name: "Switch20"
- The IP address of the switch = 192.168.2.20
Step 1) Build the threshold Shooter.
The threshold Shooter can be build with the Shooter-wizard. Switch to Designer mode, right-click the switch object/icon on the map for which to build the Shooter (be aware that Shooters are build at the class level, not for an individual device!) and select Define Shooters (Wizard).
- Click Next
- Click Next, the device is being inspected
- Select B. Interfaces
- Select B. Transmitted and Received bytes per Interface
- Select F. Threshold Shooter
- Select B. 10 seconds
- Select A. Fixed and enter “.21” in the edit box
- Enter the threshold value (we entered 100000 = 100000 bytes/10 sec!!!) and a name for the Shooter
- Click Build
- Select B. Start the new Shooter for the right-clicked device
The new Shooter should now be active. Verify this by choosing Options|Threshold control from the menu on the main window
Step 2) Modify the Threshold message
The threshold that we just built will display a system generated message in case the threshold value is exceeded (the Shooter wizard" did not allow us to specify a custom message!). Because it is possible to have more than one threshold Shooter running for a switch at the same time, we need a unique "threshold exceeded" message to test on! The following steps describe how to specify a unique message.
- Right-click the device object on the map for which we created the Shooter and select Define Shooters (manually)
- Click the threshold Shooter in the Shooters box
- Right-click the "&Formula1" target in the Shooter-targets box and select Modify this Shooter-target
- Click the Custom message checkbox and enter “Port21 overload!” in the edit box
- Press Save to save the configuration
- Close the Define ..Shooters window
Step 3) Create the commandfile to execute
Open notepad.exe and create a command file “EventScript.cmd” with the code as shown below and save the command file in a directory on disk (we chose “c:\Temp”):
| @echo off if %2 == "Switch20" goto labelA goto Finish :labelA if not %5 == "Port21 overload!" goto Finish "C:\Program Files\FineConnection\Monitor one\FineSNMPSet.exe" 192.168.2.20 private 1.3.6.1.2.1.2.2.1.7.21 integer 2 :Finish |
Step 4) Verify the Alert-table and enable the "Execute a program or script triggered by an event" option
- Choose Option|Global configuration from the menu on the main window and select the Alerting tab
- Ensure that the entry in the Alert-table representing the Class for which you have built the threshold Shooter displays “Alert” in the “Threshold” column. Eventually modify the “Class Priority Level”, the “Event Priority Level” or the “Alerting threshold”.
- Check the Execute a program or script checkbox and click the Customize control
- Check and/or Uncheck the controls on the page so that it matches the screenshot below:
Note that in the commandfile we test on the device-name (%2 = "Switch20") and the event-message (%5 = "Port21 overload!")
Step 4) Download and install FineSNMPSet.exe
FineSNMPSet is a small and simple free-ware program, developed by FineConnection that can be used to set an arbitrary SNMP object to a specified value. FineSNMPSet can be downloaded here . Install FineSNMPSet.exe in your Monitor one installation directory (“c:\Program Files\FineConnection\Monitor one\”. More information on FineSNMPSet can be found at: http://www.fineconnection.com/SNMPSet
You can now test the configuration. If the load on port 21 of the switch exceeds 100000 bytes/10s then the switchport is switched off.
P.S. Port21 can be switched on again by entering the following command in a shell/command box:
| "C:\Program Files\FineConnection\Monitor one\FineSNMPSet.exe" 192.168.2.20 private 1.3.6.1.2.1.2.2.1.7.21 integer 1 |
FineConnection is pleased to announce the availability of the new stable Monitor one version FP1.106.391 (February 2008).
For superior trending and long-term analysis, Monitor one can act as a "front end" for RRD. RRD is a system to store and display time-series data. The RRD can also perfectly be used for exporting logged trending data to text files for use in spreadsheets or databases.
If you're using HP/Compaq servers with Insight manager agents in your network,
Monitor one provides an interface to messaging gateway systems, making it easy to send alert messages to pagers, mobile phones, PIMs and wireless devices.
The Monitor one "Desktop" option allows you to save Monitor one desktop configurations to the database for quick access later.
The new version also comes with a new licensing policy. The required license type is now only determined by the number of device objects on the network map from which you want to monitor uptime. The number of concurrently running Shooters (SNMP monitors) is now "unlimited" in all versions (was dependent of the license type!)
The new version allows you to define the font name, size and color for object labels on the network map.