This script show asssociated VDOM for a VPN tunnel using SNMP on FortiNet device.
- Install
vpn.vdom
in the ExternalScripts directory of your Zabbix server and/or proxy. Check yourzabbix_server.conf
and/orzabbix_proxy.conf
if in doubt. - Then chmod a+x
vpn.vdom
- Install SNMP gem
gem install snmp
This script was tested for Zabbix 2.0.0 or higher.
Ruby 1.8.7
This script require Ruby 1.8.7 or higher.
RubyGems 1.8
This script require RubyGems 1.8 or higher.
SNMP 1.1.0
This script require SNMP gem 1.1.0 or higher.
./vpn.vdom [OPTIONS]
where OPTIONS are :
-h, --help Display this help message
-d, --device IP_ADDRESS Device IP address discovered by Zabbix
-c, --community SNMP_COMMUNITY SNMP community used for the device
-s, --snmpindex SNMP_INDEX SNMP index
Use vpn.vdom
like an External Check item in Zabbix. So, when creating an item, select External Check. In the Key field, you specify:
vpn.vdom["-d","IP_ADDRESS","-c","SNMP_COMMUNITY","-s","SNMPINDEX"]
Version 1.0
This scriptis distributed under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Copyright (c) 2012 Jean-Jacques Martrès
Jean-Jacques Martrès (jjmartres |at| gmail |dot| com)