Ad Widget

Collapse

Fahrenheit to Celsius

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tweaker
    Junior Member
    • Jan 2009
    • 2

    #1

    Fahrenheit to Celsius

    Hi all

    I have a problem, we have a Infratec RMS AD1 Appliance with 3 temp. sensors. I can check the temp. sensors with SNMP but I have fahrenheit and I need celius. How I can convert this to celsius?

    I know the formula:
    fahrenheit to celsius = ( TFahrenheit - 32 ) × 5 / 9
    or
    fahrenheit in celsius = ( TFahrenheit - 32 ) × 1.8

    I have already an item:
    Description: Temp Serverraum Test
    Type: SNMPv1 agent
    SNMP community: public
    SNMP OID: .1.3.6.1.4.1.1909.10.4.1.1.3.2
    SNMP port: 161
    Key: temp_serverraum_test
    Type of information: Numeric (integer 64bit)
    Units: C
    Use multiplier: Do not use
    Update interval (in sec): 30
    Keep history (in days): 90
    Keep trends (in days): 365
    Status: Active
    Store value: As is
    Show value: As is

    And a trigger:
    Name: Temp. Warung - Serverraum - Test
    Expression: {Template_Infratec:temp_serverraum_test.last(0)>84
    The trigger depends on: No dependences defined
    Event generation: Normal

    I tried to inetgrate the formula in the trigger but i need this in my item to visibel it or not? How can i solve my problem? I need the celius value in my SMS and in my graph.

    Trigger test with formula:
    Expression: ({Template_Infratec:temp_serverraum_test.last(0)}-32)*5/9<30
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    You can't convert that in the item, which would be the correct place in order to change it throughout the system, due to you having to subtract a value. The items only allow for you to specify a multiplier. I guess you could put in "1.8" as the multiplier, but then you have to subtract 32 when reading the numbers.

    Comment

    • mpotter-xiss
      Junior Member
      • Jul 2008
      • 10

      #3
      Originally posted by tweaker
      Hi all

      I have a problem, we have a Infratec RMS AD1 Appliance with 3 temp. sensors. I can check the temp. sensors with SNMP but I have fahrenheit and I need celius. How I can convert this to celsius?

      I know the formula:
      fahrenheit to celsius = ( TFahrenheit - 32 ) × 5 / 9
      or
      fahrenheit in celsius = ( TFahrenheit - 32 ) × 1.8

      I have already an item:
      Description: Temp Serverraum Test
      Type: SNMPv1 agent
      SNMP community: public
      SNMP OID: .1.3.6.1.4.1.1909.10.4.1.1.3.2
      SNMP port: 161
      Key: temp_serverraum_test
      Type of information: Numeric (integer 64bit)
      Units: C
      Use multiplier: Do not use
      Update interval (in sec): 30
      Keep history (in days): 90
      Keep trends (in days): 365
      Status: Active
      Store value: As is
      Show value: As is

      And a trigger:
      Name: Temp. Warung - Serverraum - Test
      Expression: {Template_Infratec:temp_serverraum_test.last(0)>84
      The trigger depends on: No dependences defined
      Event generation: Normal

      I tried to inetgrate the formula in the trigger but i need this in my item to visibel it or not? How can i solve my problem? I need the celius value in my SMS and in my graph.

      Trigger test with formula:
      Expression: ({Template_Infratec:temp_serverraum_test.last(0)}-32)*5/9<30
      You could write a quick script for your check and have use it as an external check in Zabbix. Use snmpget to grab the data, do a quick conversion, and then have the script give Zabbix the temp Celsius.

      I glanced at the pdf for the device just now and it didn't mention temp Fahrenheit at all. All the values in the manual are given in C. Is there a configurable option to report temp F or C?

      Comment

      • nelsonab
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2006
        • 1233

        #4
        Originally posted by Tenzer
        You can't convert that in the item, which would be the correct place in order to change it throughout the system, due to you having to subtract a value. The items only allow for you to specify a multiplier. I guess you could put in "1.8" as the multiplier, but then you have to subtract 32 when reading the numbers.
        When you look at the formula field in the DB you'd think it's possible. This may warrant closer inspection.
        RHCE, author of zbxapi
        Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
        Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

        Comment

        • tweaker
          Junior Member
          • Jan 2009
          • 2

          #5
          Hi all

          Thx for the advices. I will write a Scipt an Post it here when I have done.

          @mpotter-xiss
          Yes you are absolutly right. In the config of the Infratec appliance you can choos between fahrenheit or celsius, but the problem is one temp. Sensor is outside and now its outside <0 celsius and then I receive strange values like "0.045872467878". So I have to use fahrenheit.

          thx @all
          Tweaker

          Comment

          Working...