Ad Widget

Collapse

Trigger Expression Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phillip_d
    Junior Member
    • May 2017
    • 2

    #1

    Trigger Expression Question

    Hello,

    i want to monitor a value, for example today is the value "437" normally the value counts every day +2 so tomorrow should be the value "439".

    Is it possible to create a trigger if the value is the same for 5 days?
    If yes, how is the expression?


    Kind Regards

  • ovas
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2017
    • 138

    #2
    Hello phillip_d!

    Is the item value populated only once per day? In this case <hostname>:<item>.nodata(5d)=1 trigger function can be of value.
    If values are sent multiple times per day, then change trigger function can be used, for example <hostname>:<item>.nodata(5d)=0.

    Comment

    • phillip_d
      Junior Member
      • May 2017
      • 2

      #3
      Originally posted by ovas
      Hello phillip_d!

      Is the item value populated only once per day? In this case <hostname>:<item>.nodata(5d)=1 trigger function can be of value.
      If values are sent multiple times per day, then change trigger function can be used, for example <hostname>:<item>.nodata(5d)=0.
      Hello ovas, i ask for the value every hour. I get the data from a user parameter

      So it looks like:
      Code:
      [B][U]YESTERDAY:[/U][/B]
      Timestamp            Value
      2017-05-30 16:01:49   439
      2017-05-30 17:01:49   439
      2017-05-30 18:01:49   439
      ...
      
      [B][U]TODAY:[/U][/B]
      Timestamp            Value
      2017-05-31 11:01:49   441
      2017-05-31 12:01:49   441
      2017-05-31 13:01:49   441
      Which trigger function can i use for it?

      Thanks

      Comment

      • ovas
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Apr 2017
        • 138

        #4
        I just mentioned there was a typo in my previous post, sorry. I had also reconsidered what would be the easiest way to implement this... Can you try something like this:
        {<hostname>:<item>.last()}={<hostname>:<item>.last (,5d)}

        This should compare last value with the last value at the same time with a -5 day move to the past.

        Comment

        • Semiadmin
          Senior Member
          • Oct 2014
          • 1625

          #5
          {host:item.last()} - {host:item.last(,5d)} =0

          P.S. sorry, ovas already answered
          Last edited by Semiadmin; 31-05-2017, 15:58.

          Comment

          Working...