Ad Widget

Collapse

confused about temperature (lm_sensors)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paulorv
    Junior Member
    • May 2008
    • 4

    #1

    confused about temperature (lm_sensors)

    Hi,

    So I installed lm_sensors on my clients. This is my output for sensors:

    Code:
    [root@paulorv ~]# sensors
    k8temp-pci-00cb
    Adapter: PCI adapter
    Core0 Temp:  +47.0°C
    Core1 Temp:  +46.0°C
    
    k8temp-pci-00c3
    Adapter: PCI adapter
    Core0 Temp:  +47.0°C
    Core1 Temp:  +50.0°C
    Then I inserted into /etc/zabbix/zabbix_agentd.conf

    Code:
    UserParameter=sensor.temp1,sensors | grep CPU0 | cut -c14-16
    UserParameter=sensor.temp2,sensors | grep CPU1 | cut -c14-16
    UserParameter=sensor.temp3,sensors | grep CPU2 | cut -c14-16
    UserParameter=sensor.temp4,sensors | grep CPU3 | cut -c14-16
    But I am confused about what to do next. How do I make server start logging some of these values? Do I need to create something on server?

    Anyone else using lm_sensors, can you tell me if my formatting looks correct?

    Thanks.
  • fast.ryder
    Member
    • Apr 2008
    • 46

    #2
    Server items

    Hello!

    I think that what you need now is to create a host and some items on the zabbix server, with the data that you collect from that user-parameter.

    Create a host, add some items that will accept the data from the agent and your´re done

    I would normally recommend you to use the already created temperature1 and 2 items in Zabbix, but they still only work in 2.4 kernel, so..

    Cheers,

    Ivo Pereira
    IT Consultant
    Portugal

    Comment

    • paulorv
      Junior Member
      • May 2008
      • 4

      #3
      Ivo,

      I've got the hosts setup and default stats are being monitored without any problem. I have added the temperature item but I see no output for temperature in latest data. In fact, I do not see the item in the application group I have put it (CPU, Performance). Maybe I am adding the item wrong, because I have read somewhere that SNMP should be used instead of Zabbix agent, or maybe my item is just set up wrong.

      Here is what it looks like:



      Let me know if you see anything wrong with the way I have configured it.

      Thanks.

      Comment

      • fast.ryder
        Member
        • Apr 2008
        • 46

        #4
        LM Sensors - works only in 2.4 kernel..

        Hello!

        I verified the configuration you have and everything seems well.

        However, as I explained before, the two items zabbix includes to monitor temperature (1 and 2) are only supported and work if you are running a server with a 2.4 kernel...

        Zabbix tries to read sensor data from /proc where in 2.6 kernels it is located elsewhere, in the /sys filesystem.

        So, even with zabbix server items or manual items in your server (with an "active mode" agent) you will get no result, if you try to use those two options.

        However, there is a library with C functions that (hopefully... some day may be supported: libsensors.

        This C Libraby allows to read directly the data from /sys and use it as you want. I´m working on a C patch to zabbix_agent... Something that, when you are not a C programmer, may of course take some time :P

        Try speakiing with the lm_sensors devel team: in irc (freenode.net) join the #linuxsensors channel and ask them for more help..

        Cheers,

        Ivo

        Comment

        Working...