Ad Widget

Collapse

Trigger does not display the updated value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Danio9004
    Junior Member
    • Sep 2023
    • 13

    #1

    Trigger does not display the updated value

    Hi,
    I have created a discovery that returns the name of the table, then for ITEM I return the number of records. In the python script I have:

    Code:
    def table_status(table,values):
    if table in values.keys():
    print(int(values[table]))
    else:
    print('0')
    When it finds a value from the file, it displays the following message:
    Count difference of data on table [TABNAME]. Difference: 3 row(s).
    Throughout the day, the file is overwritten and the value for this table sometimes changes. In latest data I see this new value. However, the message is still the same, with the old value equal to 3.
    Where could the error lie? I assume it's some simple problem, but I have no idea.​

    Item prototypes:
    Click image for larger version

Name:	image.png
Views:	419
Size:	34.7 KB
ID:	474811

    trigger prototypes:
    Click image for larger version

Name:	image.png
Views:	314
Size:	39.3 KB
ID:	474812

    Discover:
    Click image for larger version

Name:	image.png
Views:	330
Size:	22.9 KB
ID:	474813

    Zabbix 6​​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    That problem never disappears? It just sits there and you want to see latest value in there, when you refresh your problem list?
    {ITEM.LASTVALUE} - Note that since 4.0, when used in the problem name, it will not resolve to the latest item value when viewing problem events, instead it will keep the item value from the time of problem happening.

    Comment

    • Danio9004
      Junior Member
      • Sep 2023
      • 13

      #3
      Disappears only when the table is not in the file.
      If it is, I would like it to return the latest value if the value for the table changes.
      Is there any way to get it?​

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        Display operational data...

        Comment

        • Danio9004
          Junior Member
          • Sep 2023
          • 13

          #5
          Ok, I defined operational data in trigger. When I go to problems I have:
          Click image for larger version

Name:	image.png
Views:	306
Size:	82.8 KB
ID:	474862
          but in main dashboard i have still old value without (test 1).
          What i have to modify and display test 1 on dashboard?

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4807

            #6
            Dashboard problem widget has the same "show operational data "option...

            Comment

            Working...