Ad Widget

Collapse

Mass Disabling items, triggers created by Low Level Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thensel
    Junior Member
    • Jun 2012
    • 8

    #1

    Mass Disabling items, triggers created by Low Level Discovery

    Hi,

    using zabbix 3.0 I monitor a switch by using the Template SNMP Device.
    Multiple Items ans Triggers are created by the discovery rules. Especially everything to the network interfaces.

    Now I want to mass disable multiple triggers.
    I am not able to select them via the checkbox. I need to manually disable every of them by clicking on the "enabled" in the status column. Which is very boring with 262 items....

    Is there a way to mass disable Triggers an Items created by a LLD?

    Thanks!
  • unficyp
    Junior Member
    • Dec 2014
    • 27

    #2
    for all created triggers or only for a specific host ?

    Just checked it - i can mass disable triggers in either the host trigger page or the trigger prototypes page in the template config. there is a button "disable" on the bottom of the list.

    Comment

    • thensel
      Junior Member
      • Jun 2012
      • 8

      #3
      I want to disable triggers/items ob one specific host.

      Yes, there is a button "disable". But the checkboxes at the items are inactive so I cannot check them.

      I have added a screenshot so you can see the inactive checkboxes at the items created by lld
      Attached Files

      Comment

      • unficyp
        Junior Member
        • Dec 2014
        • 27

        #4
        Oh sorry, i over read the LLD.

        Since you can disable them by hand on the right side clicking "Enabled" but not with mass update, i guess this is a bug.

        Comment

        • incama
          Member
          • Jan 2015
          • 65

          #5
          Using zabbix 3.0.6 this issue is still present. Is there a workaround for this?

          Comment

          • Semiadmin
            Senior Member
            • Oct 2014
            • 1625

            #6
            Originally posted by incama
            Using zabbix 3.0.6 this issue is still present. Is there a workaround for this?
            Yes. Zabbix 3.2.

            Comment

            • incama
              Member
              • Jan 2015
              • 65

              #7
              Originally posted by Semiadmin
              Yes. Zabbix 3.2.
              Yes, but 3.2 is not a LTS release and not yet present in the opensuse repositories. Even if I wanted I can't just run an update in our production envirement. It takes planning and time.

              Comment

              • troffasky
                Senior Member
                • Jul 2008
                • 567

                #8
                Originally posted by incama
                Using zabbix 3.0.6 this issue is still present. Is there a workaround for this?
                Firefox extension "Web Developer Toolbar": Forms > Enable Form Fields.

                Comment

                • incama
                  Member
                  • Jan 2015
                  • 65

                  #9
                  Originally posted by troffasky
                  Firefox extension "Web Developer Toolbar": Forms > Enable Form Fields.
                  Thank you! Works like a charm

                  Comment

                  • RCMarco
                    Junior Member
                    • Jul 2016
                    • 1

                    #10
                    Wow, thanks a lot for the extension.
                    Works great, who would have thought!

                    Comment

                    • samirfor
                      Junior Member
                      • May 2017
                      • 1

                      #11
                      Javascript snippet, just run in console:

                      Code:
                      var inputs = document.getElementsByTagName('input')
                      
                      for(var i = 0; i < inputs.length; i++) {
                          if(inputs[i].type.toLowerCase() == 'checkbox') {
                              inputs[i].disabled = false; // enable all items
                              inputs[i].checked = true; // check all items
                          }
                      }
                      
                      var buttons = document.getElementsByTagName('button')
                      
                      for(var i = 0; i < buttons.length; i++) {
                          if(buttons[i].type.toLowerCase() == 'submit') {
                              buttons[i].disabled = false; // enable buttons
                          }
                      }

                      Comment

                      • onallion
                        Senior Member
                        • Mar 2016
                        • 131

                        #12
                        By now, you should upgrade to 3.2

                        Comment

                        Working...