Ad Widget

Collapse

Update problem message (ITEM.VALUE) when the value changes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • okelet
    Junior Member
    • Sep 2016
    • 18

    #1

    Update problem message (ITEM.VALUE) when the value changes

    When a trigger is triggered, and a problem is generated, where the message contains a value from the expression, the value in the message is not updated with the real value of the item. Is there any way to achieve this?

    For example, when monitoring a datasource, I have a trigger when datasources in use is more than 80%, so a problem is generated with 81% in the message; but if in the next check, the new value of the item has changed, for example, to 85%, the message of the problem is the same than before (81%). The same happens, for example, when monitoring the disk space.

    Note: I don't want to use the "Multiple PROBLEM event generation mode", as this would generate lots of problems, where each problem should be ACKed manually.
    Last edited by okelet; 21-09-2016, 13:16.
  • glebs.ivanovskis
    Senior Member
    • Jul 2015
    • 237

    #2
    Item.lastvalue?

    Comment

    • okelet
      Junior Member
      • Sep 2016
      • 18

      #3
      No, because ITEM refers to the item in the trigger expression, but the expression doesn't contain the "status" item.

      Comment

      • guzzijason
        Senior Member
        • Dec 2015
        • 106

        #4
        I agree, ITEM.LASTVALUE.

        For example, let's say I have a trigger set up like this:

        Name: File size > 64 ({ITEM.VALUE}, {ITEM.LASTVALUE})
        Expression: {myhost:vfs.file.size[/tmp/foo].last()}>64


        If I create a 75 byte file called /tmp/foo, an event gets generated with the description "File size > 64 (75 B, 75 B)". However, if the file continues to grow to 128 B, then the after the next check, the event name changes to "File size > 64 (75 B, 128 B)".

        So, ITEM.VALUE does not get updated, but ITEM.LASTVALUE does.

        __Jason

        Comment

        • okelet
          Junior Member
          • Sep 2016
          • 18

          #5
          [SOLVED] Update problem message (ITEM.VALUE) when the value changes

          Yes, it was me. I didn't realize the difference between ITEM.VALUE and ITEM.LASTVALUE, till your answer. Thank you very much!

          Comment

          • develo999
            Junior Member
            • Mar 2019
            • 17

            #6
            Hi, i now its long time
            i face the same issue, i want in the dashboard where i get the alert to see
            the latest value the system recivet from the agent, but it print me only the first value
            when the trigger was fired.
            example :
            {ITEM.LASTVALUE1},{ITEM.VALUE1},{ITEM.LASTVALUE})
            all the values are the same value

            Comment

            Working...