I am new to snmp (and perl), but not to linux and sysadmin. I need to present an APC UPS unit to Solarwinds Orion SAM. The UPS is connected via serial to a Raspberry Pi running apdupsd (apcupsd | A daemon for controlling APC UPSes) - which works fine as I can poll it manually.
I've found a perl script (GitHub - jirutka/apcupsd-snmp: Apcupsd module for Net-SNMP ) that says:
> simply put the following line to your snmpd.conf file: perl do "/path/to/mod_apcupsd.pl";
But I get:
> No more variables left in this MIB View (It is past the end of the MIB tree)
when I try to walksnmp at the appropriate OID manually as suggested by the author. So snmpd seems to be running properly - but not the perl script.
So my problem is: I can't bridge the gap from snmp to apcaccess - which is what the perl script claims to do. I get the feeling that I am missing something basic here. Is the snmpd.conf file supposed to allow snmpd to directly execute the perl script when polled by Orion? That seems... wrong. Or is there another step that I have missed?
Any help is appreciated, even if it's just a link to a relevant snmp admin page or a keyword for a search.
Thanks in advance.