Ad Widget

Collapse

Trigger when item is update ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pcamelio
    Member
    • Jul 2005
    • 67

    #1

    Trigger when item is update ?

    Hi guys

    I am looking to check when an item is updated.

    Is it possible to make such trigger ?
  • raghaven.kumar
    Member
    • Mar 2008
    • 34

    #2
    hi,
    As far as i think its 'Ya man'.
    you can use the expression 'when the last and previous value differs'
    in the create trigger.

    Hope i am right !
    Update me how it went cause i dont know if it works !

    Comment

    • leo.leroy
      Junior Member
      • Apr 2008
      • 6

      #3
      yes it is.

      imagine you have the item description "desktop server" , in fact : desktop.server.status. It can be value 0 or 1. 0 = on , 1 = off

      the trigger {{hostname}:desktop.server.status.last(0)}#"0"
      will send an alert when the "desktop server" will turn off. In fact, when the last received value for the desktop.server.status will be 1, it will send an alert

      RTFM, you really really have to

      Comment

      • pcamelio
        Member
        • Jul 2005
        • 67

        #4
        The goal is to supervise batch at night.
        I am using zabbix_sender inside a batch to update an item for a dummy host which represent the batch I want to supervise daily.

        Let say an example

        Day 1: 21.00. The script start -> I send 0 to the item job.status (which means My job is OK)

        --> In the morning of Day 2 , my map is green everything is OK

        Day 2: 21:00 The script doesn't start (damned Windows system) --> The last item value is still the one of Day 1 : 0 !!!! because it has been updated

        --> In the morning of Day 3 , my map is still green while the job has not started

        Day 3: 21:00 The script start ...

        If I could check the date of the last item, I would be able to turn on a specific trigger which supervise if the job has been started.

        Any suggestion ?
        I am not looking for email or stuff like that. I just want use the map and trigger

        Comment

        • leo.leroy
          Junior Member
          • Apr 2008
          • 6

          #5
          yes

          Let me convert your example in trigger way :

          {windowsserver:job.status.last(0)}=0 & {windowsserver:job.status.nodata(86600)}=1

          So what ?

          if last result of item is 0 ( ok ) and no data has been received for 86600 seconds ( 1 day = 86400 secs + 200 secs = max runtime for your batch, for example ), then trigger will be true (and alert, red map, etc... )

          have a look : http://www.zabbix.com/manual/v1.1/config_triggers.php
          Last edited by leo.leroy; 02-04-2008, 16:20.

          Comment

          • pcamelio
            Member
            • Jul 2005
            • 67

            #6
            Thank you leo

            Comment

            Working...