LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-09-2011, 09:35 PM   #1
m4rtin
Member
 
Registered: Sep 2007
Posts: 261

Rep: Reputation: 16
Question 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?
 
Old 09-16-2011, 09:04 AM   #2
ldebaets
LQ Newbie
 
Registered: Nov 2010
Location: Ottawa, Ontario, Canada
Distribution: Ubunto 12.04
Posts: 3

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to associate SNMP OID with HDD temperature m4rtin Linux - Software 1 06-22-2011 10:55 PM
snmp RAID OID hostatonce Linux - Software 0 10-28-2007 10:53 AM
How to override one OID in SNMP? clacour Linux - General 1 07-28-2007 02:22 PM
SNMP OID for slackware linux coolrock Slackware 2 09-27-2006 03:23 AM
snmp set my oid alaios Linux - Networking 2 06-02-2005 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration