Ad Widget

Collapse

trigger date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomdom
    Member
    • Nov 2021
    • 38

    #1

    trigger date

    Hey, I decided to post in the forum.

    I have an item that returns a date

    Click image for larger version

Name:	Screenshot 2022-03-22 at 11.12.21.png
Views:	1647
Size:	14.2 KB
ID:	441860


    I would like to set the trigger to react when the downloaded date does not equal today's date. Please help


    Click image for larger version

Name:	Screenshot 2022-03-22 at 11.13.21.png
Views:	1626
Size:	52.8 KB
ID:	441863
    Attached Files
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    I don't have v6 at hand ... so new trigger syntax is problematic..

    Old format would be "{speedtest:internet.date.last()}<>{speedtest:inte r net.date.date()}"
    Maybe new one is "last(/speedtest/internet.date)<>date(/speedtest/internet.date)"
    Correct me if I'm wrong..
    Last edited by cyber; 23-03-2022, 11:41. Reason: Edited from = to <> as it was in OP-s requirements

    Comment

    • tomdom
      Member
      • Nov 2021
      • 38

      #3
      you will not perform the execution

      I added this way:
      but it doesn't work, I changed the date received by the item to 21 and the trigger does not alert me about the alarm

      Comment


      • tim.mooney
        tim.mooney commented
        Editing a comment
        You're using "=" in the trigger expression but you said you wanted "not equal". Isn't the logic of the test incorrect?
    • tomdom
      Member
      • Nov 2021
      • 38

      #4
      I do not understand.

      item returns date, wants zabbix to check if item has today's date

      Comment

      • vitS
        Member
        • Apr 2021
        • 43

        #5
        Hi,

        Can it be that date() and internet.date in different date format?

        Thanks,

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #6
          You said
          I would like to set the trigger to react when the downloaded date does not equal today's date
          Then your check should be <> not =.
          Trigger fires when expression condition is TRUE. You want to know, when dates are not equal. So you will test for "not being equal"

          Comment

          • tomdom
            Member
            • Nov 2021
            • 38

            #7
            Thank you for that

            Comment

            • DMCbr
              Junior Member
              • Feb 2023
              • 1

              #8
              can you share the full template for this? i'm not a programmer but i need to implement this on my zabbix =/

              Comment

              • makislive@gmail.com
                Junior Member
                • Dec 2024
                • 1

                #9
                Anyone got a solution for this trigger problem ?
                I managed to use pre-processing to find get item value in date format YYYYMMDD. But need help with trigger.
                Im using zabbix 5.4
                cyber

                Comment

                Working...