Hi all,
i am a new member,
I recently configure Prometheus/snmp_exporter to monitors Fortigate.
i am
using the default smnp.yml which I generate form snmp generator.
my
generator.yml setting look like this:
cat go/src/
github.com/prometheus/snmp_exporter/generator/generator.ymlmodules:
########## Fortigate
fortigate_snmp: # The module name. You can have as many modules as you want.
walk: # List of OIDs to walk. Can also be SNMP object names or specific instances.
- ifXTable
- fgVpn
- fgSystem
- fgIntf
version: 2 # SNMP version to use. Defaults to 2.
# 1 will use GETNEXT, 2 and 3 use GETBULK.
max_repetitions: 25 # How many objects to request with GET/GETBULK, defaults to 25.
# May need to be reduced for buggy devices.
retries: 3 # How many times to retry a failed request, defaults to 3.
timeout: 5s # Timeout for each individual SNMP request, defaults to 5s.
auth:
# Community string is used with SNMP v1 and v2. Defaults to "public".
community: itpgroup
and my
Prometheus.yml setting look like this:
#### FORTIGATE
- job_name: 'fortigate'
static_configs:
- targets:
- 10.1.11.1 # fortigate device.
labels:
hostname: FW_ITP
device: fortigate
company: ITP
scrape_interval: 3m
scrape_timeout : 3m
metrics_path: /snmp
params:
module: [fortigate_snmp]
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement:
172.144.101.26:9116 # SNMP exporter.