Ad Widget

Collapse

SNMP Builder for Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Martins
    Junior Member
    • May 2012
    • 25

    #271
    Hello.

    I'am trying to create zabbix for catching SNMP traps, so with SNMP builder I can import mib, and conwert it to item, then with this item filter trap and with trigger send to my e-mail readable notification? I'am right or I missing something?

    Thanks.

    Comment

    • frlan
      Junior Member
      • May 2012
      • 18

      #272
      I mean to zabbix directly. Its a bit fancy to add it to zabbix installation.

      Comment

      • frlan
        Junior Member
        • May 2012
        • 18

        #273
        BTW: Not sure I did something wrong with 2.0.0 but I'm getting this into php-log:
        [01-Jun-2012 13:29:29 UTC] PHP Fatal error: Using $this when not in object context in /var/www/zabbix/api/classes/CTemplate.php on line 348

        The screen is keeping "black"

        Comment

        • Sc0rian
          Junior Member
          • Jun 2011
          • 16

          #274
          thank you for such a awesome script.

          be good if someone commited the changes into the git repo.

          Awesome though, thanks

          Comment

          • Martins
            Junior Member
            • May 2012
            • 25

            #275
            Hello.

            I want to install snmp_builder, but can't find where can download it... In forum found that https://github.com/giapnguyen/snmpbuilder version is outdated. Where I can download version for Zabbix 2.0?

            Thanks.

            Sorry, found.
            Last edited by Martins; 06-06-2012, 17:23.

            Comment

            • Martins
              Junior Member
              • May 2012
              • 25

              #276
              Hello.

              I try to create item, but after pressing "save" nothing happens. I chose template to which save item, chose mib, and enter host's IP. No errors in apache log file. Using CentOS 6.2.

              Comment

              • sire
                Senior Member
                • Jul 2010
                • 210

                #277
                Originally posted by Martins
                I try to create item, but after pressing "save" nothing happens. I chose template to which save item, chose mib, and enter host's IP. No errors in apache log file. Using CentOS 6.2.
                Hello Martins,

                Did you click at OID name (in OID Data table) for which you would like to create Zabbix item?
                Regards,
                Sergey Syreskin

                Monitored hosts: 2646 / Active items: 23604 / Server performance: 765.74

                Temporary out of Zabbix business

                Comment

                • troffasky
                  Senior Member
                  • Jul 2008
                  • 567

                  #278
                  How on earth has this managed to avoid being merged into mainline Zabbix?

                  Comment

                  • Sc0rian
                    Junior Member
                    • Jun 2011
                    • 16

                    #279
                    Originally posted by troffasky
                    How on earth has this managed to avoid being merged into mainline Zabbix?
                    I second this

                    Comment

                    • sheen
                      Junior Member
                      • Apr 2009
                      • 24

                      #280
                      Originally posted by Sc0rian
                      I second this
                      +1

                      Since a long time, I'm merging snmp builder with each new version of Zabbix.
                      It should be merged in the mainline of Zabbix, this tool is really great.

                      Comment

                      • nelteren
                        Junior Member
                        • Sep 2008
                        • 16

                        #281
                        Originally posted by Martins
                        Hello.

                        I want to install snmp_builder, but can't find where can download it... In forum found that https://github.com/giapnguyen/snmpbuilder version is outdated. Where I can download version for Zabbix 2.0?

                        Thanks.

                        Sorry, found.
                        Where did you found the 2.0 version ?

                        Comment

                        • Palmertree
                          Senior Member
                          • Sep 2005
                          • 746

                          #282
                          Originally posted by nelteren
                          Where did you found the 2.0 version ?

                          Look at thread #230. Took me a while to find it also. :-) Thank you Sire for the awesome patch.

                          Comment

                          • Sc0rian
                            Junior Member
                            • Jun 2011
                            • 16

                            #283
                            Originally posted by sire
                            Updated versions of my patches.

                            Added MIB file upload. In order to make it work, chown /usr/share/snmp/mibs (or wherever your MIBs are located) to the user id of your web server (usually it is apache, httpd, www-data). Also correct $mibs_dir in snmp_builder.php if needed.
                            If uploads fail, set upload_tmp_dir = /tmp variable in php.ini.

                            P.S. Do my patches work for you, are there any bugs/suggestions? I need your feedback.

                            Thank you for this. Works well.

                            Comment

                            • gridd
                              Junior Member
                              • Jul 2012
                              • 10

                              #284
                              Hello there!

                              Does anybody tell me where is latest version of snmp_builder.php for 1.8.5 Zabbix version? I would appreciate it very much.

                              Tnanks in advance, Alexey

                              I tried to use snmp_builder.php from #266 message of this tread, but got these errors in Information window

                              Use of undefined constant S_MIB - assumed 'S_MIB'[/usr/local/www/zabbix/snmp_builder.php:475]
                              Use of undefined constant S_SNMP_VERSION - assumed 'S_SNMP_VERSION'[/usr/local/www/zabbix/snmp_builder.php:494]
                              Use of undefined constant S_COMMUNITY - assumed 'S_COMMUNITY'[/usr/local/www/zabbix/snmp_builder.php:498]
                              Use of undefined constant S_MIB - assumed 'S_MIB'[/usr/local/www/zabbix/snmp_builder.php:501]
                              Use of undefined constant S_SNMP_BUILDER - assumed 'S_SNMP_BUILDER'[/usr/local/www/zabbix/snmp_builder.php:504]
                              Use of undefined constant S_OID_TREE - assumed 'S_OID_TREE'[/usr/local/www/zabbix/snmp_builder.php:524]
                              Use of undefined constant S_OID_DATA - assumed 'S_OID_DATA'[/usr/local/www/zabbix/snmp_builder.php:554]
                              Use of undefined constant S_CLICK_TO_FORCE_VIEW_AS_TABLE - assumed 'S_CLICK_TO_FORCE_VIEW_AS_TABLE'[/usr/local/www/zabbix/snmp_builder.php:554]
                              Last edited by gridd; 03-07-2012, 01:59.

                              Comment

                              • gridd
                                Junior Member
                                • Jul 2012
                                • 10

                                #285
                                Originally posted by sire
                                Updated versions of my patches.

                                Added MIB file upload. In order to make it work, chown /usr/share/snmp/mibs (or wherever your MIBs are located) to the user id of your web server (usually it is apache, httpd, www-data). Also correct $mibs_dir in snmp_builder.php if needed.
                                If uploads fail, set upload_tmp_dir = /tmp variable in php.ini.

                                P.S. Do my patches work for you, are there any bugs/suggestions? I need your feedback.
                                After installation of 1.8.12 patch, after clicking on 'SNMP Builder' I got in browser
                                HTTP 500 (Internal Server Error). SNMP Builder page cannot open.

                                Any suggestions?

                                Comment

                                Working...