Link to home
Start Free TrialLog in
Avatar of http:// thevpn.guru
http:// thevpn.guruFlag for Denmark

asked on

Problem With Querying SNMP Server

Hi
I am trying to query a server for CPU snmp info.

snmpwalk -Dparse-mibs -c xxxxxx -v 2c xxxxxxxxxx .1.3.6.1.2.1.25.3.3.1


HOST-RESOURCES-MIB::hrProcessorEntry = No Such Object available on this agent at this OID


Anything that needs to be done on the target server ?

The target server is CentOS

Thanks
Avatar of http:// thevpn.guru
http:// thevpn.guru
Flag of Denmark image

ASKER

If do the snmpwalk on the same server I get:

[root@localhost src]# snmpwalk  -c public -v 2c xx.yy.zz.ss .1.3.6.1.2.1.25.3.3.1
HOST-RESOURCES-MIB::hrProcessorFrwID.768 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.769 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.770 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.771 = OID: SNMPv2-SMI::zeroDotZero
Firsthand verify access lists in server's snmpd.conf
If they seem OK then it seems you have firewall blocking UDP in the middle.
ASKER CERTIFIED SOLUTION
Avatar of http:// thevpn.guru
http:// thevpn.guru
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can install real version via "yum update". If it is not there - ask upstream for a fix.
Compiling is really last effort.
Well, it is a known bug but there is no update not even in testing. For this particular bug on CenTOS
I could not find reference to bug you appeal to
Just a min let me dig it out
Both fixes are not related to problem you encountered.
CHeck out it clearly states that it fixes the problem that CPU is not shown in snmp data :S




Description of problem:

RHEL 4 servers are correctly replying to the SNMP variable request
HOST-RESOURCES-MIB::hrProcessorLoad

The rpm is net-snmp-5.1.2-11.EL4.10

But for some reason RHEL 5 boxes are not displaying that variable

The rpms are

net-snmp-5.3.1-14.0.1.el5
net-snmp-libs-5.3.1-14.0.1.el5

How reproducible:
On a RHEL 5 system
# snmpwalk -c public -v 2c localhost HOST-RESOURCES-MIB::hrProcessorLoad
returns nothing.




Created an attachment (id=294204) [details]


this should do the trick



Any other doubts ?
That's it, thank you for explanation.