Menu

#2252 Support for lmsensors 3.3.0

linux
closed
agent (1105)
5
2012-11-08
2011-05-20
Cedric
No

I build net-snmp 5.7pre1 in a chroot jail (gcc 4.5.2/libc 2.13/binutils
2.21/make 3.82).

The current 5.7pre.1 lmsensors agent (agent/mibgroup/ucd-snmp/lmSensors.c) does not support the new lmsensors 3.3.0 API.

(ucd-snmp/lmSensors.c:943: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token , etc.)

A little patch is enough to support that new API, cf joined patch.

The patch has not yet been tested, i'll test it soon.

Discussion

  • Cedric

    Cedric - 2011-05-20

    Patch for lmsensors 3.3.0 support

     
  • Niels Baggesen

    Niels Baggesen - 2011-05-24

    You should try out the new implementation, ucd-snmp/lmsensorsMib. which supports both lmsensors v2 and v3

     
  • Cedric

    Cedric - 2011-05-24

    ^^
    Right, lmsensorsMib build successfully on my platform. All tests are successful, i just have to do a prior "make snmpusm" (the initial "make" did not build it, even if configure mentions it : SNMPv3 Security Modules: usm ksm tsm).

    I guess that net-snmp keep the ucd-snmp/lmSensors 'old' agent for compatibility reason ?

    I suggest to warn at configure time when this agent is required :

    --- configure.d/config_modules_agent.orig 2011-02-23 22:07:27.000000000 +0100
    +++ configure.d/config_modules_agent 2011-05-24 16:50:33.000000000 +0200
    @@ -255,6 +255,12 @@
    #---------------------
    # process modules header, checking for config_ pseudo-macros
    #
    + #
    + # Warn about 'old' lmsensors agent
    + #
    + if test "x${i}" = "xlmSensors" ; then
    + AC_MSG_WARN([ucd-snmp/lmSensors should be superseed by ucd-snmp/lmsensorsMib])
    + fi

       \#---------------------
       \# does the header file for the module exist?
    
     

Log in to post a comment.

MongoDB Logo MongoDB