1 Reply Latest reply on Mar 14, 2013 5:33 AM by Thomas Segismont

    SNMP issue

    setianusa Newbie

      Hi,

       

      I have a problem with SNMP. I am using CentOS 6, and seems that I've configured my snmp correctly ( port 161 and not 1610 ):

      ...

      view    systemview    included   .1.3.6.1.2

      ...

       

      The output of snmpwalk gave me this ( snmpwalk -v 1 -c public -O e 127.0.0.1 ) :

       

      SNMPv2-MIB::sysDescr.0 = STRING: Linux my_host 2.6.32-358.0.1.el6.x86_64 #1 SMP Wed Feb 27 06:06:45 UTC 2013 x86_64

      SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10

      DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (542) 0:00:05.42

      SNMPv2-MIB::sysContact.0 = STRING: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)

      SNMPv2-MIB::sysName.0 = STRING: my_host

      SNMPv2-MIB::sysLocation.0 = STRING: Unknown (edit /etc/snmp/snmpd.conf)

      SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01

      SNMPv2-MIB::sysORID.1 = OID: SNMP-MPD-MIB::snmpMPDMIBObjects.3.1.1

      SNMPv2-MIB::sysORID.2 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance

      SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance

      SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB

      SNMPv2-MIB::sysORID.5 = OID: TCP-MIB::tcpMIB

      SNMPv2-MIB::sysORID.6 = OID: IP-MIB::ip

      SNMPv2-MIB::sysORID.7 = OID: UDP-MIB::udpMIB

      SNMPv2-MIB::sysORID.8 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup

      SNMPv2-MIB::sysORDescr.1 = STRING: The MIB for Message Processing and Dispatching.

      SNMPv2-MIB::sysORDescr.2 = STRING: The MIB for Message Processing and Dispatching.

      SNMPv2-MIB::sysORDescr.3 = STRING: The SNMP Management Architecture MIB.

      SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities

      SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing TCP implementations

      SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing IP and ICMP implementations

      SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing UDP implementations

      SNMPv2-MIB::sysORDescr.8 = STRING: View-based Access Control Model for SNMP.

      SNMPv2-MIB::sysORUpTime.1 = Timeticks: (1) 0:00:00.01

      SNMPv2-MIB::sysORUpTime.2 = Timeticks: (1) 0:00:00.01

      SNMPv2-MIB::sysORUpTime.3 = Timeticks: (1) 0:00:00.01

      SNMPv2-MIB::sysORUpTime.4 = Timeticks: (1) 0:00:00.01

      SNMPv2-MIB::sysORUpTime.5 = Timeticks: (1) 0:00:00.01

      SNMPv2-MIB::sysORUpTime.6 = Timeticks: (1) 0:00:00.01

      SNMPv2-MIB::sysORUpTime.7 = Timeticks: (1) 0:00:00.01

      SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01

      ...

      End of MIB

       

      but the agent unable to collect the SNMP data :

      ...

      2013-03-12 14:53:19,668 INFO  [ResourceContainer.invoker.daemon-1] (org.rhq.plugins.apache.ApacheServerComponent)- Initializing Resource component for Apache Server [/etc/httpd||/etc/httpd/conf/httpd.conf]...

      2013-03-12 14:53:19,750 INFO  [ResourceContainer.invoker.daemon-1] (rhq.plugins.www.snmp.SNMPClient)- Initialized SNMP session for agent at /127.0.0.1:161.

      ...

      2013-03-12 14:53:30,660 DEBUG [ResourceDiscoveryComponent.invoker.daemon-1] (org.rhq.plugins.apache.ApacheServerDiscoveryComponent)- Apache executable path: /usr/sbin/httpd

      2013-03-12 14:53:30,718 INFO  [ResourceDiscoveryComponent.invoker.daemon-1] (org.rhq.plugins.apache.ApacheServerDiscoveryComponent)- SNMPConf directive not found. Skipping SNMP configuration.

      2013-03-12 14:53:30,719 DEBUG [ResourceDiscoveryComponent.invoker.daemon-1] (org.rhq.plugins.apache.ApacheServerDiscoveryComponent)- Apache Server resource details created: key=/etc/httpd||/etc/httpd/conf/httpd.conf,name=192.168.0.125:80,type=Apache HTTP Server,version=2.2.15,description=Apache Web Server

      ...

      2013-03-12 14:53:50,756 DEBUG [ResourceContainer.invoker.daemon-1] (rhq.plugins.www.snmp.SNMPClient)- MIB name [applInboundAssociations] mapped to OID [1.3.6.1.2.1.27.1.1.8].

      2013-03-12 14:53:50,762 ERROR [ResourceContainer.invoker.daemon-1] (org.rhq.plugins.apache.ApacheServerComponent)- No values found for MIB name [applInboundAssociations].

      2013-03-12 14:53:50,762 DEBUG [ResourceContainer.invoker.daemon-1] (rhq.plugins.www.snmp.SNMPClient)- MIB name [wwwServiceStartTime] mapped to OID [1.3.6.1.2.1.65.1.1.1.1.7].

      2013-03-12 14:53:50,763 ERROR [ResourceContainer.invoker.daemon-1] (org.rhq.plugins.apache.ApacheServerComponent)- No values found for MIB name [wwwServiceStartTime].

      2013-03-12 14:53:50,778 DEBUG [ResourceContainer.invoker.daemon-1] (org.rhq.plugins.apache.ApacheVirtualHostServiceComponent)- Collecting metrics for VirtualHost service #2...

      2013-03-12 14:53:50,779 DEBUG [ResourceContainer.invoker.daemon-1] (rhq.plugins.www.snmp.SNMPClient)- MIB name [wwwSummaryInRequests] mapped to OID [1.3.6.1.2.1.65.1.2.1.1.1].

      2013-03-12 14:53:50,781 DEBUG [MeasurementManager.collector-1] (rhq.core.pc.inventory.ResourceContainer$ResourceComponentInvocationHandler)- Call to [org.rhq.plugins.apache.ApacheVirtualHostServiceComponent.getValues()] with args [[org.rhq.core.domain.measurement.MeasurementReport@170e153b, [ScheduledMeasurementInfo[res=10033, name=wwwSummaryInRequests, sched=10496], ScheduledMeasurementInfo[res=10033, name=wwwServiceProtocol, sched=10490], ScheduledMeasurementInfo[res=10033, name=wwwSummaryOutResponses, sched=10504], ScheduledMeasurementInfo[res=10033, name=wwwServiceName, sched=10488], ScheduledMeasurementInfo[res=10033, name=wwwServiceContact, sched=10492]]]] failed.

      java.util.concurrent.ExecutionException: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0

          at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:262)

      ...

       

       

      What could be wrong with the snmp conf ? Any help ?

       

      Thanks.