Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rmtek
    Junior Member
    • Mar 2011
    • 1

    #166
    hi,

    same on here - installation no problem. but blank page.

    Comment

    • luis
      Junior Member
      • Mar 2011
      • 3

      #167
      [solved]

      sorry!
      it was my mistake! :-(
      i clicked cells in the first column(oid/name), but it was not correct!
      Clicking other cell everithing works fine.
      Attached Files

      Comment

      • DeDA
        Junior Member
        • Mar 2011
        • 5

        #168
        Sometimes items can not be added because the snmpget returns the same OID for them.
        For example:


        This changes allows tix them.

        In snmp_builder.php function get_oid_value:
        1. Add -Os parameter:
        PHP Code:
                // idx is number or string thank danrog
                
        if (preg_match('/^[0-9]+$/'$idx)) {
                        
        $cmd "snmpget -Os -v 2c -c $community -M ".MIBS_ALL_PATH." -m ALL $server_ip $oid.$idx";
                } else {
                        
        $cmd "snmpget -Os -v 2c -c $community -M ".MIBS_ALL_PATH." -m ALL $server_ip $oid.\"".$idx."\"";
                } 
        2. Add $MIB variable
        PHP Code:
        $MIB $_REQUEST["mib"]; 
        3. Change $row variable:
        PHP Code:
                //exampe: IP-MIB::ipOutRequests.0 = Counter32: 12303729
                
        if (preg_match('/^(\S+) = (\S+): (.+)$/i'$results$matches)) // full information
                
        {
                        
        //$row = array($matches[1], $matches[2], $matches[3]);
                        // change to:
                        
        $row = array("$MIB::$oid.$idx"$matches[2], $matches[3]);
                }
                else if (
        preg_match('/^(\S+) = (\S+):$/i'$results$matches)) //no value
                
        {
                        
        //$row = array($matches[1], $matches[2],'');
                        // change to:
                        
        $row = array("$MIB::$oid.$idx"$matches[2],'');
                }
                else if (
        preg_match('/^(\S+) = (.+)$/i'$results$matches)) //no type
                
        {
                        
        //$row = array($matches[1], '',$matches[2]);
                        // change to:
                        
        $row = array("$MIB::$oid.$idx"'',$matches[2]);
                } 
        After changes:
        Attached Files

        Comment

        • beownd
          Junior Member
          • Feb 2011
          • 25

          #169
          How can I install the SNMP builder on debian through the command line?

          Comment

          • sergitux
            Junior Member
            • Mar 2011
            • 2

            #170
            Greetings everyone I am new here.

            I just put the snmp builder (great job). I wonder if someone gives the error:

            Code:
            Can not find module (SNMPv2-SMI): At line 21 in / usr / share / snmp / mibs / txt-MIB READYNAS Can not find module (SNMPv2-SMI): At line 21 in / usr / share / snmp / mibs / READYNAS -MIB.txt
            It happens all the MIBS and I get when I select one of them.


            Sorry for my english.

            Comment

            • greenogre
              Junior Member
              Zabbix Certified Specialist
              • Oct 2010
              • 3

              #171
              "No host with hostid" error saving list to template

              Hi,

              I have SNMP-BUILDER with all the patches up to DeDA's patch above with Zabbix 1.8.4. OS is CentOS 5.5, PHP 5.1.6.

              Snmp-builder works well (mostly) in reading and selecting the OIDs to build a template. Clicking the "save" button results in a series of errors returned on the web UI, one for each item to be saved:
              "No host with hostid=[xx]"

              This "hostid" is not even similar to the template's "hostid" in the database (10239) but xx equals the index number of the template selected from the drop-down list on the snmp-builder page. No errors posted to httpd or Zabbix logs.

              From the page source html at the browser:
              "<input type="hidden" name="form_refresh" id="form_refresh" value="1" />Template:&nbsp;<select id="templateid" name="templateid" class="select" size="1">//....snip....//<option value="86" title="Template_Cisco_CCME">Template_Cisco_CCME</option> //....snip//

              I have tried to track the "templateid" var through the scripts but I'm afraid my php skills are very weak. :-(

              If any one could point me in the right direction to troubleshoot further or share a similar experience, it would be appreciated.

              regards,

              Drew

              Comment

              • Colttt
                Senior Member
                Zabbix Certified Specialist
                • Mar 2009
                • 878

                #172
                where can i download this?! install-guide?

                get it into the official zabbix-code?
                Debian-User

                Sorry for my bad english

                Comment

                • sheen
                  Junior Member
                  • Apr 2009
                  • 24

                  #173
                  Hi there,

                  I've tried snmp_builder, it's so great to browse MIB inside Zabbix (1.8.4), a real pleasure ^^

                  But I've got issues when I want to save to template, I have this message :

                  - Without DeDa modification:
                  "No host with hostid=[xx]" (Like greenogre)

                  - With DeDa modification (I've probably missmatch the patching part but I think I've exactly followed instructions : / ) :
                  {"error":"Oid is null NETASQ-VPNSA-MIB::.iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0"}

                  Any ideas please ?







                  Shad0w :

                  You can download it and follow instructions here : https://github.com/giapnguyen/snmpbuilder
                  This is not a final version, editing files for trying to get it to work is a part of the game, I prefer to inform you.
                  Last edited by sheen; 15-03-2011, 17:55.

                  Comment

                  • hannibal20
                    Junior Member
                    • Jan 2007
                    • 22

                    #174
                    regarding the "No host with hostid=[xx]" problem look at:

                    http://www.zabbix.com/wiki/howto/mon...p/snmp_builder

                    The patch in the paragraph:

                    Code:
                    In order to make “Save” in “Item List” work
                    made it work for me.

                    Comment

                    • sheen
                      Junior Member
                      • Apr 2009
                      • 24

                      #175
                      Thank you, it works great !

                      Comment

                      • Volga
                        Junior Member
                        • Apr 2011
                        • 1

                        #176
                        Problems

                        Hi!
                        Help me please. I've installed snmp_builder, red "http://www.zabbix.com/wiki/howto/monitor/snmp/snmp_builder", but still it doesn't work. My "oid tree" doesn't show any information. Could you help me please?
                        snmp_builder.php
                        I'm sorry for my bad English. I'm really need in your assistance.Please.

                        Click image for larger version

Name:	error2.JPG
Views:	1
Size:	13.8 KB
ID:	309502

                        [root@orion /]# uname -a
                        FreeBSD orion.vtt.net 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 [email protected]:/usr/obj/usr/src/sys/GENERIC i386
                        [root@orion /]# php -v
                        PHP 5.2.17 with Suhosin-Patch 0.9.7 (cli) (built: Mar 23 2011 15:09:37)
                        Copyright (c) 1997-2009 The PHP Group
                        Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
                        with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
                        [root@orion /]#

                        net-snmp-5.5_4
                        Last edited by Volga; 25-04-2011, 13:36.

                        Comment

                        • imo
                          Junior Member
                          • Apr 2011
                          • 1

                          #177
                          Hello everyone,

                          i have a question about the snmp_builder. I installed it as described and now i can't see a OID Tree or something else.



                          I dont know where the error is, because i dont get one.

                          System Data:
                          Debian 6.0.1
                          Zabbix 1.8.5
                          PHP5
                          Net-SNMP 5.4.3

                          I hope you can help me or point me any error i do.

                          Thanks and Regards
                          imo

                          PS: Sry for my bad english

                          Comment

                          • tothz
                            Junior Member
                            • Apr 2010
                            • 7

                            #178
                            Check patch on zabbix documentation side, or read whole thread..
                            some pages before there ara link..


                            regards,
                            zoltan

                            Comment

                            • captaincarisma
                              Junior Member
                              • Mar 2011
                              • 16

                              #179
                              when I click on save get this message
                              Last edited by captaincarisma; 04-05-2011, 14:05.

                              Comment

                              • captaincarisma
                                Junior Member
                                • Mar 2011
                                • 16

                                #180
                                Originally posted by captaincarisma
                                when I click on save get this message
                                help me please!!!

                                Comment

                                Working...