Monitor Fortigate Firewalls with snmp exporter

177 views
Skip to first unread message

Aakash Masand

unread,
Jul 30, 2019, 7:35:28 PM7/30/19
to Prometheus Users
I am trying to generate snmp.yml by using the following generator.yml specified onhttps://grafana.com/grafana/dashboards/7567. My generator file looks like this:

modules: 
 fortigate_snmp: 
  walk: 
   - ifXTable 
   - 1.3.6.1.4.1.12356.101.12 
   - 1.3.6.1.4.1.12356.101.4 
   - 1.3.6.1.4.1.12356.101.7 
   - 1.3.6.1.4.1.12356.101.11 
  version: 3 
  max_repetitions: 25 
  timeout: 10s 
  auth: 
   username: admin-user # Required, no default. -u option to NetSNMP. 
   security_level: authNoPriv # Defaults to noAuthNoPriv. -l option to NetSNMP. # Can be noAuthNoPriv, authNoPriv or authPriv. 
   password: ******** # Has no default. Also known as authKey, -A option to NetSNMP. # Required if security_level is authNoPriv or authPriv. 
   auth_protocol: SHA # MD5 or SHA, defaults to SHA. -a option to NetSNMP. # Used if security_level is authNoPriv or authPriv.

As soon as I try to generate a file using ./generator generate it fails with the error:

INFO[0000] Loading MIBs from $HOME/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp  source="net_snmp.go:141"
WARN[0000] NetSNMP reported 1465 parse error(s)          source="main.go:104"
INFO[0000] Generating config for module fortigate_snmp   source="main.go:49"
FATA[0000] Cannot find oid 'fgInetProto' to walk         source="tree.go:290"

Ben Kochie

unread,
Aug 2, 2019, 7:10:59 AM8/2/19
to Aakash Masand, Prometheus Users
Looks like a problem with the MIB files.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/4dd959e1-312f-44e1-82a5-0dc5e3ffc851%40googlegroups.com.

khanhng...@gmail.com

unread,
Aug 13, 2020, 2:25:05 AM8/13/20
to Prometheus Users
Reply all
Reply to author
Forward
0 new messages