Ad Widget

Collapse

SNMP IBM Blade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DNKolian
    Junior Member
    • Nov 2013
    • 29

    #1

    SNMP IBM Blade

    Хочу натсроить мониторинг IBM Blade Center H

    Часть значений получаю так:

    SNMPv2-SMI::enterprises.2.3.51.2.2.1.1.2.0 = STRING: "43.00 Centigrade"
    SNMPv2-SMI::enterprises.2.3.51.2.2.1.5.1.0 = STRING: "24.50 Centigrade"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.1.0 = STRING: "+4.81 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.2.0 = STRING: "+3.26 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.3.0 = STRING: "+11.85 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.5.0 = STRING: "-4.85 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.6.0 = STRING: "+2.46 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.8.0 = STRING: "+1.74 Volts"

    Как я понимаю для построения графика нужно конвертировать значения... Подскажите пожалуйста как .
    Каким скриптом? Если можно пример.

    Спасибо.
  • yukra
    Senior Member
    • Apr 2013
    • 1359

    #2
    Originally posted by DNKolian
    Хочу натсроить мониторинг IBM Blade Center H

    Часть значений получаю так:

    SNMPv2-SMI::enterprises.2.3.51.2.2.1.1.2.0 = STRING: "43.00 Centigrade"
    SNMPv2-SMI::enterprises.2.3.51.2.2.1.5.1.0 = STRING: "24.50 Centigrade"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.1.0 = STRING: "+4.81 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.2.0 = STRING: "+3.26 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.3.0 = STRING: "+11.85 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.5.0 = STRING: "-4.85 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.6.0 = STRING: "+2.46 Volts"
    SNMPv2-SMI::enterprises.2.3.51.2.2.2.1.8.0 = STRING: "+1.74 Volts"

    Как я понимаю для построения графика нужно конвертировать значения... Подскажите пожалуйста как .
    Каким скриптом? Если можно пример.

    Спасибо.
    Это вывод snmpwalk или откуда? https://www.zabbix.com/forum/showpos...64&postcount=5

    Comment

    • DNKolian
      Junior Member
      • Nov 2013
      • 29

      #3
      Делаю так: snmpwalk -v1 -c public 192.168.1.1 .1.3.6.1.4.1.2.3.51.2.2.

      Comment

      • yukra
        Senior Member
        • Apr 2013
        • 1359

        #4
        Originally posted by dnkolian
        Делаю так: snmpwalk -v1 -c public 192.168.1.1 .1.3.6.1.4.1.2.3.51.2.2.
        По моей ссылке ходили?

        Comment

        • DNKolian
          Junior Member
          • Nov 2013
          • 29

          #5
          Смотрел.
          Всёравно в итоге плучаю "43.00 Centigrade"
          Last edited by DNKolian; 17-02-2014, 09:33.

          Comment

          • yukra
            Senior Member
            • Apr 2013
            • 1359

            #6
            Originally posted by DNKolian
            Смотрел.
            Всёравно в итоге плучаю "43.00 Centigrade"
            хм ... странно. А покажите какую команду запускаете и ваш вывод "snmpwalk --help"

            Кстати вы хотите настроить встроенный в заббикс SNMP или написать свой "external check"? Если первое, то по моему "все должно заработать само" (во свяком случае у меня было именно так).

            Comment

            • DNKolian
              Junior Member
              • Nov 2013
              • 29

              #7
              Originally posted by yukra
              хм ... странно. А покажите какую команду запускаете и ваш вывод "snmpwalk --help"

              Кстати вы хотите настроить встроенный в заббикс SNMP или написать свой "external check"? Если первое, то по моему "все должно заработать само" (во свяком случае у меня было именно так).


              snmpwalk --help
              USAGE: snmpwalk [OPTIONS] AGENT [OID]

              Version: 5.4.3
              Web: http://www.net-snmp.org/
              Email: [email protected]

              OPTIONS:
              -h, --help display this help message
              -H display configuration file directives understood
              -v 1|2c|3 specifies SNMP version to use
              -V, --version display package version number
              SNMP Version 1 or 2c specific
              -c COMMUNITY set the community string
              SNMP Version 3 specific
              -a PROTOCOL set authentication protocol (MD5|SHA)
              -A PASSPHRASE set authentication protocol pass phrase
              -e ENGINE-ID set security engine ID (e.g. 800000020109840301)
              -E ENGINE-ID set context engine ID (e.g. 800000020109840301)
              -l LEVEL set security level (noAuthNoPriv|authNoPriv|authPriv)
              -n CONTEXT set context name (e.g. bridge1)
              -u USER-NAME set security name (e.g. bert)
              -x PROTOCOL set privacy protocol (DES|AES)
              -X PASSPHRASE set privacy protocol pass phrase
              -Z BOOTS,TIME set destination engine boots/time
              General communication options
              -r RETRIES set the number of retries
              -t TIMEOUT set the request timeout (in seconds)
              Debugging
              -d dump input/output packets in hexadecimal
              -D TOKEN[,...] turn on debugging output for the specified TOKENs
              (ALL gives extremely verbose debugging output)
              General options
              -m MIB[:...] load given list of MIBs (ALL loads everything)
              -M DIR[:...] look in given list of directories for MIBs
              -P MIBOPTS Toggle various defaults controlling MIB parsing:
              u: allow the use of underlines in MIB symbols
              c: disallow the use of "--" to terminate comments
              d: save the DESCRIPTIONs of the MIB objects
              e: disable errors when MIB symbols conflict
              w: enable warnings when MIB symbols conflict
              W: enable detailed warnings when MIB symbols conflict
              R: replace MIB symbols from latest module
              -O OUTOPTS Toggle various defaults controlling output display:
              0: print leading 0 for single-digit hex characters
              a: print all strings in ascii format
              b: do not break OID indexes down
              e: print enums numerically
              E: escape quotes in string indices
              f: print full OIDs on output
              n: print OIDs numerically
              q: quick print for easier parsing
              Q: quick print with equal-signs
              s: print only last symbolic element of OID
              S: print MIB module-id plus last element
              t: print timeticks unparsed as numeric integers
              T: print human-readable text along with hex strings
              u: print OIDs using UCD-style prefix suppression
              U: don't print units
              v: print values only (not OID = value)
              x: print all strings in hex format
              X: extended index format
              -I INOPTS Toggle various defaults controlling input parsing:
              b: do best/regex matching to find a MIB node
              h: don't apply DISPLAY-HINTs
              r: do not check values for range/type legality
              R: do random access to OID labels
              u: top-level OIDs must have '.' prefix (UCD-style)
              s SUFFIX: Append all textual OIDs with SUFFIX before parsing
              S PREFIX: Prepend all textual OIDs with PREFIX before parsing
              -L LOGOPTS Toggle various defaults controlling logging:
              e: log to standard error
              o: log to standard output
              n: don't log at all
              f file: log to the specified file
              s facility: log to syslog (via the specified facility)

              (variants)
              [EON] pri: log to standard error, output or /dev/null for level 'pri' and above
              [EON] p1-p2: log to standard error, output or /dev/null for levels 'p1' to 'p2'
              [FS] pri token: log to file/syslog for level 'pri' and above
              [FS] p1-p2 token: log to file/syslog for levels 'p1' to 'p2'
              -C APPOPTS Set various application specific behaviours:
              p: print the number of variables found
              i: include given OID in the search range
              I: don't include the given OID, even if no results are returned
              c: do not check returned OIDs are increasing
              t: Display wall-clock time to complete the request



              Например делаю
              snmpwalk -Oe -v1 -c public 192.168.1.1 .1.3.6.1.4.1.2.3.51.2.2.1.1
              получаю
              SNMPv2-SMI::enterprises.2.3.51.2.2.1.1.2.0 = STRING: "43.00 Centigrade"


              Да что тут гадать. Тут нужен скрипт который будет из "43.00 Centigrade" брать число и отдаватьего zabbix .

              Comment

              • Jimson
                Senior Member
                • Jan 2008
                • 1327

                #8
                Originally posted by yukra
                хм ... странно. А покажите какую команду запускаете и ваш вывод "snmpwalk --help"
                И что тут странного? это STRING, а не NUMERIC с единицами измерений, не говоря уже про то что "SNMPv2-SMI::enterprises.2.3.51.2.2.1.1.2.0" явно говорит нам о том что mib-ов нету, так что -O тут вообще не при делах.

                На трекере был запрос на тему числовых данных отдаваемых snmp агентом строкой, если 2.2 отказывается самостоятельно "парсить" такие данные, то увы, придется или собирать данные скриптом или делать snmp-proxy

                Comment

                • yukra
                  Senior Member
                  • Apr 2013
                  • 1359

                  #9
                  Originally posted by jimson
                  И что тут странного? это string, а не numeric с единицами измерений, не говоря уже про то что "snmpv2-smi::enterprises.2.3.51.2.2.1.1.2.0" явно говорит нам о том что mib-ов нету, так что -o тут вообще не при делах.

                  На трекере был запрос на тему числовых данных отдаваемых snmp агентом строкой, если 2.2 отказывается самостоятельно "парсить" такие данные, то увы, придется или собирать данные скриптом или делать snmp-proxy
                  Не обратил внимание. Видимо все таки пора идти спать.

                  Comment

                  • DNKolian
                    Junior Member
                    • Nov 2013
                    • 29

                    #10
                    Народ.
                    Дайте пример или линк где смотреть примеры.

                    Comment

                    Working...