Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lanefu/snmp-exporter-aerohive
Build Prometheus Explorer with specific aerohive mibs
https://github.com/lanefu/snmp-exporter-aerohive
Last synced: 17 days ago
JSON representation
Build Prometheus Explorer with specific aerohive mibs
- Host: GitHub
- URL: https://github.com/lanefu/snmp-exporter-aerohive
- Owner: lanefu
- License: mit
- Created: 2023-07-24T14:06:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-27T02:23:21.000Z (over 1 year ago)
- Last Synced: 2023-07-27T02:54:23.083Z (over 1 year ago)
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snmp-exporter-aerohive
Build Prometheus Exporter with specific aerohive mibs## purpose
a custom configuration of snmp-exporter allows more data.. in this case.. better monitoring for my aerohive APs.
## approach
goal is to build by sourcing upstream repo, add customizations, and then cross compile artifiacts.
we'll decouple the binary artifacts from containers to make builds efficient.
### sadly above doesn't make sense as it's just the snmp.yml that needs to be generated :P
### mibs
going to use aerohive mibs from https://github.com/netdisco/netdisco-mibs.git since they have some corrections. Fixes probably not needed, but why not.
place mibs in mibs folder
#### generating snmp.yml
`MIBSDIR` variable imporant
```bash
cd generator
MIBSDIR=mibs make generate
```### converting hexadecimal to string
most of the string values are returned as hex... we need ot convert them..
apparently overrides in generator.yml is the most friendly way
https://www.robustperception.io/numbers-from-displaystrings-with-the-snmp_exporter/
#### update
overrides in generator.yml didn't cover all teh touchpoints. i had to manualy change some types in snmp.yl from OctetString to DisplayStirng