Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating valuemap from zbx-fortinet-interfaces.xml #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions zbx-templates/zbx-fortinet/zbx-fortinet-interfaces/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,20 @@ Graphs

Installation
------------

1. Install [`if.speed`](https://github.com/jjmartres/Zabbix/tree/master/zbx-scripts/if.speed) in the **ExternalScripts** directory of your Zabbix server and/or proxy. Check your `zabbix_server.conf` and/or `zabbix_proxy.conf` if in doubt.
2. Then `chmod a+x if.speed`
3. Install [`if.vdom`](https://github.com/jjmartres/Zabbix/tree/master/zbx-scripts/if.vdom) in the **ExternalScripts** directory of your Zabbix server and/or proxy. Check your `zabbix_server.conf` and/or `zabbix_proxy.conf` if in d>
4. Then `chmod a+x if.vdom`
5. Import **zbx-fortinet-interfaces.xml** file into Zabbix.
6. Add to your host the **{$SNMP_COMMUNITY}** macro with your SNMP community as value.
7. Add to your host the **{$INTF_REGEXP}** macro with your regular expression as value (ex: -p-|-P-|-pe-|-PE-)
8. Associate **ZBX-FORTINET-INTERFACES** template to the host.
1. Add a value mapping named `fgifAdminStatus` with the following values:
* 1 => up
* 2 => down
2. Add a value mapping named `fgifOperStatus` with the following values:
* 1 => up
* 2 => down
3. Install [`if.speed`](https://github.com/jjmartres/Zabbix/tree/master/zbx-scripts/if.speed) in the **ExternalScripts** directory of your Zabbix server and/or proxy. Check your `zabbix_server.conf` and/or `zabbix_proxy.conf` if in doubt.
4. Then `chmod a+x if.speed`
5. Install [`if.vdom`](https://github.com/jjmartres/Zabbix/tree/master/zbx-scripts/if.vdom) in the **ExternalScripts** directory of your Zabbix server and/or proxy. Check your `zabbix_server.conf` and/or `zabbix_proxy.conf` if in d>
6. Then `chmod a+x if.vdom`
7. Import **zbx-fortinet-interfaces.xml** file into Zabbix.
8. Add to your host the **{$SNMP_COMMUNITY}** macro with your SNMP community as value.
9. Add to your host the **{$INTF_REGEXP}** macro with your regular expression as value (ex: -p-|-P-|-pe-|-PE-)
10. Associate **ZBX-FORTINET-INTERFACES** template to the host.

### Requirements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
</application>
</applications>
<valuemap>
<name>SNMP interface status (ifAdminStatus)</name>
<name>fgifAdminStatus</name>
</valuemap>
</item_prototype>
<item_prototype>
Expand Down Expand Up @@ -135,7 +135,7 @@
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>if.vdom[&quot;-d&quot;,&quot;{HOST.HOST}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;]</key>
<key>if.vdom[&quot;-d&quot;,&quot;{HOST.IP}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;]</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
Expand Down Expand Up @@ -401,7 +401,7 @@
</application>
</applications>
<valuemap>
<name>SNMP interface status (ifOperStatus)</name>
<name>fgifOperStatus</name>
</valuemap>
</item_prototype>
<item_prototype>
Expand Down Expand Up @@ -527,7 +527,7 @@
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>if.speed[&quot;-d&quot;,&quot;{HOST.HOST}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;]</key>
<key>if.speed[&quot;-d&quot;,&quot;{HOST.IP}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;]</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
Expand Down Expand Up @@ -563,7 +563,7 @@
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{ZBX-FORTINET-INTERFACES:if.speed[&quot;-d&quot;,&quot;{HOST.HOST}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;].last(0)}&gt;0 &amp; ({ZBX-FORTINET-INTERFACES:ifInOctets[{#SNMPVALUE}].avg(300)})&gt;({ZBX-FORTINET-INTERFACES:if.speed[&quot;-d&quot;,&quot;{HOST.HOST}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;].last(0)})*0.8</expression>
<expression>{ZBX-FORTINET-INTERFACES:if.speed[&quot;-d&quot;,&quot;{HOST.IP}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;].last(0)}&gt;0 &amp; ({ZBX-FORTINET-INTERFACES:ifInOctets[{#SNMPVALUE}].avg(300)})&gt;({ZBX-FORTINET-INTERFACES:if.speed[&quot;-d&quot;,&quot;{HOST.IP}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;].last(0)})*0.8</expression>
<name>Incoming use on interface {#SNMPVALUE} exceed 80% for the last 5 minutes</name>
<url/>
<status>0</status>
Expand All @@ -590,7 +590,7 @@
<type>0</type>
</trigger_prototype>
<trigger_prototype>
<expression>{ZBX-FORTINET-INTERFACES:if.speed[&quot;-d&quot;,&quot;{HOST.HOST}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;].last(0)}&gt;0 &amp; ({ZBX-FORTINET-INTERFACES:ifOutOctets[{#SNMPVALUE}].avg(300)})&gt;({ZBX-FORTINET-INTERFACES:if.speed[&quot;-d&quot;,&quot;{HOST.HOST}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;].last(0)})*0.8</expression>
<expression>{ZBX-FORTINET-INTERFACES:if.speed[&quot;-d&quot;,&quot;{HOST.IP}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;].last(0)}&gt;0 &amp; ({ZBX-FORTINET-INTERFACES:ifOutOctets[{#SNMPVALUE}].avg(300)})&gt;({ZBX-FORTINET-INTERFACES:if.speed[&quot;-d&quot;,&quot;{HOST.IP}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;].last(0)})*0.8</expression>
<name>Outgoing use on interface {#SNMPVALUE} exceed 80% for the last 5 minutes</name>
<url/>
<status>0</status>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>vpn.vdom[&quot;-d&quot;,&quot;{HOST.HOST}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;]</key>
<key>vpn.vdom[&quot;-d&quot;,&quot;{HOST.IP}&quot;,&quot;-c&quot;,&quot;{$SNMP_COMMUNITY}&quot;,&quot;-s&quot;,&quot;{#SNMPINDEX}&quot;]</key>
<delay>300</delay>
<history>7</history>
<trends>365</trends>
Expand Down