Template-Ergänzungen Templates Security Firewall

This commit is contained in:
Ingo Wetzel 2018-12-13 09:35:53 +01:00
parent d12f9ca4e4
commit 98a16c2f5a
14 changed files with 6124 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-07-20T09:13:04Z</date>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<templates>
<template>
<template>FORTINET syslog VPN</template>
<name>FORTINET syslog VPN</name>
<description/>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<applications>
<application>
<name>VPN Tunnels</name>
</application>
</applications>
<items>
<item>
<name>VPN-syslog</name>
<type>2</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>syslog</key>
<delay>0</delay>
<history>3</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>VPN Tunnels</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyxMMxddxhhxmmxssxxxxxx</logtimefmt>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<triggers>
<trigger>
<expression>{FORTINET syslog VPN:syslog.nodata(60)}=0 and {FORTINET syslog VPN:syslog.str(reason=&quot;tunnel established&quot;)}=1 and {FORTINET syslog VPN:syslog.regexp(reason=&quot;User requested termination of service&quot;)}=1</expression>
<name>VPN-Verbindung - NUR zum TEST</name>
<url/>
<status>0</status>
<priority>0</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>{FORTINET syslog VPN:syslog.str(reason=&quot;User requested termination of service&quot;)}=1 and {FORTINET syslog VPN:syslog.str(msg=&quot;SSL tunnel shutdown&quot;)}=1 and {FORTINET syslog VPN:syslog.nodata(300)}=0</expression>
<name>VPN-Verbindung getrennt - NUR zur INFORMATION</name>
<url/>
<status>0</status>
<priority>0</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>{FORTINET syslog VPN:syslog.str(logdesc=&quot;SSL VPN tunnel up&quot;)}=1 and {FORTINET syslog VPN:syslog.str(tunneltype=&quot;ssl-tunnel&quot;)}=1 and {FORTINET syslog VPN:syslog.str(msg=&quot;SSL tunnel established&quot;)}=1</expression>
<name>VPN-Verbindung hergestellt - NUR zur INFORMATION</name>
<url/>
<status>0</status>
<priority>0</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
</triggers>
</zabbix_export>

View File

@ -0,0 +1,891 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-07-20T09:12:04Z</date>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<templates>
<template>
<template>FORTINET-HA</template>
<name>FORTINET-HA</name>
<description/>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<items>
<item>
<name>Configuration of an automatic configuration synchronization</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.1.5.0</snmp_oid>
<key>fgHaAutoSync</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap>
<name>FgBoolState</name>
</valuemap>
<logtimefmt/>
</item>
<item>
<name>HA cluster group name</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.1.7.0</snmp_oid>
<key>fgHaGroupName</key>
<delay>300</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Status of a master override flag</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.1.4.0</snmp_oid>
<key>fgHaOverride</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap>
<name>FgBoolState</name>
</valuemap>
<logtimefmt/>
</item>
<item>
<name>HA clustering priority</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.1.3.0</snmp_oid>
<key>fgHaPriority</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Load-balancing schedule of cluster</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.1.6.0</snmp_oid>
<key>fgHaSchedule</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap>
<name>FgHaLbSchedule</name>
</valuemap>
<logtimefmt/>
</item>
<item>
<name>HA mode</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.1.1.0</snmp_oid>
<key>fgHaSystemMode</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap>
<name>FgHaMode</name>
</valuemap>
<logtimefmt/>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>High Availability</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.12356.101.13.2.1.1.11]</snmp_oid>
<key>fgHaStatsHostname</key>
<delay>300</delay>
<status>0</status>
<allowed_hosts/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<delay_flex/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<filter>
<evaltype>0</evaltype>
<formula/>
<conditions/>
</filter>
<lifetime>7</lifetime>
<description/>
<item_prototypes>
<item_prototype>
<name>Number of anti-virus events triggered on cluster unit $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.2.1.1.10.{#SNMPINDEX}</snmp_oid>
<key>fgHaStatsAvCount[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>events</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>CPU usage for cluster unit $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.2.1.1.3.{#SNMPINDEX}</snmp_oid>
<key>fgHaStatsCpuUsage[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>%</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Number of IDS/IPS events triggered on cluster unit $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.2.1.1.9.{#SNMPINDEX}</snmp_oid>
<key>fgHaStatsIdsCount[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>events</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Memory usage for cluster unit $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.2.1.1.4.{#SNMPINDEX}</snmp_oid>
<key>fgHaStatsMemUsage[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>%</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Network bandwidth usage for unit $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.2.1.1.5.{#SNMPINDEX}</snmp_oid>
<key>fgHaStatsNetUsage[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>bps</units>
<delta>1</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1000</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Current session count for cluster unit $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.13.2.1.1.6.{#SNMPINDEX}</snmp_oid>
<key>fgHaStatsSessCount[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>sess</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>High availability</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>({FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)}-{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].avg(86400)})&gt;0.2*{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)} and ({FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)}-{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].avg(86400)})&lt;0.3*{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)}</expression>
<name>An increase of 20% of active sessions on unit {#SNMPVALUE} was detected</name>
<url/>
<status>0</status>
<priority>2</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
<trigger_prototype>
<expression>({FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)}-{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].avg(86400)})&gt;0.3*{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)} and ({FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)}-{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].avg(86400)})&lt;0.4*{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)}</expression>
<name>An increase of 30% of active sessions on unit {#SNMPVALUE} was detected</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
<trigger_prototype>
<expression>({FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)}-{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].avg(86400)})&gt;0.4*{FORTINET-HA:fgHaStatsSessCount[{#SNMPVALUE}].last(0)}</expression>
<name>An increase of 40% of active sessions on unit {#SNMPVALUE} was detected</name>
<url/>
<status>0</status>
<priority>4</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
<trigger_prototype>
<expression>{FORTINET-HA:fgHaStatsCpuUsage[{#SNMPVALUE}].avg(600)}&gt;50</expression>
<name>CPU usage for unit {#SNMPVALUE} exceeded 50%</name>
<url/>
<status>0</status>
<priority>2</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
<trigger_prototype>
<expression>{FORTINET-HA:fgHaStatsCpuUsage[{#SNMPVALUE}].avg(600)}&gt;60</expression>
<name>CPU usage for unit {#SNMPVALUE} exceeded 60%</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
<trigger_prototype>
<expression>{FORTINET-HA:fgHaStatsCpuUsage[{#SNMPVALUE}].avg(600)}&gt;80</expression>
<name>CPU usage for unit {#SNMPVALUE} exceeded 80%</name>
<url/>
<status>0</status>
<priority>4</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
<trigger_prototype>
<expression>{FORTINET-HA:fgHaStatsMemUsage[{#SNMPVALUE}].avg(600)}&gt;60</expression>
<name>Memory usage for unit {#SNMPVALUE} exceeded 60%</name>
<url/>
<status>0</status>
<priority>2</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
<trigger_prototype>
<expression>{FORTINET-HA:fgHaStatsMemUsage[{#SNMPVALUE}].avg(600)}&gt;70</expression>
<name>Memory usage for unit {#SNMPVALUE} exceeded 70%</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
<trigger_prototype>
<expression>{FORTINET-HA:fgHaStatsMemUsage[{#SNMPVALUE}].avg(600)}&gt;80</expression>
<name>Memory usage for unit {#SNMPVALUE} exceeded 80%</name>
<url/>
<status>0</status>
<priority>4</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
</trigger_prototypes>
<graph_prototypes>
<graph_prototype>
<name>CPU usage for cluster unit {#SNMPVALUE}</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>2</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-HA</host>
<key>fgHaStatsCpuUsage[{#SNMPVALUE}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
<graph_prototype>
<name>Memory usage for cluster unit {#SNMPVALUE}</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>2</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-HA</host>
<key>fgHaStatsMemUsage[{#SNMPVALUE}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
<graph_prototype>
<name>Network bandwidth usage for unit {#SNMPVALUE}</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>2</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-HA</host>
<key>fgHaStatsNetUsage[{#SNMPVALUE}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
<graph_prototype>
<name>Sessions count on unit {#SNMPVALUE}</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>2</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-HA</host>
<key>fgHaStatsSessCount[{#SNMPVALUE}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<host_prototypes/>
</discovery_rule>
</discovery_rules>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<value_maps>
<value_map>
<name>FgBoolState</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>disabled</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>enabled</newvalue>
</mapping>
</mappings>
</value_map>
<value_map>
<name>FgHaLbSchedule</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>none</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>hub</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>leastConnections</newvalue>
</mapping>
<mapping>
<value>4</value>
<newvalue>roundRobin</newvalue>
</mapping>
<mapping>
<value>5</value>
<newvalue>weightedRoundRobin</newvalue>
</mapping>
<mapping>
<value>6</value>
<newvalue>random</newvalue>
</mapping>
<mapping>
<value>7</value>
<newvalue>ipBased</newvalue>
</mapping>
<mapping>
<value>8</value>
<newvalue>ipPortBased</newvalue>
</mapping>
</mappings>
</value_map>
<value_map>
<name>FgHaMode</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>standalone</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>activeActive</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>activePassive</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>

View File

@ -0,0 +1,350 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-07-20T09:12:24Z</date>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<templates>
<template>
<template>FORTINET-Interfaces</template>
<name>FORTINET-Interfaces</name>
<description/>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<items/>
<discovery_rules>
<discovery_rule>
<name>Network Interfaces</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.2.1.31.1.1.1.1]</snmp_oid>
<key>ifName</key>
<delay>300</delay>
<status>0</status>
<allowed_hosts/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<delay_flex/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<filter>
<evaltype>0</evaltype>
<formula/>
<conditions/>
</filter>
<lifetime>7</lifetime>
<description/>
<item_prototypes>
<item_prototype>
<name>Alias of interface $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>IF-MIB::ifAlias.{#SNMPINDEX}</snmp_oid>
<key>ifAlias[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Incoming traffic on interface $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>IF-MIB::ifInOctets.{#SNMPINDEX}</snmp_oid>
<key>ifInOctets[{#SNMPVALUE}]</key>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>bps</units>
<delta>1</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>8</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Operational status of interface $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>IF-MIB::ifOperStatus.{#SNMPINDEX}</snmp_oid>
<key>ifOperStatus[{#SNMPVALUE}]</key>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<valuemap>
<name>SNMP interface status (ifOperStatus)</name>
</valuemap>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Outgoing traffic on interface $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>IF-MIB::ifOutOctets.{#SNMPINDEX}</snmp_oid>
<key>ifOutOctets[{#SNMPVALUE}]</key>
<delay>60</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>bps</units>
<delta>1</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>8</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Interface(s)</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{FORTINET-Interfaces:ifAlias[{#SNMPVALUE}].regexp({$INTF_REGEX})}=0 and {FORTINET-Interfaces:ifOperStatus[{#SNMPVALUE}].diff(0)}&gt;0</expression>
<name>Operational status was changed on interface {#SNMPVALUE}</name>
<url/>
<status>0</status>
<priority>1</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
<trigger_prototype>
<expression>{FORTINET-Interfaces:ifAlias[{#SNMPVALUE}].regexp({$INTF_REGEX})}=1 and {FORTINET-Interfaces:ifOperStatus[{#SNMPVALUE}].diff(0)}&gt;0</expression>
<name>Operational status was changed on interface {#SNMPVALUE}</name>
<url/>
<status>0</status>
<priority>5</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
</trigger_prototypes>
<graph_prototypes>
<graph_prototype>
<name>Interface {#SNMPVALUE} - Traffic (bits/sec, 95th Percentile)</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.9500</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>1</drawtype>
<color>00CF00</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-Interfaces</host>
<key>ifInOctets[{#SNMPVALUE}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>2</drawtype>
<color>002A97</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-Interfaces</host>
<key>ifOutOctets[{#SNMPVALUE}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<host_prototypes/>
</discovery_rule>
</discovery_rules>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<value_maps>
<value_map>
<name>SNMP interface status (ifOperStatus)</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>up</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>down</newvalue>
</mapping>
<mapping>
<value>3</value>
<newvalue>testing</newvalue>
</mapping>
<mapping>
<value>4</value>
<newvalue>unknown</newvalue>
</mapping>
<mapping>
<value>5</value>
<newvalue>dormant</newvalue>
</mapping>
<mapping>
<value>6</value>
<newvalue>notPresent</newvalue>
</mapping>
<mapping>
<value>7</value>
<newvalue>lowerLayerDown</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>

View File

@ -0,0 +1,420 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-09-27T09:14:29Z</date>
<groups>
<group>
<name>Templates Security Firewall</name>
</group>
</groups>
<templates>
<template>
<template>FORTINET-Inventory</template>
<name>FORTINET-Inventory</name>
<description/>
<groups>
<group>
<name>Templates Security Firewall</name>
</group>
</groups>
<applications>
<application>
<name>General</name>
</application>
</applications>
<items>
<item>
<name>Device Model Name</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.2.1.47.1.1.1.1.13.1</snmp_oid>
<key>PhysicalModelName</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>2</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Contact</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>SNMPv2-MIB::sysContact.0</snmp_oid>
<key>sysContct</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>23</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Description</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>SNMPv2-MIB::sysDescr.0</snmp_oid>
<key>sysDescr</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software.</description>
<inventory_link>14</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Location</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>SNMPv2-MIB::sysLocation.0</snmp_oid>
<key>sysLocation</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>The physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string.</description>
<inventory_link>24</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Serial</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.100.1.1.1.0</snmp_oid>
<key>SysSerial</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>8</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Uptime</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>SNMPv2-MIB::sysUpTime.0</snmp_oid>
<key>sysUpTime</key>
<delay>600</delay>
<history>7</history>
<trends>90</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>uptime</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>0.01</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>The time since the network management portion of the system was last re-initialized.</description>
<inventory_link>34</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>FortiOS version</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.1.0</snmp_oid>
<key>SysVersion</key>
<delay>14400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>5</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Virus signature database version</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.2.1.0</snmp_oid>
<key>SysVersionAv</key>
<delay>3600</delay>
<history>7</history>
<trends>90</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>19</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPS signature database version</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.2.2.0</snmp_oid>
<key>SysVersionIps</key>
<delay>14400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>18</inventory_link>
<applications>
<application>
<name>General</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens/>
</template>
</templates>
</zabbix_export>

View File

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-07-20T09:12:37Z</date>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<templates>
<template>
<template>FORTINET-SNMP-Traps</template>
<name>FORTINET-SNMP-Traps</name>
<description/>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<applications>
<application>
<name>SNMP Traps</name>
</application>
</applications>
<items>
<item>
<name>SNMP trap fallback</name>
<type>17</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>snmptrap.fallback</key>
<delay>0</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>SNMP Traps</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>snmptrap[&quot;General&quot;]</name>
<type>17</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>snmptrap[&quot;General&quot;]</key>
<delay>0</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>SNMP Traps</name>
</application>
</applications>
<valuemap/>
<logtimefmt>hh:mm:ss yyyy/MM/dd</logtimefmt>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<triggers>
<trigger>
<expression>{FORTINET-SNMP-Traps:snmptrap.fallback.nodata(300)}=0</expression>
<name>Unmatched SNMP Trap received from {HOST.NAME}</name>
<url/>
<status>0</status>
<priority>1</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
</triggers>
</zabbix_export>

View File

@ -0,0 +1,882 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-05-04T09:25:25Z</date>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<templates>
<template>
<template>FORTINET-Session</template>
<name>FORTINET-Session</name>
<description/>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<items>
<item>
<name>Counts of accept queue full</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.6.2.6.0</snmp_oid>
<key>fgSIAdvSesAcceptQFCount</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Number of new sessions which have collision</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.6.2.3.0</snmp_oid>
<key>fgSIAdvSesClashCount</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Ephemeral sessions: current number</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.6.2.1.0</snmp_oid>
<key>fgSIAdvSesEphemeralCount</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Ephemeral sessions: limit number</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.6.2.2.0</snmp_oid>
<key>fgSIAdvSesEphemeralLimit</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Number of current expectation sessions</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.6.2.4.0</snmp_oid>
<key>fgSIAdvSesExpCount</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Counts of direct requests to FortiGate local stack</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.6.2.7.0</snmp_oid>
<key>fgSIAdvSesNoListenerCount</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Counts of sync queue full</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.6.2.5.0</snmp_oid>
<key>fgSIAdvSesSyncQFCount</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv6 Active sessions</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.15.0</snmp_oid>
<key>fgSysSes6Count</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv6 Session Setup Rate over 1 min</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.16.0</snmp_oid>
<key>fgSysSes6Rate1</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>CPS</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv6 Session Setup Rate over 10 mins</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.17.0</snmp_oid>
<key>fgSysSes6Rate10</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>CPS</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv6 Session Setup Rate over 30 mins</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.18.0</snmp_oid>
<key>fgSysSes6Rate30</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>CPS</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv6 Session Setup Rate over 60 mins</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.18.0</snmp_oid>
<key>fgSysSes6Rate60</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>CPS</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv4 Active sessions</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.8.0</snmp_oid>
<key>fgSysSesCount</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv4 Session Setup Rate over 1 min</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.11.0</snmp_oid>
<key>fgSysSesRate1</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>CPS</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv4 Session Setup Rate over 10 mins</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.12.0</snmp_oid>
<key>fgSysSesRate10</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>CPS</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv4 Session Setup Rate over 30 mins</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.13.0</snmp_oid>
<key>fgSysSesRate30</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>CPS</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>IPv4 Session Setup Rate over 60 mins</name>
<type>4</type>
<snmp_community>{$SNMP_FW_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.4.1.14.0</snmp_oid>
<key>fgSysSesRate60</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>CPS</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Session</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<triggers>
<trigger>
<expression>({FORTINET-Session:fgSysSesCount.last(0)}-{FORTINET-Session:fgSysSesCount.avg(86400)})&gt;0.2 * {FORTINET-Session:fgSysSesCount.last(0)} and ({FORTINET-Session:fgSysSesCount.last(0)}-{FORTINET-Session:fgSysSesCount.avg(86400)})&lt;0.3 * {FORTINET-Session:fgSysSesCount.last(0)}</expression>
<name>An increase of 20% of ipv4 active sessions was detected</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>({FORTINET-Session:fgSysSes6Count.last(0)}-{FORTINET-Session:fgSysSes6Count.avg(86400)})&gt;0.2 * {FORTINET-Session:fgSysSes6Count.last(0)} and ({FORTINET-Session:fgSysSes6Count.last(0)}-{FORTINET-Session:fgSysSes6Count.avg(86400)})&lt;0.3 * {FORTINET-Session:fgSysSes6Count.last(0)}</expression>
<name>An increase of 20% of ipv6 active sessions was detected</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>({FORTINET-Session:fgSysSesCount.last(0)}-{FORTINET-Session:fgSysSesCount.avg(86400)})&gt;0.3 * {FORTINET-Session:fgSysSesCount.last(0)} and ({FORTINET-Session:fgSysSesCount.last(0)}-{FORTINET-Session:fgSysSesCount.avg(86400)})&lt;0.4 * {FORTINET-Session:fgSysSesCount.last(0)}</expression>
<name>An increase of 30% of ipv4 active sessions was detected</name>
<url/>
<status>0</status>
<priority>4</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>({FORTINET-Session:fgSysSes6Count.last(0)}-{FORTINET-Session:fgSysSes6Count.avg(86400)})&gt;0.3 * {FORTINET-Session:fgSysSes6Count.last(0)} and ({FORTINET-Session:fgSysSes6Count.last(0)}-{FORTINET-Session:fgSysSes6Count.avg(86400)})&lt;0.4 * {FORTINET-Session:fgSysSes6Count.last(0)}</expression>
<name>An increase of 30% of ipv6 active sessions was detected</name>
<url/>
<status>0</status>
<priority>4</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>({FORTINET-Session:fgSysSesCount.last(0)}-{FORTINET-Session:fgSysSesCount.avg(86400)})&gt;0.4 * {FORTINET-Session:fgSysSesCount.last(0)}</expression>
<name>An increase of 40% of ipv4 active sessions was detected</name>
<url/>
<status>0</status>
<priority>5</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>({FORTINET-Session:fgSysSes6Count.last(0)}-{FORTINET-Session:fgSysSes6Count.avg(86400)})&gt;0.4 * {FORTINET-Session:fgSysSes6Count.last(0)}</expression>
<name>An increase of 40% of ipv6 active sessions was detected</name>
<url/>
<status>0</status>
<priority>5</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
<trigger>
<expression>{FORTINET-Session:fgSIAdvSesEphemeralCount.last(0)}&gt;{FORTINET-Session:fgSIAdvSesEphemeralLimit.last(0)}</expression>
<name>Number of ephemeral sessions exceeded the limit</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
</triggers>
<graphs>
<graph>
<name>Active Sessions</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-Session</host>
<key>fgSysSesCount</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>0</drawtype>
<color>00C800</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-Session</host>
<key>fgSysSes6Count</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
</zabbix_export>

View File

@ -0,0 +1,364 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-07-20T09:12:48Z</date>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<templates>
<template>
<template>FORTINET-VPN</template>
<name>FORTINET-VPN</name>
<description/>
<groups>
<group>
<name>Templates Firewall</name>
</group>
</groups>
<applications>
<application>
<name>VPN Tunnels</name>
</application>
</applications>
<items/>
<discovery_rules>
<discovery_rule>
<name>VPN Tunnel</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<snmp_oid>discovery[{#SNMPVALUE},.1.3.6.1.4.1.12356.101.12.2.2.1.2]</snmp_oid>
<key>fgVpnTunEntPhase1Name</key>
<delay>300</delay>
<status>0</status>
<allowed_hosts/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<delay_flex/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<filter>
<evaltype>0</evaltype>
<formula/>
<conditions/>
</filter>
<lifetime>7</lifetime>
<description/>
<item_prototypes>
<item_prototype>
<name>Number of bytes received on VPN $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.12.2.2.1.18.{#SNMPINDEX}</snmp_oid>
<key>fgVpnTunEntInOctets[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>90</trends>
<status>1</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>bytes</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>VPN Tunnels</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Local IP address for VPN $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.12.2.2.1.6.{#SNMPINDEX}</snmp_oid>
<key>fgVpnTunEntLocGwyIp[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>VPN Tunnels</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Number of bytes sent on VPN $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.12.2.2.1.19.{#SNMPINDEX}</snmp_oid>
<key>fgVpnTunEntOutOctets[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>90</trends>
<status>1</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>bytes</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>VPN Tunnels</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Remote IP address for VPN $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.12.2.2.1.4.{#SNMPINDEX}</snmp_oid>
<key>fgVpnTunEntRemGwyIp[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>VPN Tunnels</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Current status for VPN $1</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.4.1.12356.101.12.2.2.1.20.{#SNMPINDEX}</snmp_oid>
<key>fgVpnTunEntStatus[{#SNMPVALUE}]</key>
<delay>300</delay>
<history>7</history>
<trends>90</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>VPN Tunnels</name>
</application>
</applications>
<valuemap>
<name>FgVpnState</name>
</valuemap>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{FORTINET-VPN:fgVpnTunEntStatus[{#SNMPVALUE}].last(0)}=1</expression>
<name>VPN tunnel {#SNMPVALUE} is DOWN</name>
<url/>
<status>0</status>
<priority>1</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
</trigger_prototypes>
<graph_prototypes>
<graph_prototype>
<name>Traffic on VPN {#SNMPVALUE}</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>1</drawtype>
<color>00CF00</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-VPN</host>
<key>fgVpnTunEntInOctets[{#SNMPVALUE}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>2</drawtype>
<color>002A97</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>FORTINET-VPN</host>
<key>fgVpnTunEntOutOctets[{#SNMPVALUE}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<host_prototypes/>
</discovery_rule>
</discovery_rules>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<value_maps>
<value_map>
<name>FgVpnState</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>down</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>up</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>

View File

@ -0,0 +1,610 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-12-13T08:06:07Z</date>
<groups>
<group>
<name>Templates Security Firewall</name>
</group>
</groups>
<templates>
<template>
<template>MikroTik SNMP</template>
<name>MikroTik SNMP</name>
<description/>
<groups>
<group>
<name>Templates Security Firewall</name>
</group>
</groups>
<applications>
<application>
<name>CPU</name>
</application>
<application>
<name>Disk</name>
</application>
<application>
<name>Health</name>
</application>
<application>
<name>Information</name>
</application>
<application>
<name>Memory</name>
</application>
</applications>
<items>
<item>
<name>CPU load</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.2.1.25.3.3.1.2.1</snmp_oid>
<key>mikrotik.cpu.load</key>
<delay>30</delay>
<history>14</history>
<trends>90</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>CPU</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>CPU temperature</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>.1.3.6.1.4.1.14988.1.1.3.11.0</snmp_oid>
<key>mikrotik.processor.temperature</key>
<delay>30</delay>
<history>14</history>
<trends>90</trends>
<status>1</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>°C</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>0.1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Health</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>System temperature</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>.1.3.6.1.4.1.14988.1.1.3.10.0</snmp_oid>
<key>mikrotik.system.temperature</key>
<delay>30</delay>
<history>14</history>
<trends>90</trends>
<status>1</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>°C</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>0.1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Health</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Total disk space</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>.1.3.6.1.2.1.25.2.3.1.5.131073</snmp_oid>
<key>mikrotik.total.disk.space</key>
<delay>30</delay>
<history>14</history>
<trends>90</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>B</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1024</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Disk</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Total memory</name>
<type>4</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>.1.3.6.1.2.1.25.2.3.1.5.65536</snmp_oid>
<key>mikrotik.total.memory</key>
<delay>30</delay>
<history>14</history>
<trends>90</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>B</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1024</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Used disk space</name>
<type>1</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>.1.3.6.1.2.1.25.2.3.1.6.131073</snmp_oid>
<key>mikrotik.used.disk.space</key>
<delay>30</delay>
<history>14</history>
<trends>90</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>B</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1024</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Disk</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Used memory</name>
<type>1</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>.1.3.6.1.2.1.25.2.3.1.6.65536</snmp_oid>
<key>mikrotik.used.memory</key>
<delay>30</delay>
<history>14</history>
<trends>90</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>B</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1024</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Memory</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>System version and hw</name>
<type>1</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>iso.3.6.1.2.1.47.1.1.1.1.2.65536</snmp_oid>
<key>mikrotik.version.and.hw</key>
<delay>3600</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>1</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Information</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Voltage</name>
<type>1</type>
<snmp_community>{$SNMP_COM_FW}</snmp_community>
<multiplier>1</multiplier>
<snmp_oid>.1.3.6.1.4.1.14988.1.1.3.8.0</snmp_oid>
<key>mikrotik.voltage</key>
<delay>30</delay>
<history>14</history>
<trends>90</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>V</units>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>0.1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Health</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
</items>
<discovery_rules/>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<triggers>
<trigger>
<expression>{MikroTik SNMP:mikrotik.cpu.load.last(900)}=90</expression>
<name>Mikrotik cpu load</name>
<url/>
<status>0</status>
<priority>3</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
</triggers>
<graphs>
<graph>
<name>CPU usage</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>0</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>5</drawtype>
<color>FF3333</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>MikroTik SNMP</host>
<key>mikrotik.cpu.load</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>Disk usage</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>0</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>2</drawtype>
<color>EE00EE</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>MikroTik SNMP</host>
<key>mikrotik.total.disk.space</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>5</drawtype>
<color>00CC00</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>MikroTik SNMP</host>
<key>mikrotik.used.disk.space</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>Memory usage</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>0</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>1</drawtype>
<color>00C800</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>MikroTik SNMP</host>
<key>mikrotik.total.memory</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>1</drawtype>
<color>FFCC00</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>MikroTik SNMP</host>
<key>mikrotik.used.memory</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>System health: temperature</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>1</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>MikroTik SNMP</host>
<key>mikrotik.processor.temperature</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>1</drawtype>
<color>00C800</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>MikroTik SNMP</host>
<key>mikrotik.system.temperature</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
</zabbix_export>

View File

@ -0,0 +1,503 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-11-02T09:53:38Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template MikroTik</template>
<name>Template MikroTik</name>
<description>Mikrotik-Router zum Einsatz bei Homeoffice-Mitarbeitern</description>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications/>
<items>
<item>
<name>OS</name>
<type>1</type>
<snmp_community>public</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.2.1.1.1.0</snmp_oid>
<key>.1.3.6.1.2.1.1.1.0</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>4</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>5</inventory_link>
<applications/>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Contact</name>
<type>1</type>
<snmp_community>public</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.2.1.1.4.0</snmp_oid>
<key>.1.3.6.1.2.1.1.4.0</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>4</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>23</inventory_link>
<applications/>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Name</name>
<type>1</type>
<snmp_community>public</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.2.1.1.5.0</snmp_oid>
<key>.1.3.6.1.2.1.1.5.0</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>4</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>3</inventory_link>
<applications/>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Location</name>
<type>1</type>
<snmp_community>public</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.2.1.1.6.0</snmp_oid>
<key>.1.3.6.1.2.1.1.6.0</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>4</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>24</inventory_link>
<applications/>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>MAC</name>
<type>1</type>
<snmp_community>public</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>.1.3.6.1.2.1.2.2.1.6.1</snmp_oid>
<key>.1.3.6.1.2.1.2.2.1.6.1</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>4</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>12</inventory_link>
<applications/>
<valuemap/>
<logtimefmt/>
</item>
</items>
<discovery_rules>
<discovery_rule>
<name>Interfaces</name>
<type>4</type>
<snmp_community>public</snmp_community>
<snmp_oid>discovery[{#SNMPVALUE},ifDescr]</snmp_oid>
<key>discover.interfaces.snmp</key>
<delay>120</delay>
<status>0</status>
<allowed_hosts/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<delay_flex/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<filter>
<evaltype>0</evaltype>
<formula/>
<conditions>
<condition>
<macro>{#SNMPVALUE}</macro>
<value>FastEthernet|GigabitEthernet|TenGigabitEthernet|Port-channel|Vlan</value>
<operator>8</operator>
<formulaid>A</formulaid>
</condition>
</conditions>
</filter>
<lifetime>0</lifetime>
<description/>
<item_prototypes>
<item_prototype>
<name>ifAlias.[&quot;{#SNMPVALUE}&quot;]</name>
<type>4</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>IF-MIB::ifAlias.{#SNMPINDEX}</snmp_oid>
<key>ifAlias.[&quot;{#SNMPVALUE}&quot;]</key>
<delay>86400</delay>
<history>7</history>
<trends>0</trends>
<status>1</status>
<value_type>4</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>ifInOctets.[&quot;{#SNMPVALUE}&quot;]</name>
<type>4</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>IF-MIB::ifInOctets.{#SNMPINDEX}</snmp_oid>
<key>ifInOctets.[&quot;{#SNMPVALUE}&quot;]</key>
<delay>120</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>bit/s</units>
<delta>1</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>ifOperStatus.[&quot;{#SNMPVALUE}&quot;]</name>
<type>4</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>IF-MIB::ifOperStatus.{#SNMPINDEX}</snmp_oid>
<key>ifOperStatus.[&quot;{#SNMPVALUE}&quot;]</key>
<delay>120</delay>
<history>7</history>
<trends>14</trends>
<status>1</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap>
<name>Cisco-Interface state</name>
</valuemap>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>ifOutOctets.[&quot;{#SNMPVALUE}&quot;]</name>
<type>4</type>
<snmp_community>{$SNMP_COMMUNITY}</snmp_community>
<multiplier>0</multiplier>
<snmp_oid>IF-MIB::ifOutOctets.{#SNMPINDEX}</snmp_oid>
<key>ifOutOctets.[&quot;{#SNMPVALUE}&quot;]</key>
<delay>120</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>bit/s</units>
<delta>1</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications/>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{Template MikroTik:ifOperStatus.[&quot;{#SNMPVALUE}&quot;].last()}=2 and {Template MikroTik:ifAlias.[&quot;{#SNMPVALUE}&quot;].str(this_does_not_exist)}=0</expression>
<name>Linkverlust {#SNMPVALUE}</name>
<url/>
<status>1</status>
<priority>2</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
</trigger_prototypes>
<graph_prototypes>
<graph_prototype>
<name>Interface-Speed {#SNMPVALUE}</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template MikroTik</host>
<key>ifInOctets.[&quot;{#SNMPVALUE}&quot;]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>0</drawtype>
<color>00C800</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template MikroTik</host>
<key>ifOutOctets.[&quot;{#SNMPVALUE}&quot;]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<host_prototypes/>
</discovery_rule>
</discovery_rules>
<macros/>
<templates/>
<screens/>
</template>
</templates>
<value_maps>
<value_map>
<name>Cisco-Interface state</name>
<mappings>
<mapping>
<value>1</value>
<newvalue>up</newvalue>
</mapping>
<mapping>
<value>2</value>
<newvalue>down</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>

View File

@ -0,0 +1,464 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2018-12-13T08:05:38Z</date>
<groups>
<group>
<name>Templates Security Firewall</name>
</group>
</groups>
<templates>
<template>
<template>TrendMicro-Officescan</template>
<name>TrendMicro-Officescan</name>
<description/>
<groups>
<group>
<name>Templates Security Firewall</name>
</group>
</groups>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<items>
<item>
<name>Update Virenpattern</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>log[{$TRENDMICRO.OS.UPDATELOG},&quot;(.{14}),.,1,1,(.*)&quot;,,,,\1#\2]</key>
<delay>10</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>Z-Zahl {2,3}&#13;
I-ID des Moduls&#13;
E-Erfolg {1-ja, 0-nein}&#13;
TEXT-Wert des Eintrages</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyMMddhhmmss#TEXT</logtimefmt>
</item>
<item>
<name>Plug-in-Manager Komponentenliste</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>log[{$TRENDMICRO.OS.UPDATELOG},&quot;.*,.,8,1,.*: (.*)&quot;,,,,\1]</key>
<delay>10</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>Z-Zahl {2,3}&#13;
I-ID des Moduls&#13;
E-Erfolg {1-ja, 0-nein}&#13;
TEXT-Wert des Eintrages</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyMMddhhmmss,Z,I,E,TEXT</logtimefmt>
</item>
<item>
<name>Viren-Cleanup-Template</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>log[{$TRENDMICRO.OS.UPDATELOG},&quot;.*,.,9,1,(.*)&quot;,,,,\1]</key>
<delay>10</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>Z-Zahl {2,3}&#13;
I-ID des Moduls&#13;
E-Erfolg {1-ja, 0-nein}&#13;
TEXT-Wert des Eintrages</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyMMddhhmmss,Z,I,E,TEXT</logtimefmt>
</item>
<item>
<name>IntelliTrap Ausnahme-Pattern</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>log[{$TRENDMICRO.OS.UPDATELOG},&quot;.*,.,36,1,(.*)&quot;,,,,\1]</key>
<delay>10</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>Z-Zahl {2,3}&#13;
I-ID des Moduls&#13;
E-Erfolg {1-ja, 0-nein}&#13;
TEXT-Wert des Eintrages</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyMMddhhmmss,Z,I,E,TEXT</logtimefmt>
</item>
<item>
<name>Spyware-Aktivmonitor-Pattern</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>log[{$TRENDMICRO.OS.UPDATELOG},&quot;.*,.,42,1,(.*)&quot;,,,,\1]</key>
<delay>10</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>Z-Zahl {2,3}&#13;
I-ID des Moduls&#13;
E-Erfolg {1-ja, 0-nein}&#13;
TEXT-Wert des Eintrages</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyMMddhhmmss,Z,I,E,TEXT</logtimefmt>
</item>
<item>
<name>Spyware-Pattern</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>log[{$TRENDMICRO.OS.UPDATELOG},&quot;.*,.,43,1,(.*)&quot;,,,,\1]</key>
<delay>10</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>Z-Zahl {2,3}&#13;
I-ID des Moduls&#13;
E-Erfolg {1-ja, 0-nein}&#13;
TEXT-Wert des Eintrages</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyMMddhhmmss,Z,I,E,TEXT</logtimefmt>
</item>
<item>
<name>Agent-Pattern der intelligenten Suche</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>log[{$TRENDMICRO.OS.UPDATELOG},&quot;.*,.,51,1,(.*)&quot;,,,,\1]</key>
<delay>10</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>Z-Zahl {2,3}&#13;
I-ID des Moduls&#13;
E-Erfolg {1-ja, 0-nein}&#13;
TEXT-Wert des Eintrages</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyMMddhhmmss,Z,I,E,TEXT</logtimefmt>
</item>
<item>
<name>Pattern für digitale Signaturen</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>log[{$TRENDMICRO.OS.UPDATELOG},&quot;.*,.,54,1,(.*)&quot;,,,,\1]</key>
<delay>10</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>Z-Zahl {2,3}&#13;
I-ID des Moduls&#13;
E-Erfolg {1-ja, 0-nein}&#13;
TEXT-Wert des Eintrages</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyMMddhhmmss,Z,I,E,TEXT</logtimefmt>
</item>
<item>
<name>Pattern zur Erkennung der Verhaltensüberwachung</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>log[{$TRENDMICRO.OS.UPDATELOG},&quot;.*,.,58,1,(.*)&quot;,,,,\1]</key>
<delay>10</delay>
<history>90</history>
<trends>0</trends>
<status>0</status>
<value_type>2</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description>Z-Zahl {2,3}&#13;
I-ID des Moduls&#13;
E-Erfolg {1-ja, 0-nein}&#13;
TEXT-Wert des Eintrages</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Virenscanner</name>
</application>
</applications>
<valuemap/>
<logtimefmt>yyyyMMddhhmmss,Z,I,E,TEXT</logtimefmt>
</item>
</items>
<discovery_rules/>
<macros>
<macro>
<macro>{$TRENDMICRO.OS.UPDATELOG}</macro>
<value>C:\Program Files (x86)\Trend Micro\OfficeScan\PCCSRV\Log\update.log</value>
</macro>
</macros>
<templates/>
<screens/>
</template>
</templates>
<triggers>
<trigger>
<expression>{TrendMicro-Officescan:log[{$TRENDMICRO.OS.UPDATELOG},&quot;(.{14}),.,1,1,(.*)&quot;,,,,\1#\2].nodata(86400)}=0</expression>
<name>Update Virenpattern - kein Update</name>
<url/>
<status>0</status>
<priority>1</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger>
</triggers>
</zabbix_export>

View File

@ -0,0 +1,88 @@
#!/usr/bin/env ruby
=begin
Script: if.speed
Version: 1.0
Author: Jean-Jacques Martrès (jjmartres |at| gmail |dot| com)
Description: This script quey the speed of an interface using the ifSpeed and ifHighSpeed OID and return the right speed value for an interface.
License: GPL2
This script is intended for use with Zabbix > 2.0
USAGE:
as a script: if.speed [options]
as an item: if.speed["-d","IP_ADDRESS","-c","SNMP_COMMUNITY","-s","SNMPINDEX"]
OPTIONS
-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
=end
require 'rubygems'
require 'optparse'
require 'snmp'
version="0.0.1"
# Howto use it..quiet simple
OPTIONS = {}
mandatory_options=[:deviceip, :community, :snmpindex]
optparse = OptionParser.new do |opts|
opts.banner = "Usage: #{$0} [options]"
opts.separator ""
opts.separator "Options"
opts.on("-h", "--help", "Display this help message") do
puts opts
exit(-1)
end
opts.on('-d', '--device IP_ADDRESS', String, 'Device IP address discovered by Zabbix') { |v| OPTIONS[:deviceip] = v }
opts.on('-c', '--community SNMP_COMMUNITY',String, 'SNMP community used for the device') { |v| OPTIONS[:community] = v }
opts.on('-s', '--snmpindex SNMP_INDEX', Integer, 'SNMP index') { |v| OPTIONS[:snmpindex] = v }
opts.separator ""
end
# Show usage when no args pass
if ARGV.empty?
puts optparse
exit(-1)
end
# Validate that mandatory parameters are specified
begin
optparse.parse!(ARGV)
missing = mandatory_options.select{|p| OPTIONS[p].nil? }
if not missing.empty?
puts "Missing options: #{missing.join(', ')}"
puts optparse
exit(-1)
end
rescue OptionParser::ParseError,OptionParser::InvalidArgument,OptionParser::InvalidOption
puts $!.to_s
exit(-1)
end
# Query SNMP OID ifSpeed and ifHighSpeed
if_speed = Array.new
SNMP::Manager.open(:host => OPTIONS[:deviceip], :community => OPTIONS[:community], :version => :SNMPv2c) do |manager|
response = manager.get(["IF-MIB::ifSpeed.#{OPTIONS[:snmpindex]}","IF-MIB::ifHighSpeed.#{OPTIONS[:snmpindex]}"])
response.each_varbind do |vb|
if_speed.push(vb.value.to_s)
end
end
if if_speed.any?
ifSpeed = if_speed[0].to_i
ifHighSpeed = (if_speed[1].to_i)*1000000
if ifSpeed < 4294967294
puts ifSpeed
exit(-1)
else
puts ifHighSpeed
exit(-1)
end
else
puts "-- ERROR -- : No response receive from #{OPTIONS[:deviceip]} !"
exit(-1)
end

View File

@ -0,0 +1,88 @@
#!/usr/bin/env ruby
=begin
Script: if.vdom
Version: 1.0
Author: Jean-Jacques Martrès (jjmartres |at| gmail |dot| com)
Description: This script show asssociated VDOM for an interface using SNMP on FortiNet device.
License: GPL2
This script is intended for use with Zabbix > 2.0
USAGE:
as a script: if.vdom [options]
as an item: if.vdom["-d","IP_ADDRESS","-c","SNMP_COMMUNITY","-s","SNMPINDEX"]
OPTIONS
-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
=end
require 'rubygems'
require 'optparse'
require 'snmp'
version="0.0.1"
# Howto use it..quiet simple
OPTIONS = {}
mandatory_options=[:deviceip, :community, :snmpindex]
optparse = OptionParser.new do |opts|
opts.banner = "Usage: #{$0} [options]"
opts.separator ""
opts.separator "Options"
opts.on("-h", "--help", "Display this help message") do
puts opts
exit(-1)
end
opts.on('-d', '--device IP_ADDRESS', String, 'Device IP address discovered by Zabbix') { |v| OPTIONS[:deviceip] = v }
opts.on('-c', '--community SNMP_COMMUNITY',String, 'SNMP community used for the device') { |v| OPTIONS[:community] = v }
opts.on('-s', '--snmpindex SNMP_INDEX', Integer, 'SNMP index') { |v| OPTIONS[:snmpindex] = v }
opts.separator ""
end
# Show usage when no args pass
if ARGV.empty?
puts optparse
exit(-1)
end
# Validate that mandatory parameters are specified
begin
optparse.parse!(ARGV)
missing = mandatory_options.select{|p| OPTIONS[p].nil? }
if not missing.empty?
puts "Missing options: #{missing.join(', ')}"
puts optparse
exit(-1)
end
rescue OptionParser::ParseError,OptionParser::InvalidArgument,OptionParser::InvalidOption
puts $!.to_s
exit(-1)
end
# Query SNMP OID ifSpeed and ifHighSpeed
if_vdom = Array.new
SNMP::Manager.open(:host => OPTIONS[:deviceip], :community => OPTIONS[:community], :version => :SNMPv2c) do |manager|
response = manager.get(["1.3.6.1.4.1.12356.101.7.2.1.1.1.#{OPTIONS[:snmpindex]}"])
response.each_varbind do |vb|
if_vdom.push(vb.value.to_s)
end
end
if if_vdom.any?
ifIndex = if_vdom[0].to_i
SNMP::Manager.open(:host => OPTIONS[:deviceip], :community => OPTIONS[:community], :version => :SNMPv2c) do |manager|
response = manager.get(["1.3.6.1.4.1.12356.101.3.2.1.1.2.#{ifIndex}"])
response.each_varbind do |vb|
puts vb.value.to_s
end
end
exit(-1)
else
puts "-- ERROR -- : No response receive from #{OPTIONS[:deviceip]} !"
exit(-1)
end

View File

@ -0,0 +1,86 @@
#!/usr/bin/env ruby
=begin
Script: vpn.vdom
Version: 1.0
Author: Jean-Jacques Martrès (jjmartres |at| gmail |dot| com)
Description: This script show asssociated VDOM for a VPN tunnel using SNMP on Fortinet device.
License: GPL2
This script is intended for use with Zabbix > 2.0
USAGE:
if.vdom [options]
OPTIONS
-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
=end
require 'rubygems'
require 'optparse'
require 'snmp'
version="0.0.1"
# Howto use it..quiet simple
OPTIONS = {}
mandatory_options=[:deviceip, :community, :snmpindex]
optparse = OptionParser.new do |opts|
opts.banner = "Usage: #{$0} [options]"
opts.separator ""
opts.separator "Options"
opts.on("-h", "--help", "Display this help message") do
puts opts
exit(-1)
end
opts.on('-d', '--device IP_ADDRESS', String, 'Device IP address discovered by Zabbix') { |v| OPTIONS[:deviceip] = v }
opts.on('-c', '--community SNMP_COMMUNITY',String, 'SNMP community used for the device') { |v| OPTIONS[:community] = v }
opts.on('-s', '--snmpindex SNMP_INDEX', Integer, 'SNMP index') { |v| OPTIONS[:snmpindex] = v }
opts.separator ""
end
# Show usage when no args pass
if ARGV.empty?
puts optparse
exit(-1)
end
# Validate that mandatory parameters are specified
begin
optparse.parse!(ARGV)
missing = mandatory_options.select{|p| OPTIONS[p].nil? }
if not missing.empty?
puts "Missing options: #{missing.join(', ')}"
puts optparse
exit(-1)
end
rescue OptionParser::ParseError,OptionParser::InvalidArgument,OptionParser::InvalidOption
puts $!.to_s
exit(-1)
end
# Query SNMP OID ifSpeed and ifHighSpeed
if_vdom = Array.new
SNMP::Manager.open(:host => OPTIONS[:deviceip], :community => OPTIONS[:community], :version => :SNMPv2c) do |manager|
response = manager.get(["1.3.6.1.4.1.12356.101.12.2.2.1.21.#{OPTIONS[:snmpindex]}"])
response.each_varbind do |vb|
if_vdom.push(vb.value.to_s)
end
end
if if_vdom.any?
ifIndex = if_vdom[0].to_i
SNMP::Manager.open(:host => OPTIONS[:deviceip], :community => OPTIONS[:community], :version => :SNMPv2c) do |manager|
response = manager.get(["1.3.6.1.4.1.12356.101.3.2.1.1.2.#{ifIndex}"])
response.each_varbind do |vb|
puts vb.value.to_s
end
end
exit(-1)
else
puts "-- ERROR -- : No response receive from #{OPTIONS[:deviceip]} !"
exit(-1)
end