Re: Creating a MIB?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2009/7/24 Anthony Davis <[email protected]>:
> So im trying to get a temperature reading from a serial thermometer which
> isnt a problem, but then im not sure how to go about storing it in SNMP

Probably the most sensible approach would be to re-use the LM-SENSORS-MIB.
This already includes a table for reporting temperature sensor readings,
which should suit your needs.

My advice would be to work with the 'ucd-snmp/lmsensorsMib' module,
which uses the hardware-abstraction mechanisms - in particular, the
code under 'agent/mibgroup/hardware/sensors'

Use these files as an example template, and craft equivalent code for
reading the entries from your thermometer.   Then tweak the 'sensors.h'
file to use this version, and the world is your mollusc of choice.

Dave

------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.