On Thu, Mar 02, 2023 at 01:35:29PM +1300, Daniel Swarbrick wrote: > It looks kinda odd to me. I don't recall ever including the MIB name in the > list of objects to walk. Have you tried simply:
Yes, that is also, weirdly, broken (inasmuch I personally expected any net-snmp OID spec you can put into read_objid(3) to be legal, and MIB::oid is, like, the most canonical one, AIUI). I had gotten p-s-g to work with just "orno" after posting, yes, but only because I was reading netsnmp_mib_api(3), and its "ENVIRONMENT VARIABLES" sexion notes MIBDIRS and MIBS, which appear to funxion à la /e/s/s.c mibdirs and mibs, so the invocation that I've gotten to work is MIBDIRS=/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/local/share/snmp/mibs \ MIBS=+ORNO-MIB prometheus-snmp-generator generate Which, y'know, great, but I already have that in snmp.conf, and all other libsnmp programs understand that (defined as "my godawful libsnmp program does and i do the barest minimum of libsnmp setup (i.e. just netsnmp_parse_args()), and so does snmpbulkwalk(1) &c."). So I guess what I originally expected is "p-s-g loads the snmp config" and what I got was "it doesn't". Doesn't help that the READMEs don't mention this. I guess the manual doesn't explicitly say it does, but the manual is a usage string, so that hardly means anything. On re-reading /usr/share/doc/prometheus-snmp-exporter/generator/README.md.gz I do notice the ‒ I think ‒ only thing that mentions MIBDIRS: -- >8 -- ## Running ```sh export MIBDIRS=mibs ./generator generate ``` The generator reads in from `generator.yml` and writes to `snmp.yml`. Additional command are available for debugging, use the `help` command to see them. -- >8 -- but, y'know, that overrides the MIB location to ./mibs for running in-tree, which is not what anyone wants to do, and I only noticed it because I was looking for it. I didn't really see anything in the changelog that would imply anything has changed in this regard, and my only sid system is x32, which you don't build for, apparently. But from what I'd gotten out of the config I did manage to generate, p-s-e is not the right tool for my use-case, so it doesn't really matter either way. Best, наб
signature.asc
Description: PGP signature