[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 716
  • Last Modified:

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
0
http:// thevpn.guru
Asked:
http:// thevpn.guru
  • 9
  • 5
1 Solution
 
http:// thevpn.guruAuthor 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
0
 
gheistCommented:
Firsthand verify access lists in server's snmpd.conf
If they seem OK then it seems you have firewall blocking UDP in the middle.
0
 
http:// thevpn.guruAuthor 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
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
gheistCommented:
You can install real version via "yum update". If it is not there - ask upstream for a fix.
Compiling is really last effort.
0
 
http:// thevpn.guruAuthor Commented:
Well, it is a known bug but there is no update not even in testing. For this particular bug on CenTOS
0
 
gheistCommented:
I could not find reference to bug you appeal to
0
 
http:// thevpn.guruAuthor Commented:
Just a min let me dig it out
0
 
http:// thevpn.guruAuthor Commented:
0
 
gheistCommented:
Both fixes are not related to problem you encountered.
0
 
http:// thevpn.guruAuthor Commented:
0
 
http:// thevpn.guruAuthor 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



0
 
http:// thevpn.guruAuthor Commented:
Any other doubts ?
0
 
gheistCommented:
That's it, thank you for explanation.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 9
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now