What features/OIDs are you interested in? Is there a good place to download the MIBs required?
On Thu, Apr 2, 2020 at 2:51 AM Andrew Meyer <[email protected]> wrote: > You need a new scrape job for each device type. However I am also > struggling with the same issue. I am trying to figure out if I should add > fortinet or fortigate to the generate.yml > > On Thursday, January 30, 2020 at 1:54:22 PM UTC-6, Elvin cbl wrote: >> >> Hi Team , >> >> I tried to intergrate Fortigate SNMP with prometheus but i am unable to >> get a proper connection >> Steps Followed >> >> In Fortigate enabled SNMP >> In Network --> interface added the SNMP to the local network >> >> on my prometheus linux machine i did wire shark and i was getting the logs >> >> Step on SNMP_exporter >> i used the github link to get the latest Release >> https://github.com/prometheus/snmp_exporter >> downloaded it and ran the file using ./snmpexporter >> >> in my prometheus.yml file added the below >> >> scrape_configs: >> - job_name: 'snmp' >> static_configs: >> - targets: >> - 192.168.1.2 # SNMP device. >> metrics_path: /snmp >> params: >> module: [if_mib] >> relabel_configs: >> - source_labels: [__address__] >> target_label: __param_target >> - source_labels: [__param_target] >> target_label: instance >> - target_label: __address__ >> replacement: 127.0.0.1:9116 # The SNMP exporter's real hostname:port >> >> >> and also tried to run SNMP Exporter Config Generator >> >> sudo apt-get install unzip build-essential libsnmp-dev # Debian-based distros >> >> >> go get github.com/prometheus/snmp_exporter/generator >> cd ${GOPATH-$HOME/go}/src/github.com/prometheus/snmp_exporter/generator >> go build >> make mibs >> >> >> The FORTIGATE mibs that i downloaded from the fortigte UI were i enabled >> SNMP i added the same in /usr/share/snmp/mibs/FORTINET-CORE-MIB.mib >> >> Im not able to run the ./generator generate to crearte the snmp.yml file >> >> i also edited the generate.yml file >> >> fortigate_snmp: >> walk: >> - ifXTable >> - fgVpn >> - fgSystem >> - fgIntf >> - fgInetProto >> version: 3 >> max_repetitions: 25 >> timeout: 10s >> auth: >> username: your_username # Required, no default. -u option to NetSNMP. >> security_level: authNoPriv # Defaults to noAuthNoPriv. -l option to >> NetSNMP. >> # Can be noAuthNoPriv, authNoPriv or >> authPriv. >> password: your_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. >> >> >> Please help >> Regards >> Elvin Fernandez >> >> >> >> >> >> >> -- > 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/25d22ab5-2ada-49f8-98f2-14c4dcb99eae%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/25d22ab5-2ada-49f8-98f2-14c4dcb99eae%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/CABbyFmpRJuqZEXT%2BkXxYQO%2BpLPit7GvXsu%3DzgvYLy4Y4udr_9Q%40mail.gmail.com.

