
This script is for monitoring Cisco VPN tunnels using SNMP. To use it, create an active monitor using vb script and paste the code in. On the device you wish to monitor, create a new interface from the device properties general page, and give the new interface the IP address of the VPN endpoint. Then, assign the active monitor to that device and set it to use the interface you have just created.
The script works by reading the new interface IP address and then looking for this IP address in the Cisco SNMP OID 1.3.6.1.4.1.9.9.171.1.2.3.1.7. This OID lists the endpoints of all active VPN tunnels, and when a tunnel is destroyed the entry is removed. Hence the active monitor will show as up if the IP address you specified is found, and down if it is not. I have so far tested this and am using it on two separate Cisco routers (and WUG 14.1), any problems or comments please let me know!