Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HPE MIBs #1267

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Add HPE MIBs #1267

merged 2 commits into from
Oct 30, 2024

Conversation

dsgnr
Copy link
Contributor

@dsgnr dsgnr commented Oct 15, 2024

Adds HPE MIB's to exporter.

(py311) ➜  generator git:(hpe_mibs) make generate
>> Downloading HPE to /var/folders/7l/ssn7rr4n2nl6b8qy4vz916jm0000gp/T/tmp.k6r50hPn7q
MIBDIRS='mibs' ./generator --fail-on-parse-errors generate
time=2024-10-15T13:52:41.477+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/net_snmp.go:173 msg="Loading MIBs" from=mibs
time=2024-10-15T13:52:42.268+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=synology
time=2024-10-15T13:52:42.329+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=synology metrics=209
time=2024-10-15T13:52:42.329+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=sophos_xg
time=2024-10-15T13:52:42.344+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=sophos_xg metrics=70
time=2024-10-15T13:52:42.345+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=keepalived
time=2024-10-15T13:52:42.361+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=keepalived metrics=187
time=2024-10-15T13:52:42.361+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=infrapower_pdu
time=2024-10-15T13:52:42.387+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=infrapower_pdu metrics=3
time=2024-10-15T13:52:42.387+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=cyberpower
time=2024-10-15T13:52:42.408+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=cyberpower metrics=475
time=2024-10-15T13:52:42.408+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=ubiquiti_airfiber
time=2024-10-15T13:52:42.425+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=ubiquiti_airfiber metrics=150
time=2024-10-15T13:52:42.425+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=ubiquiti_airmax
time=2024-10-15T13:52:42.441+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=ubiquiti_airmax metrics=79
time=2024-10-15T13:52:42.441+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=printer_mib
time=2024-10-15T13:52:42.461+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=printer_mib metrics=11
time=2024-10-15T13:52:42.461+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=servertech_sentry3
time=2024-10-15T13:52:42.477+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=servertech_sentry3 metrics=43
time=2024-10-15T13:52:42.477+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=mikrotik
time=2024-10-15T13:52:43.091+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=mikrotik metrics=325
time=2024-10-15T13:52:43.091+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=eap
time=2024-10-15T13:52:43.107+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=eap metrics=1
time=2024-10-15T13:52:43.107+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=readynas
time=2024-10-15T13:52:43.132+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=readynas metrics=100
time=2024-10-15T13:52:43.132+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=cisco_wlc
time=2024-10-15T13:52:43.200+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=cisco_wlc metrics=20
time=2024-10-15T13:52:43.200+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=apcups
time=2024-10-15T13:52:43.224+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=apcups metrics=308
time=2024-10-15T13:52:43.224+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=nec_ix
time=2024-10-15T13:52:43.240+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=nec_ix metrics=261
time=2024-10-15T13:52:43.240+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=raritan
time=2024-10-15T13:52:43.264+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=raritan metrics=20
time=2024-10-15T13:52:43.264+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=arista_sw
time=2024-10-15T13:52:43.283+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=arista_sw metrics=46
time=2024-10-15T13:52:43.283+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=ucd_la_table
time=2024-10-15T13:52:43.299+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=ucd_la_table metrics=3
time=2024-10-15T13:52:43.299+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=ucd_memory
time=2024-10-15T13:52:43.315+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=ucd_memory metrics=28
time=2024-10-15T13:52:43.315+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=ucd_system_stats
time=2024-10-15T13:52:43.333+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=ucd_system_stats metrics=29
time=2024-10-15T13:52:43.333+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=ubiquiti_unifi
time=2024-10-15T13:52:43.394+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=ubiquiti_unifi metrics=54
time=2024-10-15T13:52:43.394+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=ip_mib
time=2024-10-15T13:52:43.411+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=ip_mib metrics=4
time=2024-10-15T13:52:43.411+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=servertech_sentry4
time=2024-10-15T13:52:43.828+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=servertech_sentry4 metrics=54
time=2024-10-15T13:52:43.828+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=paloalto_fw
time=2024-10-15T13:52:43.842+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=paloalto_fw metrics=160
time=2024-10-15T13:52:43.842+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=liebert_pdu
time=2024-10-15T13:52:44.258+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=liebert_pdu metrics=116
time=2024-10-15T13:52:44.258+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=hrSWRun
time=2024-10-15T13:52:44.275+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=hrSWRun metrics=8
time=2024-10-15T13:52:44.275+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=hrSWInstalled
time=2024-10-15T13:52:44.289+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=hrSWInstalled metrics=7
time=2024-10-15T13:52:44.289+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=dell
time=2024-10-15T13:52:44.306+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=dell metrics=512
time=2024-10-15T13:52:44.306+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=kemp_loadmaster
time=2024-10-15T13:52:44.322+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=kemp_loadmaster metrics=84
time=2024-10-15T13:52:44.322+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=hrStorage
time=2024-10-15T13:52:44.347+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=hrStorage metrics=8
time=2024-10-15T13:52:44.347+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=hrDevice
time=2024-10-15T13:52:44.367+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=hrDevice metrics=29
time=2024-10-15T13:52:44.367+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=hrSWRunPerf
time=2024-10-15T13:52:44.385+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=hrSWRunPerf metrics=2
time=2024-10-15T13:52:44.385+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=if_mib
time=2024-10-15T13:52:44.723+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=if_mib metrics=40
time=2024-10-15T13:52:44.723+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=hpe
time=2024-10-15T13:52:44.744+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=hpe metrics=711
time=2024-10-15T13:52:44.744+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:57 msg="Generating config for module" module=hrSystem
time=2024-10-15T13:52:44.757+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:72 msg="Generated metrics" module=hrSystem metrics=7
time=2024-10-15T13:52:44.957+01:00 level=INFO source=/Users/dsgnr/dev/snmp_exporter/generator/main.go:97 msg="Config written" file=/Users/dsgnr/dev/snmp_exporter/generator/snmp.yml

Signed-off-by: dsgnr <[email protected]>
Copy link
Member

@bastischubert bastischubert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add 1-2 infos around what part of HPEs products will be supported with this change would be great

generator/generator.yml Show resolved Hide resolved
@bastischubert bastischubert merged commit 0c6b6ed into prometheus:main Oct 30, 2024
6 checks passed
@dsgnr dsgnr deleted the hpe_mibs branch October 30, 2024 21:13
SuperQ added a commit that referenced this pull request Jan 3, 2025
BREAKING CHANGES:

This version of the exporter introduces a cleaned up default snmp.yml that moved all
ucd-snmp-mib oids into a separate module.

If you used one of the following modules:
* synology
* ddwrt
* kemp_loadmaster 

you will need to change your scrape config to also include the ucd_la_table module as well.
See https://github.com/prometheus/snmp_exporter/tree/main?tab=readme-ov-file#multi-module-handling for further instructions.

* [CHANGE] generator: Update generator default MIBOPTS #1231
* [CHANGE] adopt log/slog, drop go-kit/log #1249
* [ENHANCEMENT] generator: Improve config error message #1274
* [FEATURE] add ParseDateAndTime type #1234 
* [FEATURE] Set UseUnconnectedUDPSocket option if one of the modules has if set #1247
* [FEATURE] add NTPTimeStamp type #1315
* [BUGFIX] fixed dashboard mixins #1319

snmp.yml changes:
* cleanup ucd-snmp-mibs #1200
  * moved oids from synology,ddwrt and kemp_loadmaster to new module ucd_la_table 
* Added support for Sophos XG Series #1239
* Added support for HPE #1267
* Added support for powercom #1275
* Added support for Cisco IMC #1293
* Updated mib for apc #1303
* Added support for TPLink DDM #1304

---------

Signed-off-by: Sebastian Schubert <[email protected]>
Signed-off-by: Sebastian Schubert <[email protected]>
Co-authored-by: Ben Kochie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants