Some files I made to work as modules to add to the Prometheus SNMP Exporter configuration file.
This repository was strongly inspired in the Kyle Wooten's "iDrac Prometheus SNMP Module".
I included some metrics to their original iDrac module and built my own files for Fortinet Fortigate and HP Proliant.
These files won't win any prize in the Yaml Lint test, but it works.
The modules were tested with the follow equipments:
Fortigate 1500D
Dell iDrac
HP Proliant BL460c (Gen8, Gen10)
- Add the chosen file as a block in your snmp.yml file.
- Change the field "community: yourveryowncommunity" adding your very own snmp community.
- See down below how to configure the respective module in your Prometheus configuration file.
0. False (OK, Up and Running with no warning or error)
1. True
1. Other
2. Unknown
3. OK
4. Non-critical
5. Critical
6. Non-recoverable
1. Unknown
2. Running
3. Warning
4. Testing
5. Down
Add the jobs below to your Prometheus Configuration File to scrape the respective equipment metrics
- job_name: 'fortigate'
static_configs:
- targets:
- your.host.com # SNMP device.
metrics_path: '/snmp'
params:
module: [fortinet_fortigate]
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 # Change here with your real exporter address:port
- job_name: 'idrac'
static_configs:
- targets:
- your.host.com # SNMP device.
metrics_path: '/snmp'
params:
module: [dell_idrac]
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 # Change here with your real exporter address:port
- job_name: 'hp_proliant'
static_configs:
- targets:
- your.host.com # SNMP device.
metrics_path: '/snmp'
params:
module: [hp_proliant]
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 # Change here with your real exporter address:port