How to monitor Cisco VPN Tunnel with WhatsUp Gold

 

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:

  • /h:<Host> IP address of the local VPN endpoint
  • /c:<Community> community name
  • /v:<VPN Endpoint> IP address of the remote VPN endpoint

Copy this file to C:\WINDOWS or C:\WINNT.

Create WhatsUp Gold Active Monitor for VPN:

  1. Open WhatsUp Gold
  2. Click "Configure"
  3. Click "Active Monitor Library"
  4. Click "New" -> Select "Active Script Monitor"

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
Wend

IF (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 IF

Set WSHELL = Nothing

 

Final step is to attach Active Monitor to device.

 

Moving your apps to Amazon or Miscrosoft Clouds?

We can help you analyze your existing infrastructure, identify the cost savings we can achieve by migrating to a cloud provider. We can then execute end-to-end migration plan of your infrastructure and bringing down your TCO.

Cloud Computing

Ready for IPv6 Migration?

The Internet is running out of the equivalent of phone numbers - familiar problem, non-trivial solution.

The world has to move to IPv6, with its 128-bit addresses. But that's easier said than done.

IPv6 Migration

Are you fluent in "Linux"?

Learn Linux from a leading expert and quickly master you Linux skills.

Learn how to simplify your workflow and increase your productivity using tips and techniques of the pros.

Ideal training for Corporate IT Beginners and Advanced IT Admins alike.

Corporate Linux Training

Who's Online

We have 6 guests and no members online