Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3786

SNMP Adaptor doen't accept TruthValue according to SNMP v2

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-4.0.4.GA
    • SNMP adapter
    • None

      hi.......if you try to take a TruthValue using a MIB Browser , you receive nothing because org.jboss.jmx.adaptor.snmp.agent.RequestHandlerImpl doesn't manage booleans ....I added a patch into getValueFor method ( row 474 ) that manage it with good results. I think that setValue method doesn't need the same correction because joesnmp can simply to interpret TruthValue as SnmpStringOctet object

      row 474:

      else if (val instanceof Boolean)

      { Boolean in = (Boolean) val; ssy = new SnmpOctetString(in.toString().getBytes()); }

              dandread1@redhat.com Dimitrios Andreadis
              luca.stancapiano@vige.it Luca Stancapiano (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: