Fix snmp-agent.py shebang
I thought this was fixed in 11.0-U4, as per Bug #24250, but it seems to still be an issue:
# snmpwalk -v2c -c public localhost FREENAS-MIB::zfsPoolName FREENAS-MIB::zfsPoolName = No Such Instance currently exists at this OID
Only the exact OIDs work:
# snmpwalk -v2c -c public localhost FREENAS-MIB::zfsPoolName.0 FREENAS-MIB::zfsPoolName.0 = STRING: "freenas-boot" # snmpwalk -v2c -c public localhost FREENAS-MIB::zfsPoolName.1 FREENAS-MIB::zfsPoolName.1 = STRING: "tank"
fix(snmp-agent): Fix snmp-agent.py shebang because rc scripts don't have /usr/local/bin in PATH
- Status changed from Unscreened to Needs Developer Review
- Assignee changed from Vladimir Vinogradenko to William Grzybowski
Looks like I have not made a full integrational test of this.
snmp-agent was not able to start on system boot . Fixed.
Wojciech, please note that FreeNAS MIB was reworked. Inspect new MIB at /usr/local/share/snmp/mibs/FREENAS-MIB.txt. New structure is more convenient and standard-complaint, but also completely different. The following command works for me:
snmpwalk -m+FREENAS-MIB -v 2c -c public 192.168.0.144 FREENAS-MIB::zpool
Also, if this was not released into 11.0, FreeNAS enterprise OID already was different back then: