Ad Widget

Collapse

check at specific time like cron

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sles
    Member
    • Oct 2005
    • 80

    #1

    check at specific time like cron

    Hello!

    As far as know it is not possible now, only using external tools.
    Let's say some event should occure before specific time,
    lets say I run backup and it should be completed before 06:00,
    if it is not completed , then set trigger and generate alert.
    Yes, I can do this by using host's cron, but I can do many things using linux ;-)

    Is this feature planned?

    Thank you!
  • Saslawski
    Member
    • Jul 2014
    • 49

    #2
    Example of an Trigger for worktime periode (Mon-Fri, 7 AM to 4 PM nodata for last 2 hours check):
    HTML Code:
    {Template log:log[Path\file.log,"String.*String2*"].time(0)}>070000 
    and {Template log:log[Path\file.log,"String.*String2*"].time(0)}<160000 
    and {Template log:log[Path\file.log,"String.*String2*"].dayofweek(0)}<6
    and {Template log:log[Path\file.log,"String.*String2*"].nodata(7200)}=1
    For items is the instucrion here

    Regards

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      If you want to check the state at a specific time, I think that it can be realized with the Zabbix 3.0 function.
      If you specify "h7" for Custom Interval of item, we will process the item value every morning at 7 o'clock.

      Check the function manually.

      Manual: Custom intervals

      Comment

      • andresf
        Junior Member
        • Jan 2017
        • 16

        #4
        Originally posted by Atsushi
        If you want to check the state at a specific time, I think that it can be realized with the Zabbix 3.0 function.
        If you specify "h7" for Custom Interval of item, we will process the item value every morning at 7 o'clock.

        Check the function manually.

        Manual: Custom intervals
        https://www.zabbix.com/documentation...stom_intervals
        Yeah, that's right but only possible in Agent (passive) not Agent (active). I posted a thread for the same need at https://www.zabbix.com/forum/showthread.php?t=58219

        Comment

        • crmas
          Junior Member
          • Feb 2006
          • 1

          #5
          As specified on https://www.zabbix.com/documentation...fig/items/item about "Flexible intervals"


          "To check an item once per day at a specific time (say, 12:00), set the default Update interval to '0', but specify 60 in the flexible interval and a period like 1-7,12:00-12:01"

          Comment

          • sles
            Member
            • Oct 2005
            • 80

            #6
            thank you!
            I just set by schedule ( back trunslation from russian) h6 in interval and update interval to 0.
            it works.
            Last edited by sles; 31-08-2017, 06:10. Reason: adding info

            Comment

            Working...