We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Problem With Querying SNMP Server

Medium Priority
741 Views
Last Modified: 2013-12-23
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
Comment
Watch Question

Top Expert 2008

Author

Commented:
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
Top Expert 2015

Commented:
Firsthand verify access lists in server's snmpd.conf
If they seem OK then it seems you have firewall blocking UDP in the middle.
Top Expert 2008
Commented:
It turned out to be a bug in the latest version of snmp on centos 5.3.2, I had to download from source ..patch and install form source

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Top Expert 2015

Commented:
You can install real version via "yum update". If it is not there - ask upstream for a fix.
Compiling is really last effort.
Top Expert 2008

Author

Commented:
Well, it is a known bug but there is no update not even in testing. For this particular bug on CenTOS
Top Expert 2015

Commented:
I could not find reference to bug you appeal to
Top Expert 2008

Author

Commented:
Just a min let me dig it out
Top Expert 2008

Author

Commented:
Top Expert 2008

Author

Commented:
Top Expert 2015

Commented:
Both fixes are not related to problem you encountered.
Top Expert 2008

Author

Commented:
Top Expert 2008

Author

Commented:
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



Top Expert 2008

Author

Commented:
Any other doubts ?
Top Expert 2015

Commented:
That's it, thank you for explanation.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.