Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Watchguard Branch Office VPN Tunnels
Current Version
1.0
Last Release Date
2022-03-17
Compatible With
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
Owner
License
GPL
Hits
1515
Usage: check_wg_tunnels.sh [options]
# -h | --host: ip of device.
# -t | --tunnels: list of tunnels to check. Array of pairs of gateways.
###### Syntax "localGwIP1-peerGwIP1 localGwIP2-peerGwIP2 localGwIPn-peerGwIPn"
###### Example: "80.24.56.73-90.123.124.34 100.234.45.47-90.12.45.123 123.234.43.65-65.234.56.78"
# -v | --version: snmp version. Default 2. Depends on version you must specify:
###### 2: -s | --string: snmp community string. Default public.
###### 3: -u | --user: user. -p | --pass: password.
Example: check_wg_tunnels.sh -h 192.168.2.100 -s publicsnmp -t "80.24.56.73-90.123.124.34 100.234.45.47-90.12.45.123"
Example: check_wg_tunnels.sh -h 192.168.2.100 -v 3 -u read -p 1234567789 -t "80.24.56.73-90.123.124.34 100.234.45.47-90.12.45.123 123.234.43.65-65.234.56.78"
Output example
Ok. 79.98.225.6-81.47.104.44 is up. 192.168.223.2-195.89.176.194 is up. 79.98.225.6-85.119.3.252 is up
Critical. 79.98.225.6-81.47.104.44 is down. 192.168.223.2-195.89.176.194 is up. 79.98.225.6-85.119.3.252 is up
# -h | --host: ip of device.
# -t | --tunnels: list of tunnels to check. Array of pairs of gateways.
###### Syntax "localGwIP1-peerGwIP1 localGwIP2-peerGwIP2 localGwIPn-peerGwIPn"
###### Example: "80.24.56.73-90.123.124.34 100.234.45.47-90.12.45.123 123.234.43.65-65.234.56.78"
# -v | --version: snmp version. Default 2. Depends on version you must specify:
###### 2: -s | --string: snmp community string. Default public.
###### 3: -u | --user: user. -p | --pass: password.
Example: check_wg_tunnels.sh -h 192.168.2.100 -s publicsnmp -t "80.24.56.73-90.123.124.34 100.234.45.47-90.12.45.123"
Example: check_wg_tunnels.sh -h 192.168.2.100 -v 3 -u read -p 1234567789 -t "80.24.56.73-90.123.124.34 100.234.45.47-90.12.45.123 123.234.43.65-65.234.56.78"
Output example
Ok. 79.98.225.6-81.47.104.44 is up. 192.168.223.2-195.89.176.194 is up. 79.98.225.6-85.119.3.252 is up
Critical. 79.98.225.6-81.47.104.44 is down. 192.168.223.2-195.89.176.194 is up. 79.98.225.6-85.119.3.252 is up
Reviews (0)
Be the first to review this listing!