Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patjking
    Junior Member
    • Jun 2012
    • 22

    #346
    Make sure you have all supporting Mibs for FET-MIB in the same folder and then try:

    chown –hR www-data /usr/locale/share/snmp/mibs


    could be just be a permission thing on the supporting mibs

    Comment

    • sersad
      Senior Member
      • May 2009
      • 518

      #347
      I made a mistake in the ip
      it worked sorry))))

      Comment

      • G3r0m3G
        Junior Member
        • Dec 2012
        • 16

        #348
        Hello everybody,

        I have installed snmp builder with 2.0.0 patch. The OID Tree work well and I can see the MIB but when I put an IP address and select an OID I don't see anymore on OID Data, like this :





        And I don't have any error messages in httpd

        Could you help me ?

        Thank you in advance,

        G3r0m3G

        Comment

        • atimonin
          Junior Member
          • Jun 2012
          • 10

          #349
          Originally posted by innocent
          anyone who has the installation steps for snmp-builder on zabbix 2.0.2?
          Just have a look at
          snmpbuilder addon for zabbix. Contribute to atimonin/snmpbuilder development by creating an account on GitHub.

          Comment

          • atimonin
            Junior Member
            • Jun 2012
            • 10

            #350
            Originally posted by G3r0m3G
            Hello everybody,

            I have installed snmp builder with 2.0.0 patch. The OID Tree work well and I can see the MIB but when I put an IP address and select an OID I don't see anymore on OID Data, like this :



            And I don't have any error messages in httpd

            Could you help me ?

            Thank you in advance,

            G3r0m3G
            Please try in console:

            snmpget -v2c -c public 10.x.x.x NTAPP-MIB:roductType

            What it prints out?

            Comment

            • G3r0m3G
              Junior Member
              • Dec 2012
              • 16

              #351
              Hello aitmonin,

              With your command, I have :

              snmpget -v2c -c public IPADDRESS NETAPP-MIB:: productType
              NETAPP-MIB:: productType = No Such Instance currently exists at this OID

              But if I launch with snmpwalk it's OK, examples :

              snmpwalk -v 2c -c public IPADDRESS NETAPP-MIB:: cfPartnerName
              NETAPP-MIB:: cfPartnerName.0 = STRING: "FRFS108"

              or

              snmpwalk -v 2c -c public IPADDRESS NETAPP-MIB:: productType
              NETAPP-MIB:: productType.0 = INTEGER: pciBased(2)

              AND I have read this post on another monitoring plateform (http://community.zenoss.org/message/51602?tstart=0)

              for this command is :

              snmpwalk -v 2c -c public 10.13.137.4 NETAPP-MIB:: cfPartnerName
              NETAPP-MIB::cfPartnerName.0 = STRING: "FRFS108"

              snmpget -v 2c -c public 10.13.137.4 NETAPP-MIB:: cfPartnerName.0
              NETAPP-MIB::cfPartnerName.0 = STRING: "FRFS108"

              The modification on request is just .0 to add on snmpget command and it's works... why ?

              What do you think of that ?

              PS : I insert a space key between :: and the mib entry because the forum take that for a smile xD

              Thank you for your support
              Last edited by G3r0m3G; 21-12-2012, 12:04.

              Comment

              • atimonin
                Junior Member
                • Jun 2012
                • 10

                #352
                Originally posted by G3r0m3G
                Hello aitmonin,

                With your command, I have :

                snmpget -v2c -c public IPADDRESS NETAPP-MIB:: productType
                NETAPP-MIB:: productType = No Such Instance currently exists at this OID

                But if I launch with snmpwalk it's OK, examples :

                snmpwalk -v 2c -c public IPADDRESS NETAPP-MIB:: cfPartnerName
                NETAPP-MIB:: cfPartnerName.0 = STRING: "FRFS108"

                or

                snmpwalk -v 2c -c public IPADDRESS NETAPP-MIB:: productType
                NETAPP-MIB:: productType.0 = INTEGER: pciBased(2)

                AND I have read this post on another monitoring plateform (http://community.zenoss.org/message/51602?tstart=0)

                for this command is :

                snmpwalk -v 2c -c public 10.13.137.4 NETAPP-MIB:: cfPartnerName
                NETAPP-MIB::cfPartnerName.0 = STRING: "FRFS108"

                snmpget -v 2c -c public 10.13.137.4 NETAPP-MIB:: cfPartnerName.0
                NETAPP-MIB::cfPartnerName.0 = STRING: "FRFS108"

                The modification on request is just .0 to add on snmpget command and it's works... why ?

                What do you think of that ?

                PS : I insert a space key between :: and the mib entry because the forum take that for a smile xD

                Thank you for your support

                I think it's my mistake, usually you should add .0 to the end of OID (exept snmpwalk and snmptable commands).
                See "man snmpcmd" if you want more info.

                Do'n insert blank between NETAPP-MIB:: and OID, I can't say for shure why and how it works for you.

                BTW, I see you have FR translation for snmpbuilder? You've done it yurself?

                Comment

                • G3r0m3G
                  Junior Member
                  • Dec 2012
                  • 16

                  #353
                  BTW, I see you have FR translation for snmpbuilder? You've done it yurself?
                  No I have installed the SNMP Builder with patch but no translation ^_^.

                  Do'n insert blank between NETAPP-MIB:: and OID, I can't say for shure why and how it works for you.
                  I insert a space key between :: and the mib entry because the forum take that for a smile in this forum

                  But I have replaced snmpget by snmpwalk in snmpbuilder.php but I can't view OID Data too . Do you have another solution ?

                  Thank you

                  Comment

                  • Todd
                    Junior Member
                    • Jan 2013
                    • 1

                    #354
                    Excellent work on building something like this for Zabbix, and for all the updates (giapnguyen, sire, atimonin, etc.). I'm at Zabbix 2.0.4 and ran in to some of the issues reported earlier. On Ubuntu after using the snmp-mibs-downloader package I noticed my MIB's were a bit scattered as reported here: http://web.archiveorange.com/archive...Tn2UdbyjNoRJ4K

                    I ended up consolidating all of my MIB's to: /var/lib/mibs/ietf/ and just symlinked /usr/share/snmp/mibs to that location. After setting that path up in snmp_builder.php and setting permissions properly it still wasn't populating the drop down. I had to convert the filenames to use .MIB instead of -MIB doing this and I converted everything to lower case:
                    rename s/"-MIB"/".mib"/g *-mib
                    for i in *; do mv -f "$i" `echo "$i" | tr A-Z a-z`; done

                    I'm sure that could have been done with rename as well, but that for loop works fine. After doing that it fixed the MIB dropdown issue, and the OID tree started to work properly. However, the information section and the "Items list" still aren't populating though (attached). No errors are being tossed in the Zabbix logs, the SNMP commands all seem to work fine via the command line, www-data (apache) has access to run them all, Firebug isn't showing any missing files when that page is accessed, and I've double checked the patch values to make sure those were applied properly.

                    I noticed the wiki and older posts reference a Tree.js, but since that wasn't a part of atimonin's patch I assume that's an old reference. I'll dive in to the PHP more deeply shortly, but I wanted to post here in case anyone else has encountered these issues.
                    Attached Files

                    Comment

                    • Scorpey
                      Member
                      • Oct 2010
                      • 97

                      #355
                      Server Ubuntu 12.10
                      Zabbix 1.8.11

                      I install snmp_builder
                      but if i connect snmp
                      I have no Oid Tree

                      Comment

                      • kot_vaska
                        Junior Member
                        • Jan 2012
                        • 13

                        #356
                        Originally posted by sire
                        Hi all,

                        I have slightly updated SNMP Builder code.

                        New features:
                        • Zabbix 1.8.x internationalization support;
                        • Changed some interface labels;
                        • OID tree and Information screen elements are a bit wider now;
                        • Changed OID selection color to something blueish;
                        • "Clear" button clears OID selections;
                        • Selectable SNMP version: 1 or 2c;
                        • SNMP host port can be specified in host address field as 192.168.1.1:8161;
                        • SNMP host's port is saved in items being created;
                        • Support of new SNMP data types: INTEGER32, Unsigned32, Counter64;
                        • Automatic selection of units and delta mode for if(In|Out)Octets and if(HCIn|HCOut)Octets OIDs;
                        • Polling interval, keep history and keep trends item parameters can be specified by user;
                        • Create graphs for numeric OIDs.


                        Installation Instructions
                        1. You need a clean Zabbix installation with no previous versions of SNMP Builder installed. Otherwise you should either uninstall old SNMP Builder or change my patch file.
                        2. Change directory to your web root or where your Zabbix frontend files leave. For me it is /usr/share/zabbix.
                        3. Apply patch by issuing command zcat snmpbuilder.diff.gz |patch -p1
                        4. Untar SNMP Builder image files from snmpbuilder_imgs.tar.gz to /usr/share/zabbix/snmp_builder/imgs or where your Zabbix frontend leaves.
                        Can anyone please help me with this? I cannot even install the thing and I'm completely puzzled.

                        I'm running clean Zabbix 1.8.11 frontend installed from packages on:
                        Linux zabbix 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
                        (Ubuntu 12.04.1 LTS)

                        I put snmpbuilder.diff.gz in /usr/share/zabbix where my zabbix frontend resides and run
                        " sudo zcat snmpbuilder.diff.gz |patch -p1"
                        However, i'm getting this back:
                        vas$: sudo zcat snmpbuilder.diff.gz |patch -p1
                        patching file include/locales/en_gb.inc.php
                        Hunk #1 FAILED at 2499.
                        patch: **** Can't create file include/locales/en_gb.inc.php.orig : Permission denied
                        How is this possible, I'm running it as root!

                        lsattr|grep include
                        -------------e- ./include

                        cd include

                        lsattr|grep locales
                        -------------e- ./locales
                        If I manually run "sudo touch en_gb.inc.php.orig" the file is created. But even if I try to apply the patch with the file created, it gives me the same error.

                        What is happening does anyone have any thoughts?
                        Last edited by kot_vaska; 17-01-2013, 22:05.

                        Comment

                        • richlv
                          Senior Member
                          Zabbix Certified Trainer
                          Zabbix Certified SpecialistZabbix Certified Professional
                          • Oct 2005
                          • 3112

                          #357
                          Originally posted by kot_vaska
                          " sudo zcat snmpbuilder.diff.gz |patch -p1"
                          ah, this one was cute enough, can't pass it

                          pipe creates a subshell. in this case you run zcat as root... but patch as the normal user. overall i'd say running and managing all that as root is a bit excessive, but using sudo for "patch" instead of "zcat" should help, at least for a moment
                          Zabbix 3.0 Network Monitoring book

                          Comment

                          • kot_vaska
                            Junior Member
                            • Jan 2012
                            • 13

                            #358
                            Thanks! I have installed it, finally.

                            But now it's throwing multiple MIB parse errors at me whenever I try to click on a table (ifTable here) and if I click on one of the loaded values, I get another warning:

                            P.S. Clicking on a single OID in the list (like SysDescr) works fine and displays no errors.

                            ???
                            Installing SNMP Builder is very hard.
                            Attached Files
                            Last edited by kot_vaska; 18-01-2013, 20:01.

                            Comment

                            • kot_vaska
                              Junior Member
                              • Jan 2012
                              • 13

                              #359
                              Okay, I got it sorted out. Just removed the following MIBs altogether:

                              IPSEC-SPD-MIB
                              IPSEC-SPD-MIB
                              IPATM-IPMC-MIB
                              IANA-IPPM-METRICS-REGISTRY-MIB
                              SNMPv2-PDU
                              Now tables are rendered correctly, however... (I knew this wasn't going to be easy )

                              The "Save" button does not work. When I click on it, nothing happens (and I make sure to choose an item in the table to save).

                              Any ideas? Gonna check Postgresql log.

                              [Upd]: nothing there...
                              [Upd2]: However I'm getting something in apache logs:
                              ifAdminStatus: Unknown Object Identifier (Sub-id not found: (top) -> ifAdminStatus)
                              Whenever I choose an item in the table to save.
                              [Upd3]: When I try to save SysDescr to a template, nothing is written to the apache log but saving does not occur anyway. So this probably isn't related.
                              Last edited by kot_vaska; 18-01-2013, 21:25.

                              Comment

                              • kot_vaska
                                Junior Member
                                • Jan 2012
                                • 13

                                #360
                                Okay, I've got it working. This post totally helped:

                                Comment

                                Working...