jjmartres / Zabbix

A great collection of Zabbix scripts and templates
GNU General Public License v2.0
881 stars 584 forks source link

Fortigate interface traffic counters #93

Open memeopen opened 9 years ago

memeopen commented 9 years ago

Hi, first of all thank you for sharing the templates :) , and i have a noob question: 1) i didn't understand what to use in "Add to your host the {$INTF_REGEX} macro with your regular expression as value (ex: -p-|-P-|-pe-|-PE-)" - which regexp i need to use?

in my interfaces in snmpwalk with v3 appear numbered like this: ... IF-MIB::ifInOctets.22 = Counter32: 806311994 IF-MIB::ifInOctets.23 = Counter32: 294733103 IF-MIB::ifInOctets.24 = Counter32: 387423772 IF-MIB::ifInOctets.25 = Counter32: 4242997322 IF-MIB::ifInOctets.26 = Counter32: 531971988 IF-MIB::ifInOctets.27 = Counter32: 480002014 IF-MIB::ifInOctets.28 = Counter32: 52458056

P.S. also i want to suggest adding "username" macro for SNMP v3 user. for now i did it manually, changing from "< snmpv3_securityname / >" to "< snmpv3_securityname >zabbix< / snmpv3_securityname > " i hope it'll work and the template will start getting values from interfaces by snmp v3.

thanks!

memeopen commented 9 years ago

oh, i think i found some info here https://github.com/jjmartres/Zabbix/wiki/Templates,-MIB's-and-LLD-101

so if my {$INTF_REGEX} is not set, it's ok i guess. but nothing gets discovered now, from the moment i turned on SNMP v3 in my firewall and added username into template =( .

this template should work with both SNMP v2 and v3 ? thanks.

DanielG27 commented 5 years ago

Did you ever find a solution for this? I can't figure out what I need to input into regex.

netvoip commented 4 years ago

You need to set up regex for interfaces which are more important than others, for example (Tunnel|Gigabit).