Ad Widget

Collapse

Trigger is not correctly fired

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nima0102
    Senior Member
    • May 2010
    • 106

    #1

    Trigger is not correctly fired

    Hi
    I have set a trigger on item X. If item X not to be fetched (no update) for 120 second,the trigger is fired. But this trigger a few times fired while related item has value in that time.
    The trigger is fired in 3:44:6,but that item had value in 3:43:5 and 3:42:6!!
    I think zabbix does not insert immediately to database after fetched one items.that means,
    zabbix fetches value1 and value2 for item X,and does not insert to database(these values cache),in meanwhile for check triggers,the databases is checked that has no any value in 120 second so trigger is fired!

    Thanks for any help or guidance
  • Mojah
    Member
    • Apr 2010
    • 60

    #2
    Could you copy/paste your current trigger entirely, so we can verify it?

    Comment

    • nima0102
      Senior Member
      • May 2010
      • 106

      #3
      Hi
      Related trigger.
      Template-1:agent.ping.nodata(120)}=1
      After some digging on system, I found out this is occurred when zabbix generate "trends" data.because in while zabbix generates trends, cpu usage on system will be 100% !

      Cpu usage graph:

      I think cpu usage peak is for trend generate,so in this time zabbix does not insert value immediately into database that leads in firing trigger.

      Thanks for more information.

      Comment

      • Mojah
        Member
        • Apr 2010
        • 60

        #4
        Hi,

        Try using:
        Template-1:agent.ping.sum(120)}=0

        That should also work. It'll sum() the last 2 minutes, when if there's no data, it should equal 0.

        Comment

        • nima0102
          Senior Member
          • May 2010
          • 106

          #5
          Hi
          Thanks a lot for your attention.
          I do think the way you mentioned be the correct way!according to manual for no_update trigger, that syntax is true.
          My purpose for create new topic and explain my issue,is to provide issues on this forum in order to help developing to developers and also inform another zabbix's users.So problems must be solved completely.
          Anyhow thanks again.

          Comment

          • nima0102
            Senior Member
            • May 2010
            • 106

            #6
            Hi
            Do zabbix's Developers have any idea about this doubt?
            zabbix fetches value1 and value2 for item X,and does not insert to database immediately (these values cache),in meanwhile for check triggers,the databases is checked that has no any value in 120 second so trigger is fired!
            Is that true??

            Thanks for any help or guidance

            Comment

            • nima0102
              Senior Member
              • May 2010
              • 106

              #7
              Hi
              This is item queue on our server :

              May this problem is related to mysql database?probably fetched data are not correctly inserted to mysql.
              In zabbix server log I do not see any log that indicates network connection problem!I think items are fetched but are not inserted to database.

              Thanks for any help or guidance

              Comment

              Working...