• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Zabbix agent 2 - Get CPU Temperature

Scheduled Pinned Locked Moved pfSense Packages
5 Posts 2 Posters 3.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    silenceti
    last edited by Jul 21, 2015, 11:34 AM

    Hi There,

    I need to know what's the key to get cpu temperature in zabbix. I've tried:

    • cpu.temp.0
    • cpu.temp.0.sensors
    • dev.cpu.0.temperature

    Can someone help me to know the key?

    Thanks.

    1 Reply Last reply Reply Quote 0
    • D
      dennypage
      last edited by Jul 21, 2015, 5:05 PM

      By default, the Zabbix agent doesn't have temperature.

      However, you can add it as a user parameter and name it as you wish.

      Example:

      
      UserParameter=temperature,sysctl -n dev.cpu.0.temperature
      
      

      In the above example the key is simply "temperature"

      1 Reply Last reply Reply Quote 1
      • S
        silenceti
        last edited by Jul 22, 2015, 9:08 AM

        @dennypage:

        By default, the Zabbix agent doesn't have temperature.

        However, you can add it as a user parameter and name it as you wish.

        Example:

        
        UserParameter=temperature,sysctl -n dev.cpu.0.temperature
        
        

        In the above example the key is simply "temperature"

        Ok, now I get the 0 CPU temperature. I've the key like: temperature[0] , how can I get from both cpu's?

        1 Reply Last reply Reply Quote 0
        • D
          dennypage
          last edited by Jul 22, 2015, 5:28 PM

          While I have not done this, I would expect that you can do it by adding additional user parameters:

          
          UserParameter=temperature0,sysctl -n dev.cpu.0.temperature
          UserParameter=temperature1,sysctl -n dev.cpu.1.temperature
          
          

          I'm not a Zabbix expert by any stretch of the imagination, so I don't know if you can make it into a pseudo array as would appear with a discovery agent.

          1 Reply Last reply Reply Quote 0
          • S
            silenceti
            last edited by Jul 23, 2015, 3:17 PM

            @dennypage:

            While I have not done this, I would expect that you can do it by adding additional user parameters:

            
            UserParameter=temperature0,sysctl -n dev.cpu.0.temperature
            UserParameter=temperature1,sysctl -n dev.cpu.1.temperature
            
            

            I'm not a Zabbix expert by any stretch of the imagination, so I don't know if you can make it into a pseudo array as would appear with a discovery agent.

            Thanks :)

            It's solved!

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received