Ad Widget

Collapse

How can a problem have a negative duration? Would it be a version bug?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cesarsj
    Senior Member
    • Dec 2018
    • 154

    #1

    How can a problem have a negative duration? Would it be a version bug?

    Item name: Device name
    Item Type: SNMPv1 agent
    Item key: sysName
    Item interval: 60
    Trigger: {server:sysName.nodata(1m)}=1

    Problem started: 08/15/2019 02:30:39 AM
    Problem solved: 08/15/2019 02:30:25 AM

    Zabbix Server version: 4.0.7
  • vso
    Zabbix developer
    • Aug 2016
    • 190

    #2
    Negative problem duration is documented here:

    Comment

    • cesarsj
      Senior Member
      • Dec 2018
      • 154

      #3
      Originally posted by vso
      Negative problem duration is documented here:
      https://www.zabbix.com/documentation...oring/problems
      Thanks for atention and reply

      Comment

      • vso
        Zabbix developer
        • Aug 2016
        • 190

        #4
        Originally posted by cesarsj

        Thanks for atention and reply
        You are welcome

        Comment

        • borbul
          Junior Member
          • Mar 2021
          • 6

          #5
          Hello!
          It happens as far as I understand because in the last() function, the last received data is used, and not the last received in time.
          I wanted the triggers to fire only on the data that arrived last in time. It is possible to implement it?
          Function last() in Calculate items and last() in Trigger expression work differently. Trigger last() uses the last received data and last() in the Item's formula uses the last received data in time.
          Why the work of functions is different?

          Comment

          • borbul
            Junior Member
            • Mar 2021
            • 6

            #6
            FR: https://support.zabbix.com/browse/ZBXNEXT-6573
            If anyone needs such functionality - vote!

            Comment

            Working...