W
W
wolverine7772019-06-12 18:01:10
linux
wolverine777, 2019-06-12 18:01:10

Why is the information on the processor and HDD not visible when requested via the SNMP protocol?

Hello,
I'm learning a little about SNMP - and here are some new questions..
I have Linux on a VM - so I'm training for now. I'm trying to get information about the processor and free disk space.
For this I use the commands:

snmpget localhost -v 2c -c public 1.3.6.1.2.1.25.3.3.1.2 - для CPU
snmpget localhost -v 2c -c public .1.3.6.1.4.1.2021.9.1.7.1 для HDD

as a result I get:
HOST-RESOURCES-MIB::hrProcessorLoad = No Such Object available on this agent at this OID - this is for the processor
UCD-SNMP-MIB::dskAvail.1 = No Such Object available on this agent at this OID - for free disk space...
Why (with the seeming [for me] correctness of the commands) do I not receive any information from what seems to be the same machine (as I understand it, in this case it seems to be asking itself for a and hard).
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2019-06-12
@Tabletko

and in your system something collects this data and sends it to snmp using these OIDs?

R
Ruslan Fedoseev, 2019-06-13
@martin74ua

configure snmpd
carefully look at the standard config, you will see the answers to your questions.

W
wolverine777, 2019-06-13
@wolverine777

Well, everything, finally, the "doper" himself.
it turns out that it was necessary to register those OIDs that I needed in /etc/snmp/snmpd.conf
So to say, tell the agent what to report about)
In order not to dirty the electric paper - for those who are interested, here https://support.cumulusnetworks.com/ hc/en-us/artic... everything is succinctly and clearly described.
Good luck!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question