LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to associate SNMP OID with specific parameter under SNMP agent? (https://www.linuxquestions.org/questions/linux-server-73/how-to-associate-snmp-oid-with-specific-parameter-under-snmp-agent-902225/)

m4rtin 09-09-2011 09:35 PM

How to associate SNMP OID with specific parameter under SNMP agent?
 
I installed and configured snmpd under OpenSUSE(192.168.1.100) and it responds to SNMP requests just fine. If I execute snmpwalk from 192.168.1.200 machine like this:

Code:

snmpwalk -c public -v 2c 192.168.1.100
..it queries lot of information. However, for example, I installed hddtemp to my SNMP agent(192.168.1.100) and now I'm able to see
HDD temperature in 192.168.1.100, but how to associate SNMP OID with
it? My end goal would be to execute:

Code:

snmpwalk -c public -v 2c 192.168.1.100 particular_OID
..and receive HDD temperature. And in more general, how can one
associate SNMP OID with specific parameter(HDD temperature, kernel
version, amount of free memory, installed programs etc) under SNMP
agent? Or is this possible after all? :rolleyes:

ldebaets 09-16-2011 09:04 AM

I haven't used hddtemp before but I noticed the Debian package list of files for it doesn't include an SNMP MIB. Did you download a MIB for it? That would be needed for the OID of course. Perhaps the hddtemp software updates or can be made to update a hard-disk drive temperature associated with a MIB for this hardware resource? In the end, the snmp view you use has to be able to pick up the MIB which has the data. I see you are using the public view in your command and on most safely run systems, this should not display very much data. You should normally be using a private view which includes the data you need access to. Giving public too much can open the door for intrusions.


All times are GMT -5. The time now is 12:32 AM.