Ad Widget

Collapse

Confusion with flexible intervals

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zap
    Junior Member
    • Dec 2008
    • 17

    #1

    Confusion with flexible intervals

    Hi all,

    I need to have a flexible interval 1-7, 00:00-00:35. During those times a host is supposed to be not monitored regarding http (and another self made item).
    Version: ZABBIX Server (daemon) v1.6.2 (16 January 2009) on Ubuntu 8.10 Server; system is up-to-date.
    The client resides on a Windows Server 2003.

    I read the doc and searched the forum. This is what I found and tried.

    "10 sec, 1-5,09:00-18:00 – refresh set to 10 seconds for working hours. Otherwise default update interval will be used."

    I added a flexible interval to the item http, which is from a template. it turns out that the interval is unsafeable.

    "We think that there is a problem with flexible intervals for items
    inherited from template. You can change values in the flexible interval
    section (web interface) , but it seems that they aren't saved in the
    database."

    Seems to be the case. How can I fix it? Taking the "original" http item, instead of the template one? Dist-upgrade?

    The other item isn't from a template and thus it should work. Although it doesn't. I added a flex. interval: 2100 sec at 1-7,00:00-00:35. 35 minutes are 2100 sec. Do I commit a fallacy here?

    nelsonab:
    02-10-2007, 21:25
    "What are you trying to do?
    You could monitor the item as per a normal interval (30sec - 1 minute), and then set a trigger to go off only during the time you are looking at."

    How would that be accomplished? I simply don't understand this.

    Thank you for any help!
    Greetings,

    zap
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    Originally posted by zap
    I added a flexible interval to the item http, which is from a template. it turns out that the interval is unsafeable.
    If you change the item on the templated host, it will be unsaveable. However, you can change it on the Template, and it will be saveable. But this will then extend to every host attached to that template. So, to save it to only one host, you need to 'clone' the item, then it is saveable.

    Originally posted by zap
    How can I fix it? Taking the "original" http item, instead of the template one? Dist-upgrade?
    As above.

    Originally posted by zap
    You could monitor the item as per a normal interval (30sec - 1 minute), and then set a trigger to go off only during the time you are looking at."

    How would that be accomplished? I simply don't understand this.
    Set up an Action. Add a condition to the Action (at the bottom) using 'Time period in ...'

    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    • zap
      Junior Member
      • Dec 2008
      • 17

      #3
      Still problems/questions

      Hi MrKen,

      thx for the answer.

      Yes, after cloning it can be saved but only if I choose another key which is not what I intend.
      I have a simple check from a template called http. I clone it and name it http-off, add my flex. interval and press save. Then I get:

      "An item with the Key [http,80] already exists for host [myhost]. The key must be unique."

      I can't change the port for I need to monitor port 80 and I can't delete the http item from this host. It simply does not work. Disabling doesn't work either. What now?

      The other problem seems to be easier.
      I have an action with Time period in "1-7,00:35-23:59" and Send message to "myuser".
      That means from 0:00 to 0:36 there won't be any messages and if something goes wrong between 0:36 and 0:00 it'll be send to myuser, right?

      TIA,

      zap

      Comment

      • MrKen
        Senior Member
        • Oct 2008
        • 652

        #4
        Originally posted by zap

        "An item with the Key [http,80] already exists for host [myhost]. The key must be unique."
        Yes, you cannot have two items with the same Key. Disabling the original one doesn't work? Mmm, yes of course. I recall having this problem once before. I think what I did was to copy the Item from the template directly to the host Items. Remove the item from the template. Then create/edit the host item as necessary.

        "Action with Time period in" - actually I don't have any actions set up like that, but it looks to be correct.

        HTH
        MrKen
        Disclaimer: All of the above is pure speculation.

        Comment

        • zap
          Junior Member
          • Dec 2008
          • 17

          #5
          Flex. interval is a tough nut to crack!

          Action did not work neither. My fault: I have 3 action conditions. Type of calculation is AND now not AND/OR.

          I unlinked the template for this host, deleted the entry http, cloned https and altered it to port 80 and made a flex. interval. Finally I linked back the template and my neat flex. http was overwritten.
          All right, final step skipped. Now the host is template-less and does not annoy me for that particular time.

          I'll see whether it does what I expect. I have to wait 24h for it is a production machine.

          Thx,

          zap

          Comment

          • MrKen
            Senior Member
            • Oct 2008
            • 652

            #6
            Originally posted by zap
            I unlinked the template for this host, deleted the entry http, cloned https and altered it to port 80 and made a flex. interval. Finally I linked back the template and my neat flex. http was overwritten.
            All right, final step skipped. Now the host is template-less and does not annoy me for that particular time.
            I wouldn't have unlinked the template. Often what I do if I need to add an item with a key that is already in use is to create a Temporary host (No ip or dns required), then copy the item to the Temp host. Make whatever changes to the item, then delete the original item from the template, and finally move the new item from Temp host to the Actual host, not to the template unless I want all hosts to use the new item. The other templated items can stay - no data loss.

            MrKen
            Disclaimer: All of the above is pure speculation.

            Comment

            • zap
              Junior Member
              • Dec 2008
              • 17

              #7
              then delete the original item from the template
              Does that work? However, I think I'll live with the template-less state of this single host.

              If I would have 3 wishes from the fairy then it would be those:

              1. Disabling an item means you can have a clone of it which can be active.

              2. While saving a cloned item with the same key a pop-up should come asking whether you want to disable the former item in order to have the new one with that (same) key.

              3. Items from a given template should be deletable per host.

              Thx + greetings,

              zap

              Comment

              • MrKen
                Senior Member
                • Oct 2008
                • 652

                #8
                I vote for items 1 and 2. Not so sure if 3 is do-able, considering that a template is just a template.

                Perhaps you could lodge a feature request https://support.zabbix.com/browse/ZBXNEXT

                MrKen
                Disclaimer: All of the above is pure speculation.

                Comment

                • zap
                  Junior Member
                  • Dec 2008
                  • 17

                  #9
                  I did so.
                  1 +2 alone would perfectly do the trick, right.

                  zap

                  Comment

                  Working...