Conversation
|
Hi @Wqrld, could you please provide the updated generator/generator.yml and add the needed mib files for this to work to the Makefile? |
|
The generator was also failing locally before adding my patch because of 404's, i had to rip those out of the makefile to generate this configuration. |
I do not have the rights to those original mib files so i'm not sure if i'm allowed to add them. They were taken from https://docs.schleifenbauer.eu/?dir=Interfaces/SNMP |
|
Shouldn't be an issue to curl their public available mib files in the generator/Makefile |
Signed-off-by: Luc H <[email protected]>
Signed-off-by: Luc H <[email protected]>
| $(eval TMP := $(shell mktemp)) | ||
| @echo ">> Downloading schleifenbauer to $(TMP)" | ||
| @curl $(CURL_OPTS) -o $(TMP) $(SCHLEIFENBAUER_URL) | ||
| @unzip -j -d $(MIBDIR) $(TMP) SCHLEIFENBAUER-PRODUCTS-MIB.txt SCHLEIFENBAUER-DATABUS-MIB.txt SCHLEIFENBAUER-SMI.txt |
There was a problem hiding this comment.
The SCHLEIFENBAUER-PRODUCTS-MIB.txt seems not to be included in this zipfile, only in the older https://docs.schleifenbauer.eu/Interfaces/SNMP/PDU_mib_244.zip. If the file is necessary we'd need to get it from the 2nd zipfile.
Signed-off-by: Luc H <[email protected]>
| # https://docs.schleifenbauer.eu/?dir=Interfaces/SNMP | ||
| schleifenbauer: | ||
| walk: | ||
| - 1.3.6.1.4.1.31034.12 No newline at end of file |
There was a problem hiding this comment.
This OID is overly broad. I think we want to be more targeted here with which walks to include. Some of the metrics included by this are read-write settings OIDs that have no meaning as metrics.
Let's start with the most useful part, the device table.
| - 1.3.6.1.4.1.31034.12 | |
| - sdbMgmtCtrlDevicesTable |
There was a problem hiding this comment.
I think almost everything in 1.3.6.1.4.1.31034.12.1.1.2 would be of use, which is basically the whole generated list. There are a few you could leave out, but for my usecase more is better.
This patch adds support for Power Distribution Units from https://www.schleifenbauer.eu
I was able to successfully read out my PDU's into grafana. I hope this may be useful for others too.
Note:
This query takes about one minute to run on my device, running into timeouts. Adding
fixes this. I think this is an issue with many SNMP devices, so it might be an idea to add statements like these (with lower limits) to the readme example.