Ad Widget

Collapse

Install patch ZBXNEXT-2301

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • evertonbernardi
    Junior Member
    • Sep 2014
    • 10

    #1

    Install patch ZBXNEXT-2301

    Hello.

    I'm having problems with bulk SNMP after the update to the 2.2.6 version.
    I found the patch ZBXNEXT-2301 that would solve this issue, but I can't see how to install it on my server.

    I've tried installing the patch with the command "patch < filename.patch", but I receive a message asking for which file should be patched and I don't have this info.


    Can anybody help me?


    Kind Regards!

    Everton Bruno Bernardi
  • alisson
    Member
    Zabbix Certified Specialist
    • Nov 2009
    • 70

    #2
    just curious, that kind of problem you have with Bulk SNMP?

    basically, to apply this patch you need enter in directory of source and apply the patch only in file tha will be modified (keeping in mind the patch and source are on ~ of user), example:
    cd zabbix-2.2.6
    patch src/libs/zbxdbcache/dbconfig.c ../no-snmp-bulk-in-2.2.6.patch
    __________________
    --
    Alisson Oliveira
    [url]www.zabbix.com.br[/url]
    [url]www.unirede.net[/url]
    Porto Alegre - RS - Brasil

    Comment

    • evertonbernardi
      Junior Member
      • Sep 2014
      • 10

      #3
      Hello Alisson.

      First of all thank you so much for your reply! The problems I'm having are related to our LAN network switches from HP. They don't support bulk SNMP (at least with their default setting) and I need to collect important info on them.

      I'm sorry if this is a newbie question but regarding the patch I don't have the file /src/libs/zbxdbcache/dbconfig.c
      Is this path correct?


      Regards.

      Everton

      Comment

      • alisson
        Member
        Zabbix Certified Specialist
        • Nov 2009
        • 70

        #4
        Don't use the first /, because don't is the absolute path, but relative to your directory zabbix-2.2.6 (current). use src/libs/zbxdbcache/dbconfig.c
        __________________
        --
        Alisson Oliveira
        [url]www.zabbix.com.br[/url]
        [url]www.unirede.net[/url]
        Porto Alegre - RS - Brasil

        Comment

        • alisson
          Member
          Zabbix Certified Specialist
          • Nov 2009
          • 70

          #5
          I was thinking about the problem of bulk, I guess that you are using SNMPv1, that does not support SNMPBulkget. Try to use SNMPv2 in your tests and/or enable v2 on your switch HP.
          __________________
          --
          Alisson Oliveira
          [url]www.zabbix.com.br[/url]
          [url]www.unirede.net[/url]
          Porto Alegre - RS - Brasil

          Comment

          • evertonbernardi
            Junior Member
            • Sep 2014
            • 10

            #6
            Originally posted by alisson
            Don't use the first /, because don't is the absolute path, but relative to your directory zabbix-2.2.6 (current). use src/libs/zbxdbcache/dbconfig.c
            Hello Alisson,

            What I tried to say in my previous reply was that I can't find the file dbconfig.c in my Zabbix install so I guess the patch won't be applied as the destination file doesn't exist. Can you please help me find this file or point me to the right direction?


            Originally posted by alisson
            I was thinking about the problem of bulk, I guess that you are using SNMPv1, that does not support SNMPBulkget. Try to use SNMPv2 in your tests and/or enable v2 on your switch HP.
            The SNMP V2 was already enabled. For precaution I disabled SNMP V1 on the switches I'm testing but the problem persists. In Zabbix the SNMP items for these switches are shown as "Not supported" (snmp_parse_oid(): cannot parse OID "SNMPv2-MIB::sysUpTime.0")


            Thanks for your attention.

            Everton
            Last edited by evertonbernardi; 03-09-2014, 16:53. Reason: Error correction

            Comment

            • alisson
              Member
              Zabbix Certified Specialist
              • Nov 2009
              • 70

              #7
              Do you post /src/libs/zbxdbcache/dbconfig.c, but the correct is src/libs/zbxdbcache/dbconfig.c. See the diference between the first slash.

              See:
              /src/libs/zbxdbcache/dbconfig.c is different of:
              src/libs/zbxdbcache/dbconfig.c

              Do you tried using snmpget on command line? it seems like you have a error on snmp installed in your server.

              What OS do you use? On Ubuntu, for example, is needed install package snmp-mibs-downloader
              __________________
              --
              Alisson Oliveira
              [url]www.zabbix.com.br[/url]
              [url]www.unirede.net[/url]
              Porto Alegre - RS - Brasil

              Comment

              • evertonbernardi
                Junior Member
                • Sep 2014
                • 10

                #8
                Originally posted by alisson
                Do you post /src/libs/zbxdbcache/dbconfig.c, but the correct is src/libs/zbxdbcache/dbconfig.c. See the diference between the first slash.

                See:
                /src/libs/zbxdbcache/dbconfig.c is different of:
                src/libs/zbxdbcache/dbconfig.c

                Do you tried using snmpget on command line? it seems like you have a error on snmp installed in your server.

                What OS do you use? On Ubuntu, for example, is needed install package snmp-mibs-downloader
                Alisson,

                Our Zabbix server is installed on Ubuntu 14.04 and I'm able to get an answer with the command snmpget from WITHIN the Zabbix server as you can see bellow:

                root@srvzabbix01:~# snmpget -c public -v2c -Cf 10.10.10.10 SNMPv2-MIB::sysUpTime.0
                SNMPv2-MIB::sysUpTime.0 = Timeticks: (2889387723) 334 days, 10:04:37.23


                Even with the 'standalone' SNMP working, Zabbix still shows the SNMP items as 'Not supported'.

                ---
                Regarding the patch application:
                Suppose the patch file is in the /tmp/patch/ and I run the command "patch < no-snmp-bulk-in-2.2.6.patch".

                root@srvzabbix01:/tmp/patch/# patch < no-snmp-bulk-in-2.2.6.patch
                can't find file to patch at input line 5
                Perhaps you should have used the -p or --strip option?
                The text leading up to this was:
                --------------------------
                |Index: src/libs/zbxdbcache/dbconfig.c
                |================================================= ==================
                |--- src/libs/zbxdbcache/dbconfig.c (revision 48624)
                |+++ src/libs/zbxdbcache/dbconfig.c (working copy)
                --------------------------
                File to patch:

                What should I input in "File to patch"?


                All the best.

                Comment

                • alisson
                  Member
                  Zabbix Certified Specialist
                  • Nov 2009
                  • 70

                  #9
                  Let's come back...

                  You need download the zabbix source, unpack, enter in directory and apply the patch.
                  For example:
                  wget http://downloads.sourceforge.net/pro...x-2.2.6.tar.gz
                  tar xzf zabbix-2.2.6.tar.gz
                  cd zabbix-2.2.6
                  patch -p0 < /tmp/patch/no-snmp-bulk-in-2.2.6.patch

                  After you will nedd compile zabbix using the configure script.

                  __________________
                  --
                  Alisson Oliveira
                  A Unirede é especialista coleta de dados e monitoramento. Conheça as vantagens de um ambiente de TI saudável, disponivel, eficiênte e de alta performance.

                  Porto Alegre - RS - Brasil
                  __________________
                  --
                  Alisson Oliveira
                  [url]www.zabbix.com.br[/url]
                  [url]www.unirede.net[/url]
                  Porto Alegre - RS - Brasil

                  Comment

                  • evertonbernardi
                    Junior Member
                    • Sep 2014
                    • 10

                    #10
                    Correct..

                    It started becoming more complicated than I tought it would..
                    I think I'll bring up the old Zabbix server (version 2.2.2) back online and wait for the release of the final version with this feature added. I don't feel confident to execute this process without doing any harm to my environment.

                    Thank you very much for all your patience and help Alisson!

                    Everton

                    Comment

                    Working...