https://itforvn.com/prometheus-tu-a-den-z-phan-03-giam-sat-firewall-fortigate-qua-snmp-voi-prometheus/
Vào lúc 18:10:59 UTC+7 ngày Thứ Sáu, 2 tháng 8, 2019, [email protected] đã viết: > Looks like a problem with the MIB files. > > On Wed, Jul 31, 2019, 01:35 Aakash Masand <[email protected]> wrote: > >> 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" >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/prometheus-users/4dd959e1-312f-44e1-82a5-0dc5e3ffc851%40googlegroups.com >> >> <https://groups.google.com/d/msgid/prometheus-users/4dd959e1-312f-44e1-82a5-0dc5e3ffc851%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/c2196620-326f-47cd-b11d-80903bbf2259n%40googlegroups.com.

