Ad Widget

Collapse

Unable to delete hosts or unlink templates after discovery...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alfista
    Senior Member
    • Mar 2017
    • 136

    #31
    Hi Aigars,

    its the same device its Dell EMC Isilon, but its build from 3 separate devices (all are the same).
    BUt still understand why, when I had installed Zabbix 3.4.5 and used preinstaled template it was showing me only the corect amount of items, this one find so lot of it.

    And the discovery doesnt work. Nothings was found.

    OK understand so, I will add there only the needed.

    Thanks.
    Last edited by Alfista; 13-06-2018, 08:46.

    Comment

    • aigars.kadikis
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2018
      • 208

      #32
      The template just works fine. Just loaded this small device with your dump provided and values appear as expected I guess.
      Click image for larger version  Name:	nas.png Views:	1 Size:	324.6 KB ID:	360220

      Click image for larger version  Name:	latest-values.png Views:	1 Size:	303.4 KB ID:	360221

      If this template is not working on your 192.168.54.241 then there is something wrong with 'net-snmp' package or its dependencies.
      [ATTACH]n360281[/ATTACH]

      Regards,
      Last edited by aigars.kadikis; 13-06-2018, 16:05.

      Comment

      • Alfista
        Senior Member
        • Mar 2017
        • 136

        #33
        Hi Aigars,

        I have added the template and let run the discovery for some hours but nothing.
        I dont understand it. When I use the templates preinstaled in Zabbix, the discovery works perfekt, but your templates will not work.

        And sorry I have make an mistake. I have sent you data from a wrong device. The sent data was a normal Win 7 Pro PC.
        Now I have attached the data fron the NAS Storage: vnas2.zip
        I start your template on the PC from which I have sent you the data. Will see if it will work there.

        Thanks.

        Comment

        • aigars.kadikis
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2018
          • 208

          #34
          Just a little side topic in your apache2/error.log. Can you explain line:
          Code:
           MIB search path: /var/www/html/zabbix/snmp_builder/mibs:/usr/share/snmp/mibs
          Are you using this 'snmp_builder'? Is it working well?

          How much MIB files you have inside '/usr/share/snmp/mibs'.
          Plese show the configuration inside '/etc/snmp/snmp.conf'

          Comment

          • aigars.kadikis
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Mar 2018
            • 208

            #35
            A little bit it is working:
            Custom-Storage-Discovery-2.xml

            2000 items discovered.

            Comment

            • Alfista
              Senior Member
              • Mar 2017
              • 136

              #36
              Hi Aigars,

              yes I use SNMP Builder.
              After some changings it is working but it has some bugs or things which are needed to improve.
              I have there all downloaded mibs with mib downloader and also I have there add about 20 my MIBs.

              Code:
              # As the snmp packages come without MIB files due to license reasons, loading
              # of MIBs is disabled by default. If you added the MIBs you can reenable
              # loading them by commenting out the following line.
              mibs :
              mibs +ISILON-MIB
              mibs +ISILON-TRAP-MIB
              mibs +LSI-MegaRAID-SAS-MIB
              mibs +NET-SNMP-EXTEND-MIB
              mibs +SUPERMICRO-HEALTH-MIB
              mibs +SUPERMICRO-SMI
              mibs +SYNOLOGY-DISK-MIB
              mibs +SYNOLOGY-ISCSILUN-MIB
              mibs +SYNOLOGY-RAID-MIB
              mibs +SYNOLOGY-SERVICES-MIB
              mibs +SYNOLOGY-SMART-MIB
              mibs +SYNOLOGY-SPACEIO-MIB
              mibs +SYNOLOGY-STORAGEIO-MIB
              mibs +SYNOLOGY-SYSTEM-MIB
              mibs +SYNOLOGY-UPS-MIB
              I have downloaded the new template and set it. Will look what the discovery will find.

              Comment


              • Alfista
                Alfista commented
                Editing a comment
                This template work and has added 2202 items :-) on the storage.
                And now are there also same calculated items unsuported (division by zero). Will see if this lost with more added data.

                What you have changed that it now works?
                Last edited by Alfista; 14-06-2018, 11:31.
            • aigars.kadikis
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Mar 2018
              • 208

              #37
              Hi,

              Mainly the {#STORAGE_TYPE} filter has been removed.
              I guess all calculated items should be supported by now.

              Regards,

              Comment

              • Alfista
                Senior Member
                • Mar 2017
                • 136

                #38
                Hi Aigars,

                OK and this has made so many problems??
                Still are there the calculated items with Error - divide by zero (Mostly are it the MALLOC:xxx storages - Total space is 0). But this isn't a so big problem. The main problem is that it makes so many items ... And the filter for items with 0 size doesn't work.

                Thnaks.

                Comment


                • Alfista
                  Alfista commented
                  Editing a comment
                  Please can you help me to reduce the finded items, that I can use it?
                  Thanks.
              • aigars.kadikis
                Senior Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Mar 2018
                • 208

                #39
                The RegEx works just fine which will take everything that is bigger than 0:
                Code:
                snmpwalk -v2c -cdevice1 127.0.0.1:1024 1.3.6.1.2.1.25.2.3.1.6 | grep -v "INTEGER: 0" | wc -l
                snmpwalk reports 366*6=2196 + 5 general items = pretty much the same situation than Zabbixbix.

                to choose something bigger than 0 I tested with:
                Code:
                [1-9]([1-9]+){6,99}
                which will scope only SpaceUsed:
                Code:
                437953641
                2147765
                1994535
                3231377
                2331188
                2785561
                2216884
                3197249
                3927619
                9*6 + 5 = 59 items

                You can increase the item count by moving backwards:
                Code:
                [1-9]([1-9]+){5,99}
                [1-9]([1-9]+){4,99}
                ..
                Kind Regards,
                Aigars


                Comment

                • Alfista
                  Senior Member
                  • Mar 2017
                  • 136

                  #40
                  Hi Aigars,

                  If understand corectly I only need to play with the filter parameters:
                  Code:
                  [1-9]([1-9]+){6,99}
                  and specialy withe first number in {}?

                  What is the parameter wc -1 in the snmpwalk command?

                  By the way the snmpwalk on localhost (127.0.0.1) doesnt work by me. I cant find why, I have only time out.

                  Thanks.

                  Comment

                  • aigars.kadikis
                    Senior Member
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Mar 2018
                    • 208

                    #41
                    That is right. You need to play with the Filter parameters in the discovery rule.

                    'wc -l' just counts the lines. Symbol after the dash is lowercase L, not number 1. The command just counts the lines.
                    IP address and community name (-c device1) needs to be replaced in your scenario. Yeah, you need to replace 127.0.0.1:1024 with your 192.168.51.241. Port is not needed.

                    about what results will be retrieved you can easily test in https://regex101.com/. just paste on the top this '[1-9]([1-9]+){6,99}' and in the second filed write a bunch of numbers each one in a separate line like:
                    Code:
                    1
                    43
                    233
                    3212
                    0
                    43234
                    478656
                    9877665
                    78676543
                    678446774
                    Everything that is coloured will be passed forward (to create item in Zabbix).

                    Comment

                    • Alfista
                      Senior Member
                      • Mar 2017
                      • 136

                      #42
                      Hi Aigars,

                      thanks for help. It reduced a lot of items. Now I have aroud 200.

                      I have tested it, but still have there items which has 0 and they aren't calculated items. It is by Total Space.
                      I have this filter applied to the memory discovery rule (added to the origal two filters with or/and) in original template and find that it doesnt shows the main memory.
                      Please can you help me what I have make wrong?
                      And how is possible to set that the discovery rule set correct name for memory and not #xxx where xxx is number?

                      Thanks.
                      Last edited by Alfista; 09-07-2018, 12:08.

                      Comment


                      • Alfista
                        Alfista commented
                        Editing a comment
                        I have do many test with the filters as you told me in the original Template Module HOST-RESOURCES-MIB SNMPv2 - memory Discovery, but I dint fully understand it.
                        When I have the last end {6,99} have there less items but I miss there the main memory, when I give there {5,99} I have there main disk storage but not the main memory and I have there still the two first filter rules to filter it only on memory items ...
                        And what is interesting, in Storage discovery rule wasnt find anything. The disk storage is in Memory discovery rule and its size is as on all storage nodes together, as it should be.

                        Have you some ideas how to improve it, that it find all corectly and the show names are also correct and not only #xxx?

                        Thanks.
                        Last edited by Alfista; 11-07-2018, 11:53.
                    • Alfista
                      Senior Member
                      • Mar 2017
                      • 136

                      #43
                      Hi,

                      I have moved to the latest Yabbix 4.0 and this filter parameter {#STORAGE_USED} = [1-9]([1-9]+){4,99} will not work corectly, even set same as in release 3.4.
                      After I give this parameters to the discovery filter, then I dont receive any items.

                      Please cany you help me what I do wrong, or what is needed to repair that it work Zabbix 4.

                      Thanks.

                      Comment

                      Working...