Ad Widget

Collapse

LMSensors on Debian 6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • remnts
    Junior Member
    • Nov 2012
    • 14

    #1

    LMSensors on Debian 6

    I have a doubt with lmsensors, read in another post that lm sensors only supported in kernel 2.4, now I have zabbix server running on debian 6 squeeze kernel 2.6
    For work I have only lmsensors the server kernel 2.4 or also customers too?
    I hope I do not get much east because that,
    regards
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    you can use lmsensors for kernel 2.6 and >3.x too
    Debian-User

    Sorry for my bad english

    Comment

    • Javier
      Member
      Zabbix Certified Specialist
      • Jan 2010
      • 58

      #3
      I have kernel 2.6.32-5-amd64 in debian squeeze and lmsensor works perfectly.
      Code:
      [B]shell[/B]> [I]sensors[/I]
      i5k_amb-isa-0000
      Adapter: ISA adapter
      Ch. 0 DIMM 0: +50.0°C  (low  = +105.0°C, high = +124.0°C)  
      Ch. 1 DIMM 0: +51.0°C  (low  = +105.0°C, high = +124.0°C)  
      Ch. 2 DIMM 0: +48.5°C  (low  = +105.0°C, high = +124.0°C)  
      Ch. 3 DIMM 0: +46.5°C  (low  = +105.0°C, high = +124.0°C)

      Comment

      • remnts
        Junior Member
        • Nov 2012
        • 14

        #4
        Just to be correct, the lm-sensors package must be installed on the zabbix server and clients?
        someone already checked if we can monitor the CPU temperature, motherboard and HDD with zabbix?
        Last edited by remnts; 14-12-2012, 19:52.

        Comment

        • Javier
          Member
          Zabbix Certified Specialist
          • Jan 2010
          • 58

          #5
          Yes, the lm-sensors package must be installed on clients and you need adapt output command (grep + awk).
          You can monitor CPU, motherboard, HDD and exterior temperature if you host has sensors.

          Comment

          • remnts
            Junior Member
            • Nov 2012
            • 14

            #6
            reply

            Can you show an example of the command you mention?
            now add the following line to the agent:
            UserParameter = sensor.temp1, sensors | grep 'temp1' | awk '{print $ 2 +0}'
            UserParameter = sensor.temp2, sensors | grep 'temp2' | awk '{print $ 2 +0}'
            UserParameter = sensor.temp3, sensors | grep "temp3" | awk '{print $ 2 +0}'

            These parameters are correct?

            Comment

            Working...