Ad Widget

Collapse

Trend line help and example

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vlturner
    Junior Member
    • Aug 2011
    • 28

    #1

    Trend line help and example

    I have an absolute pressure sensor and its working but I want to add a trend line and cant seem to get it working.

    So the new key is PSI_TREND

    Here is the forecast. I am running this on the Zabbix server

    {PSI.forecast(1h,1d,12h)}
  • vlturner
    Junior Member
    • Aug 2011
    • 28

    #2
    IS THERE NO ONE THAT CAN ANSWER THIS?

    Comment

    • vlturner
      Junior Member
      • Aug 2011
      • 28

      #3
      1089:20190130:121516.064 error reason for "Zabbix server:PSI_TREND" changed: Incorrect function expression: raspberrypi:PSI.forecast(1h,1d,5m,,avg)}
      1089:20190130:121611.175 error reason for "Zabbix server:PSI_TREND" changed: Incorrect function expression: raspberrypi:PSI.forecast(1h,1d,5m,,avg)

      Tried the following:
      {raspberrypi:PSI.forecast(1h,1d,5m,,avg)}
      and
      raspberrypi:PSI.forecast(1h,1d,5m,,avg)

      Comment

      • DmitryL
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2016
        • 278

        #4
        Here is the example

        Comment

        • vlturner
          Junior Member
          • Aug 2011
          • 28

          #5
          Here is the line, watched the video, but the formula doesn't work like the documentation.

          forecast(PSI,1h,exponential,1d)

          cannot use avg in the 4th value or any of the others in the 3rd value.

          Cannot evaluate expression: "Cannot evaluate function "forecast(1h,1d,exponential,1d)": invalid third parameter."

          Comment

          • DmitryL
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2016
            • 278

            #6
            Try like this:
            forecast(PSI,1h,,1d,exponential)

            Comment

            • vlturner
              Junior Member
              • Aug 2011
              • 28

              #7
              Actual fix is as follows.

              forecast(openweather.pressure,2h,,30m,linear,avg)

              Comment

              Working...