Details

      Description

      ■Default message

      Date: {EVENT.DATE} {EVENT.TIME}
      
      Event: {TRIGGER.NAME}
      Status: {TRIGGER.STATUS}
      Severity: {TRIGGER.SEVERITY}
      
      Item values:
      
      {ITEM.NAME1} ({HOST.NAME1}:{ITEM.KEY1}): {ITEM.VALUE1}
      
      Original event ID: {EVENT.ID}
      

      ■Get the log

      Jan  4 01:30:21 host01 message ccc
      Jan  4 01:30:21 host01 message bbb
      Dec 29 20:24:24 host01 message aaa
      Dec 29 20:24:24 host01 message aaa
      

      ■event list

      "2016/01/04 01:26:09","host01","trigger01","PROBLEM","High","0","No","51"
      "2016/01/04 01:26:09","host01","trigger01","PROBLEM","High","0","No","51"
      "2015/12/29 20:24:39","host01","trigger01","PROBLEM","High","5d 5h 1m","No","41"
      "2015/12/29 20:24:39","host01","trigger01","PROBLEM","High","0","No","41"
      

      ■alert message

      Date: 2016/01/04 01:26:09
      
      Event: trigger01
      Status: PROBLEM
      Severity: High
      
      Item values:
      
      item01 (host01:log[/var/log/messages,Error,UTF-8]): Dec 29 20:24:24 host01 message aaa
      Original event ID: xxxxxx
      

      The event was detected on January 4.
      Why, the value of the ITEM.VALUE is December 29?

        Activity

        Hide
        richlv added a comment -

        is this a duplicate of now private ZBX-10338 ?

        Show
        richlv added a comment - is this a duplicate of now private ZBX-10338 ?
        Hide
        Aleksandrs Saveljevs added a comment -

        richlv, ZBX-10338 was deleted.

        Show
        Aleksandrs Saveljevs added a comment - richlv , ZBX-10338 was deleted.
        Hide
        Aleksandrs Saveljevs added a comment -

        Which Zabbix version is being used?

        Show
        Aleksandrs Saveljevs added a comment - Which Zabbix version is being used?
        Hide
        Kazuo Ito added a comment -

        Using Zabbix2.2.10.

        Show
        Kazuo Ito added a comment - Using Zabbix2.2.10.
        Hide
        Sandis Neilands added a comment - - edited

        While i'm trying to reproduce the problem, Kazuo Ito, could you provide:

        • the configuration of the relevant log[] item;
        • its history for the relevant period;
        • the relevant trigger configuration?
        Show
        Sandis Neilands added a comment - - edited While i'm trying to reproduce the problem, Kazuo Ito , could you provide: the configuration of the relevant log[] item; its history for the relevant period; the relevant trigger configuration?
        Hide
        Andris Zeila added a comment - - edited

        Fixed value cache not caching value if its timestamp seconds matches the timestamp of the oldest cached value and timestamp nanoseconds is less.

        Development branch svn://svn.zabbix.com/branches/dev/ZBX-10342

        Andris Zeila After thinking it over I realized that empty items must be removed, the fix is updated in r58687

        Show
        Andris Zeila added a comment - - edited Fixed value cache not caching value if its timestamp seconds matches the timestamp of the oldest cached value and timestamp nanoseconds is less. Development branch svn://svn.zabbix.com/branches/dev/ZBX-10342 Andris Zeila After thinking it over I realized that empty items must be removed, the fix is updated in r58687
        Hide
        Sandis Neilands added a comment - - edited

        (1) next is used uninitialized in vch_item_remove_values().

        Andris Zeila RESOLVED in r58783

        Sandis Neilands CLOSED.

        Show
        Sandis Neilands added a comment - - edited (1) next is used uninitialized in vch_item_remove_values() . Andris Zeila RESOLVED in r58783 Sandis Neilands CLOSED.
        Hide
        Sandis Neilands added a comment - - edited

        Tested with zabbix_sender and agent.hostname active agent item and trigger.

        Example:

        $ ./zabbix_sender -z 127.0.0.1 -i - -T -r
        localhost agent.hostname 1456831704 hostname_0
        info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000043"
        localhost agent.hostname 1456831703 hostname_1                                                            
        info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000042"
        localhost agent.hostname 1456831705 hostname_2
        info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000036"
        localhost agent.hostname 1456831702 hostname_3
        info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000035"
        localhost agent.hostname 1456831706 hostname_4
        info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000042"
        localhost agent.hostname 1456831710 hostname_5
        info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000043"
        localhost agent.hostname 1456831708 hostname_6
        info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000042"
        
        Show
        Sandis Neilands added a comment - - edited Tested with zabbix_sender and agent.hostname active agent item and trigger. Example: $ ./zabbix_sender -z 127.0.0.1 -i - -T -r localhost agent.hostname 1456831704 hostname_0 info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000043" localhost agent.hostname 1456831703 hostname_1 info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000042" localhost agent.hostname 1456831705 hostname_2 info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000036" localhost agent.hostname 1456831702 hostname_3 info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000035" localhost agent.hostname 1456831706 hostname_4 info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000042" localhost agent.hostname 1456831710 hostname_5 info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000043" localhost agent.hostname 1456831708 hostname_6 info from server: "processed: 1; failed: 0; total: 1; seconds spent: 0.000042"
        Hide
        Andris Zeila added a comment -

        Released in:

        • pre-2.2.12rc1 r58800
        • pre-2.4.8rc1 r58801
        • pre-3.0.2rc1 r58802
        • pre-3.1.0 r58803
        Show
        Andris Zeila added a comment - Released in: pre-2.2.12rc1 r58800 pre-2.4.8rc1 r58801 pre-3.0.2rc1 r58802 pre-3.1.0 r58803

          People

          • Assignee:
            Unassigned
            Reporter:
            Kazuo Ito
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: