Download VPN Monitoring Tool:
You will need to download vpnmonitor.exe application from our website. This is command-line tool that accepts 3 parameters:
C:\>vpnmonitor
Cisco VPN Tunnel Monitoring Tool, Paul Greenberg, July 2008
Command-Line Switches:
Copy this file to C:\WINDOWS or C:\WINNT.
Create WhatsUp Gold Active Monitor for VPN:
Active Script Monitor structure:
1) Name:
2) Description:
3) Timeout: 10 sec
4) Script Type: VBScript
5) Script Text:
' IPSEC VPN Monitor
' Version: 1.0
'Set WSHELL = CreateObject("WScript.Shell")
APP = "VPNMONITOR.exe" ' IPSEC VPN Monitor
VPNSERVER = "192.168.99.5" ' Local VPN end-point
REMOTEPEER = "45.123.22.99" ' Remote VPN end-point
RO_C = "2dasdjjklsadas23X" ' Community string
EXPECTED_RESULT = "SYSTEM: VPN TUNNEL IS UP"APP_NAME = "cmd.exe /c " & APP & " /h:" & VPNSERVER & " /c:" & RO_C & " /v:" & REMOTEPEER
Set iRES = WSHELL.Exec(APP_NAME)
Set OUT = iRES.StdOut
TUNNEL = 0
While Not OUT.AtEndOfStream
LINE = UCase(OUT.ReadLine)
IF InStr(LINE,EXPECTED_RESULT) Then
TUNNEL = 1
End IF
WendIF (TUNNEL = 1) Then
Context.SetResult 0, "Tunnel is up"
Else
INFO = "VPN Tunnel to (" & REMOTEPEER & ") is DONW !!!"
'Context.LogMessage INFO
Context.SetResult 1, INFO
End IFSet WSHELL = Nothing
Final step is to attach Active Monitor to device.
We have 6 guests and no members online