Ad Widget

Collapse

Need to display temperature in Celsius

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clemente
    Junior Member
    • Apr 2013
    • 6

    #1

    Need to display temperature in Celsius

    Hello all, this is my first post and I've searched a lot before posting this.
    I have an APC InROw ACSC100 that must be monitored. I've put it in my map and used an item in the label showing the temperature. That is almost perfect. The only problem is that I need it in ° Celsius and not in °F. The conversion is done with the formula: (°C)= (°F)-32*0.555
    Well, as you can see, I have everything needed to calculate it, but, for some reason, Zabbix doesn´t accept the terms. I was thinking about creating a new calculated item, but it didn´t work either.
    I know it looks stupid, but I´m stuck! Can someone, please, help me. It´s very important. Thanks
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    how do you get the data??
    SNMP??
    maybe you can use an other OID.. or you can change it int the APC-config.
    Debian-User

    Sorry for my bad english

    Comment

    • clemente
      Junior Member
      • Apr 2013
      • 6

      #3
      Hello Colttt. Thanks for the reply.
      What I use for getting data is SNMP. For this particular data I use OID .1.3.6.1.4.1.318.1.1.13.3.4.1.2.6.0
      I've read the documentation for this APC and could not find anything useful to convert or even display the data in Celsius. The only thing usefull is that I can display the temperature in Celsius ONLY in the browser interface, but it doesn´t help for the Zabbix thing. Any help will be welcome. Thanks.

      Comment

      • heaje
        Senior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 325

        #4
        Can you post what you tried to use for your formula in the calculated item your tried? A calculated item should work fine.

        Comment

        • clemente
          Junior Member
          • Apr 2013
          • 6

          #5
          Sure. It's pretty obvious and, of course, it's wrong, as you can see:

          {{RackInTemp.InRow}-32}*0.555

          I have no experience with Zabbix. I just took the original formula to convert °C into °F, which is exactly:

          °C=(°F-32)*0.555


          Thanks.

          Comment

          • heaje
            Senior Member
            Zabbix Certified Specialist
            • Sep 2009
            • 325

            #6
            It didn't work because you didn't use the right syntax . You can read up on calculated items in the manual (https://www.zabbix.com/documentation...pes/calculated).

            Here's what the formula should probably look like:

            (last("RackInTemp.InRow")-32)*0.555

            Comment

            • clemente
              Junior Member
              • Apr 2013
              • 6

              #7
              Great, my friend! Now it's working! I can't believe.
              I've been trying to put it to work for days and finaly it's alive.
              I can't express my hapiness now. Thanks to everyone.
              Case closed.

              Comment

              • Colttt
                Senior Member
                Zabbix Certified Specialist
                • Mar 2009
                • 878

                #8
                ok,

                you search for tempUS

                please try this OID:
                .1.3.6.1.4.1.318.1.1.13.3.4.1.2.6.0

                or do this:
                snmpwalk -v2c -c public APC_IP .1.3.6.1.4.1.318.1.

                you will see a lot of data there will be the temperature, too
                Debian-User

                Sorry for my bad english

                Comment

                • clemente
                  Junior Member
                  • Apr 2013
                  • 6

                  #9
                  Thanks, Colttt. But this is the same OID that I already use and it returns the °F temperature. The calculated item worked very fine.

                  Comment

                  • Colttt
                    Senior Member
                    Zabbix Certified Specialist
                    • Mar 2009
                    • 878

                    #10
                    dooohhhh.. sorry sometimes my copy&paste is not perfect..
                    try this:
                    .1.3.6.1.4.1.318.1.1.1.2.2.2.0
                    Last edited by Colttt; 04-04-2013, 15:47.
                    Debian-User

                    Sorry for my bad english

                    Comment

                    • clemente
                      Junior Member
                      • Apr 2013
                      • 6

                      #11
                      Oh, man! It just says "not supported". I think it's my model. It doens't support many of the OIDs I've tested.
                      But the solution with calculated item is just perfect.

                      Comment

                      • Colttt
                        Senior Member
                        Zabbix Certified Specialist
                        • Mar 2009
                        • 878

                        #12
                        ok, but this a workaround..
                        can you please post the output from this command:

                        Code:
                        snmpwalk -v2c -c public APC_IP 1.3.6.1.4.1.318.1.
                        Debian-User

                        Sorry for my bad english

                        Comment

                        Working...