Project

General

Profile

Bug #26593

Fix snmp-agent.py shebang

Added by Wojciech Kruzel 11 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
OS
Target version:
Seen in:
Sprint:
Severity:
New
Backlog Priority:
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

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" 

Associated revisions

Revision 9393d85b (diff)
Added by Vladimir Vinogradenko 11 months ago

fix(snmp-agent): Fix snmp-agent.py shebang because rc scripts don't have /usr/local/bin in PATH

Ticket: #26593

Revision dba83bd2 (diff)
Added by Vladimir Vinogradenko 11 months ago

fix(snmp-agent): Fix snmp-agent.py shebang because rc scripts don't have /usr/local/bin in PATH

Ticket: #26593

History

#1 Updated by Wojciech Kruzel 11 months ago

Also, it doesn't work for any others.

# snmpwalk -v2c -c SM_public localhost .1.3.6.1.4.1.25359.1
SNMPv2-SMI::enterprises.25359.1 = No Such Instance currently exists at this OID

#2 Updated by Dru Lavigne 11 months ago

  • Assignee changed from Release Council to William Grzybowski

William: do you know if this was fixed with the 11.1 revamp or is this a separate issue?

#3 Updated by William Grzybowski 11 months ago

  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

Vladimir, would you know?

#4 Updated by Vladimir Vinogradenko 11 months ago

  • 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: .1.3.6.1.4.1.50536.1

#5 Updated by William Grzybowski 11 months ago

  • Status changed from Needs Developer Review to Reviewed by Developer
  • Assignee changed from William Grzybowski to Vladimir Vinogradenko
  • Target version set to 11.1

#6 Updated by Dru Lavigne 11 months ago

  • Subject changed from snmpwalk doesn't walk through freenas-snmpd to Fix snmp-agent.py shebang

#7 Updated by Wojciech Kruzel 11 months ago

# snmpwalk -v2c -m+FREENAS-MIB -c public localhost FREENAS-MIB::zpool
FREENAS-MIB::zpool = No Such Instance currently exists at this OID

Also the freenas-mib file uses enterprises 25359.

#8 Updated by Vladimir Vinogradenko 11 months ago

That means I am wrong and 11.0-U4 has old code. I don't think this problem will appear in 11.1. William, what should we do to support 11.0?

#9 Updated by Vladimir Vinogradenko 11 months ago

  • Status changed from Reviewed by Developer to 15
  • Assignee changed from Vladimir Vinogradenko to William Grzybowski

#10 Updated by William Grzybowski 11 months ago

  • Status changed from 15 to Screened
  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

This is not a critical bug, people can wait 11.1 to get the fix.

#11 Updated by Vladimir Vinogradenko 11 months ago

  • Status changed from Screened to Ready For Release

#12 Updated by Dru Lavigne 11 months ago

  • Target version changed from 11.1 to 11.1-RC2

#13 Updated by Nick Wolff 11 months ago

  • Needs QA changed from Yes to No
  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

#14 Updated by Dru Lavigne 11 months ago

  • Target version changed from 11.1-RC2 to 11.1-RC3

#15 Updated by Dru Lavigne 11 months ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF