Ad Widget

Collapse

Latest Data - Script Item of a Discovery Rule

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rockandstone
    Junior Member
    • Mar 2021
    • 24

    #1

    Latest Data - Script Item of a Discovery Rule

    Hello Everyone,
    I am trying to understand a problem I have found today.

    I am using a discovery rule which uses a custom UserParameter and returns a JSON Data every 5 minutes.
    Furthermore I collect data with LLD Macros and use Script Item in order to show values of JSON's keys. Item Prototypes have 5min of interval.

    Click image for larger version  Name:	Cattura.PNG Views:	0 Size:	24.5 KB ID:	422511

    Well, when I check last data... I see that in the page "last value" item respects interval (every 5 min) BUT its value doesn't change for 1 hour. After 1 hour it shows the right last value (and so on), but item gets right value every 5 minutes (as you can see in the upper image).
    For example I have an item that shows 122 as its value and I can see it in the last value page too. During one hour this value changes twelve times from 122 to X Value (because 60min/5min = 12) and I can see it in the ITEM PAGE (parameters field), however if I check latest data page, I see 120 for one hour (value of the same item) and after this hour I get the 12th value of the previous hour (for the next hour).

    I am trying to figure out a solution but don't know what to do, please if you have an idea feel free to share here!

    Thank you!
    Last edited by rockandstone; 12-04-2021, 10:59.
  • rockandstone
    Junior Member
    • Mar 2021
    • 24

    #2
    Nobody has any idea?
    Last edited by rockandstone; 12-04-2021, 11:04.

    Comment

    • rockandstone
      Junior Member
      • Mar 2021
      • 24

      #3
      Thank you very much. I appreciated your help. I will try to achieve goal in another way.

      Comment

      Working...