Ad Widget

Collapse

Trigger based on value and time not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waardd
    Member
    • Aug 2014
    • 82

    #1

    Trigger based on value and time not working

    In our zabbix 1.8 we are having troubles in configuring the right trigger.
    We don't want to be allerted if something happens during the naight so we configured the following trigger:

    Code:
    {System_AOM:system.run[ls /appl/something/file*/somelog | wc -l].last(0)}>0 & {System_AOM:system.run[ls /appl/something/file*/somelog | wc -l].time(0)}>070000 & {System_AOM:system.run[ls /appl/something/file*/somelog | wc -l].time(0)}<235959
    We thought that with this trigger we would not get any messages between 23:59 and 07:00 but we do get them.
    What is wrong with this trigger?
  • waardd
    Member
    • Aug 2014
    • 82

    #2
    Is there anybody that can tell me why this trigger is not functioning properly?
    How can i make this works with the time option?

    Comment

    • glebs.ivanovskis
      Senior Member
      • Jul 2015
      • 237

      #3
      For example, 034500<235959 - that's why you are getting messages at 3:45 a.m.

      Apparently, you should use ">070000".

      Comment

      • waardd
        Member
        • Aug 2014
        • 82

        #4
        But they are both used. See my trigger:

        {System_AOM:system.run[ls /appl/something/file*/somelog | wc -l].last(0)}>0 & {System_AOM:system.run[ls /appl/something/file*/somelog | wc -l].time(0)}>070000 & {System_AOM:system.run[ls /appl/something/file*/somelog | wc -l].time(0)}<235959

        That is what is troubeling me....

        Comment

        • glebs.ivanovskis
          Senior Member
          • Jul 2015
          • 237

          #5
          I can't tell for sure how it works in 1.8.
          Last edited by glebs.ivanovskis; 03-03-2016, 17:13.

          Comment

          • waardd
            Member
            • Aug 2014
            • 82

            #6
            I changed the trigger to:
            {System_AOM:system.run[ls /appl/something/file*/somelog | wc -l].last(0)}>0 & {System_AOM:system.run[ls /appl/something/file*/somelog | wc -l].time(0)}>070000

            And when you perfom a test (in the trigger define screen after toggle input format) all works well.

            Still i get triggermails at 3:50 or 3:51 am

            Seems to be only at that time.....

            Comment

            Working...