Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_netscreen_vpn

Rating
4 votes
Favoured:
1
Hits
152940
Files:
FileDescription
check_netscreen_vpnPerlscript
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
checks the state of a given vpn on Netscreen/Juniper Firewalls
Check is done through SNMP and can use the "VPN monitor" capacity.

Usage:
-H (--hostname) Hostname to query - (required)
-C (--community) SNMP read community (defaults to public,

used with SNMP v1 and v2c

-v (--snmp_version) 1 for SNMP v1 (default)

2 for SNMP v2c
SNMP v2c will use get_bulk for less overhead
if monitoring with -d

-p (--port) SNMP port (default 161)
-n (--tunnemname) Tunnel name to monitor - (required)
-l (--list) List possible tunnel names
-t (--tunnelstate) Tunnel state for specified tunnel name
-1 (--phase1state) Phase 1 state for specified tunnel name
-2 (--phase2state) Phase 2 state for specified tunnel name
-V (--version) Plugin version
-h (--help) usage help

Example:
List possible tunnels:
#check_netscreen_vpn -H 10.1.1.23 -C securalis -n "somevpn" -l
Displays:
Found interface: VPN_home
Found interface: VPN_partner
Found interface: VPN_test

Check availability of a tunnel if we are using vpnmonitor options:
#check_netscreen_vpn -H 10.1.1.23 -C securalis -n "VPN_home" -t
Displays:
OK: Tunnel UP

Check phase 1 and phase 2 of a tunnel:
#check_netscreen_vpn -H 10.1.1.23 -C securalis -n "VPN_home" -12
Displays:
OK: (P1 OK) (P2 OK)
Reviews (1)
byjuanstroctus, January 21, 2011
many thansks, it works amazing!!!!!