Ad Widget

Collapse

SNMP in Zabbix 2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #46
    try to increase Timeout in your zabbix_proxy.conf file
    I use:
    Code:
    Timeout=30
    Sincerely yours,
    Aleksey

    Comment

    • Ishan
      Member
      • May 2013
      • 40

      #47
      Hello Aib

      Thanks for your information, Its really useful.

      I applied the triggers as same you given but i got an error message, then i was just putting the host name at the beginning to fix it.

      I applied the timeout on my zabbix_server .conf file, i don't have proxy.

      One question- Are you getting trap messages from Audio codes and which trap method you are using in your infrastructure.

      Thanks
      Ishan

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #48
        Well, Ishan.
        As I told you before I don't have any Audio codecs.
        All information which I gave to you is just a general knowledge about SNMP.

        Sorry.

        PS In my Zabbix infrastructure I use SNMP (no traps), Zabbix agent's (Active & Passive), Simple checks, scripts - almost every type of checks for different devices.
        Sincerely yours,
        Aleksey

        Comment

        • ouamly
          Member
          • Mar 2014
          • 84

          #49
          zabbix and Oracle

          Hello,

          i'm working on zabbix server 2.2.2. How can i do to monitor the oracle databases? Where can i find the template for this? or what plugin for this?

          Thank you

          Comment

          • aib
            Senior Member
            • Jan 2014
            • 1615

            #50
            You have some different option.
            Use the scripts/applications which already created by someone else:
            - orabbix - http://www.smartmarmot.com/product/orabbix/ - from Zabbix Cookbook
            - Check_ora - http://www.smartmarmot.com/product/check_ora/
            - https://www.zabbix.com/forum/showthread.php?t=5003 - Zabora

            Create your own scripts/checks/selects.

            It depends on complexity of your Database and your metrics.
            Sincerely yours,
            Aleksey

            Comment

            • ouamly
              Member
              • Mar 2014
              • 84

              #51
              thank you

              Comment

              • ouamly
                Member
                • Mar 2014
                • 84

                #52
                Hello,

                I am currently working on zabbix 2.2.2 and I would like to know, how to monitor applications: Apache, IIS, Exchange and MySQL via SNMP? would there be templates for this purpose? Otherwise, How?

                thank you

                Comment

                • Ishan
                  Member
                  • May 2013
                  • 40

                  #53
                  Hello Aib

                  Thanks for you reply.

                  I found some templates from https://github.com/jjmartres/Zabbix/.../zbx-templates, and they have audiocodes template as well. but i am using the procedure which you provided to me.

                  I would like to map that cisco template which is giving more information and triggers as matching my requirement.
                  While i was trying to install that component like ruby, rubygems and snmp, i got some issues with error messages. installed ruby via the rvm and i changed the script of ifspeed to /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/ruby file path because ruby installed in that through rvm. below errors in the zabbix_server.log

                  /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- snmp (LoadError)
                  from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
                  from /usr/lib/zabbix/externalscripts/if.speed:24:in `<main>'
                  /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- snmp (LoadError)
                  from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
                  from /usr/lib/zabbix/externalscripts/if.speed:24:in `<main>'
                  /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- snmp (LoadError)
                  from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
                  from /usr/lib/zabbix/externalscripts/if.speed:24:in `<main>'

                  Please if you can help me to fix this issue.

                  Thanks in Advance.
                  Ishan

                  Comment

                  • aib
                    Senior Member
                    • Jan 2014
                    • 1615

                    #54
                    Did you install all packages which script require?
                    Code:
                    Requirements
                    
                    This script was tested for Zabbix 2.0.0 or higher.
                    Ruby 1.8.7
                    
                    This script require Ruby 1.8.7 or higher.
                    RubyGems 1.8
                    
                    This script require RubyGems 1.8 or higher.
                    [B]SNMP 1.1.0
                    
                    This script require SNMP gem 1.1.0 or higher.[/B]
                    Sincerely yours,
                    Aleksey

                    Comment

                    • Ishan
                      Member
                      • May 2013
                      • 40

                      #55
                      Hello Aib

                      When i am installing Ruby and rubygems it's installing fine, but when i am trying to update the gem example, gems --update, it was given some errors,
                      Then i installed the rvm ruby and gems package, thats also given the error as mentioned earlier.

                      Thanks,
                      Ishan

                      Comment

                      • aib
                        Senior Member
                        • Jan 2014
                        • 1615

                        #56
                        In your first message I saw errors about SNMP
                        I looked on Requirements for script and find out that not only Ruby and RubyGem have to be installed but also "SNMP gem"

                        I asked you if you install all packets, especially "bolded" SNMP gem.

                        Do you mind to check if you install it or not?
                        Sincerely yours,
                        Aleksey

                        Comment

                        • Ishan
                          Member
                          • May 2013
                          • 40

                          #57
                          Hello Aib

                          I have installed the snmp gem, version is 1.1.1, I would like to know the command to installed all packets on cent OS as you mentioned above.

                          Thanks
                          Ishan
                          Last edited by Ishan; 26-03-2014, 21:00.

                          Comment

                          • Ishan
                            Member
                            • May 2013
                            • 40

                            #58
                            Hello Aib

                            I will explain you step by step,

                            1. Ruby Debug

                            ruby -d
                            Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems.rb:1194 - cannot load such file -- rubygems/defaults/operating_system
                            Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems.rb:1203 - cannot load such file -- rubygems/defaults/ruby


                            2. Ruby Version

                            ruby -v
                            ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]

                            3. Gem version

                            gem -v
                            2.2.2


                            4. gem list

                            *** LOCAL GEMS ***

                            bigdecimal (1.2.3)
                            bundler (1.5.0)
                            bundler-unload (1.0.2)
                            executable-hooks (1.2.6)
                            gem-wrappers (1.2.4, 1.2.1)
                            io-console (0.4.2)
                            json (1.8.1)
                            minitest (4.7.5)
                            psych (2.0.2)
                            rake (10.1.0)
                            rdoc (4.1.0)
                            rubygems-bundler (1.4.2)
                            rvm (1.11.3.8)
                            snmp (1.1.1)
                            test-unit (2.1.0.0)


                            5. ENV

                            env
                            rvm_bin_path=/usr/local/rvm/bin
                            HOSTNAME=localhost.localdomain
                            GEM_HOME=/usr/local/rvm/gems/ruby-2.1.0
                            TERM=xterm
                            SHELL=/bin/bash
                            HISTSIZE=1000
                            IRBRC=/usr/local/rvm/rubies/ruby-2.1.0/.irbrc
                            SSH_CLIENT=10.69.1.171 3344 22
                            QTDIR=/usr/lib64/qt-3.3
                            OLDPWD=/usr/lib/zabbix/externalscripts
                            MY_RUBY_HOME=/usr/local/rvm/rubies/ruby-2.1.0
                            QTINC=/usr/lib64/qt-3.3/include
                            SSH_TTY=/dev/pts/1
                            USER=root
                            LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00i=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01r=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30; 41:tw=30;42w=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31: *.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:* .tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=0 1;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:* .bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.t z=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar= 01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01 ;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;3 5:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35: *.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*. tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*. mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mp eg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4 =01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=0 1;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;3 5:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35 :*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.x wd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv =01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=0 1;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01 ;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;3 6:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:* .spx=01;36:*.xspf=01;36:
                            _system_type=Linux
                            rvm_path=/usr/local/rvm
                            rvm_prefix=/usr/local
                            MAIL=/var/spool/mail/root
                            PATH=/usr/local/rvm/gems/ruby-2.1.0/bin:/usr/local/rvm/gems/ruby-2.1.0@global/bin:/usr/local/rvm/rubies/ruby-2.1.0/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/rvm/bin:/root/bin
                            PWD=/
                            LANG=en_US.UTF-8
                            _system_arch=x86_64
                            _system_version=6
                            HISTCONTROL=ignoredups
                            rvm_version=1.25.18 (stable)
                            SHLVL=1
                            PS4=+ $(__rvm_date "+%s.%N" 2>/dev/null) ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} >
                            HOME=/root
                            LOGNAME=root
                            QTLIB=/usr/lib64/qt-3.3/lib
                            CVS_RSH=ssh
                            GEM_PATH=/usr/local/rvm/gems/ruby-2.1.0:/usr/local/rvm/gems/ruby-2.1.0@global
                            SSH_CONNECTION=10.69.1.171 3344 10.69.1.38 22
                            LESSOPEN=|/usr/bin/lesspipe.sh %s
                            _system_name=CentOS
                            G_BROKEN_FILENAMES=1
                            _=/bin/env

                            6. ifspeed script change
                            Default is #!/usr/bin/env ruby i changed to
                            #!/usr/local/rvm/rubies/ruby-2.1.0/bin/ruby
                            Because my ruby path is : /usr/local/rvm/rubies/ruby-2.1.0/bin/ruby

                            rvm list

                            rvm rubies

                            =* ruby-2.1.0 [ x86_64 ]

                            # => - current
                            # =* - current && default
                            # * - default

                            7. Error message from zabbix_server.conf

                            from /usr/lib/zabbix/externalscripts/if.speed:24:in `<main>'
                            /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- snmp (LoadError)
                            from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'

                            This error message is keep poping on the log file

                            If you can explain me which package to be installed to fix this issue and what are the commands
                            That would be great


                            Thanks,
                            Ishan.

                            Comment

                            • Ishan
                              Member
                              • May 2013
                              • 40

                              #59
                              Hello Aib

                              One last question from Audio Codes,

                              When i was scanning with snmpwalk i found that below result from bunch of others,

                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.1 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.2 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.3 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.4 = STRING: "Controller failure alarm BusyOut Line 0 Link failure"
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.5 = STRING: "Board#1"
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.6 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.7 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.8 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.9 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.10 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.11 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.12 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".1.13 = Hex-STRING: 07 DE 03 06 0A 38 16 00
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.1 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.2 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.3 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.4 = STRING: "Alarm cleared: Controller failure alarm BusyOut Line 0 Link failure"
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.5 = STRING: "Board#1"
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.6 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.7 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.8 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.9 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.10 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.11 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.12 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".2.13 = Hex-STRING: 07 DE 03 06 0A 38 16 00
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".3.1 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".3.2 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".3.3 = ""
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".3.4 = STRING: "Controller failure alarm BusyOut Line 1 Link failure"
                              NOTIFICATION-LOG-MIB::nlmLogVariableOctetStringVal."AcLog".3.5 = STRING: "Board#1"

                              Can i get this "Controller failure alarm BusyOut Line 0 Link failure" message to zabbix by creating the discovery rule and triggers or,

                              I found the MIB files for Audio Codes, I have placed them in my MIB location in Zabbix, Then configure mib +ALL string from snmp.conf file, but i am unable to see the how MIB files working and all, Please kindly advice me

                              Thanks & Kind Regards,
                              Ishan

                              Comment

                              • Ishan
                                Member
                                • May 2013
                                • 40

                                #60
                                Hello Aib

                                If you have time please help me to fix those above issues.

                                Thanks & Kind Regards,
                                Ishan

                                Comment

                                Working...