Ad Widget

Collapse

Trying to add a delay

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cvee.it
    Member
    • Nov 2010
    • 45

    #1

    Trying to add a delay

    I'm trying to add a delay in a process check to a template quering linux servers if they are running the apache process (httpd).

    I've started from :

    {Template_ExternalLinuxroc.mem[httpd].count(50,4)}>1

    * Edit*


    I need to have a timer window within lets say 50 second period where every 10 seconds theres a process check on the machine. As long as one of the checks performed every 10 seconds (within the 50 second window) is successful the expression won't trigger any action.


    For example.

    1(fail).....10(fail)......20(pass).....30(fail)... .40(fail).....50(fail)... <--- would mean a pass since one was successfull...

    Only when all attempts fail within the 50 second window do I want my alert to trigger.


    kThx.
    Last edited by cvee.it; 19-11-2010, 08:21. Reason: rewording
  • untergeek
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 512

    #2
    {Template_ExternalLinuxroc.mem[httpd].max(50)}>0

    That will make the query as such:

    If the maximum value of ALL checks over the last 50 seconds is 0 (meaning all of them failed) then the trigger is true. If even 1 passes in this time, the trigger will be false.

    Comment

    • cvee.it
      Member
      • Nov 2010
      • 45

      #3
      Will this give me the interval attempts ?

      - Looking at the expression it appears that its just going to be a 50 second delay before an action takes place ?

      - Where is the specifying of the interval or amount of checks within the 50 second period ?

      Comment

      • untergeek
        Senior Member
        Zabbix Certified Specialist
        • Jun 2009
        • 512

        #4
        That's within the item. Zabbix uses a different model than what you're probably accustomed.

        Hosts -> Items -> Triggers -> Actions

        A Host can contain Items.

        Triggers reference items.

        Actions are performed based on Trigger status.

        An item contains a key/value definition, as well as testing interval and other defining data. Perhaps you should read the manual a bit more closely. This is all Zabbix 101.

        At any rate, the frequency of checks is in the item. The trigger only looks at the values stored in a given item, based on the trigger definition. It has no power to change the frequency of testing/checking.

        Comment

        • cvee.it
          Member
          • Nov 2010
          • 45

          #5
          Thanks for the advice and guidance. I'll have another crack at it this week.

          Comment

          • cvee.it
            Member
            • Nov 2010
            • 45

            #6
            Thanks for your assistance.

            I ended up with : {Template_ExternalLinuxroc.mem[httpd].count(#5,1,"gt")}<1

            And set the item to 10 second intervals.

            So far so good.

            Comment

            Working...