Skip to content

check_sophos_xg_vpn.pl

check_sophos_xg_vpn.pl 

This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY.
It may be used, redistributed and/or modified under the terms of the GNU
General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).

This check plugin checks the current the of a Site-to-Site VPN connection

 -?, --usage
   Print usage information
 -h, --help
   Print detailed help screen
 -V, --version
   Print version information
 --extra-opts=[section][@file]
   Read options from an ini file. See https://www.monitoring-plugins.org/doc/extra-opts.html
   for usage and examples.
 -C, --community=STRING
   Community string (Default: public)
 -H, --hostname=STRING
   Hostname or IP of the device with SNMP access enabled
 -u, --username=STRING
   Username for SNMPv3
 -A, --authpassword=STRING
   Authentication protocol password
 -a, --authprotocol=STRING
   Authentication protocol: MD5, SHA, SHA-224, SHA-256, SHA-384, SHA-512 (Default: MD5)
 -X, --privpassword=STRING
   privacy protocol password
 -x, --privprotocol=STRING
   Privacy protocol: DES, AES (Default: DES)
 --name=STRING
   Name of the VPN tunnel
 --inactive-ok
   If it is OK if the activation state of the IPSec tunnel is inactive.
 --ha
   Check connections in HA mode.
 -t, --timeout=INTEGER
   Seconds before plugin times out (default: 15)
 -v, --verbose
   Show details for command-line debugging (can repeat up to 3 times)
 --verbose
   Print verbose/debug information
Requirements
    The required information where introduced in Sophos XG v20.0

Connection state
    This check plugin uses the information from the documentation [0] to
    report the status of the Site-to-Site VPN connection.

    [0]
    https://doc.sophos.com/nsg/sophos-firewall/20.0/help/en-us/webhelp/onlineh
    elp/AdministratorHelp/SiteToSiteVPN/IPsec/index.html#connection-status