Ad Widget

Collapse

Add an MIB to zabbix server ?!?!?!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • A.Zabihi
    Junior Member
    • Aug 2016
    • 14

    #1

    Add an MIB to zabbix server ?!?!?!

    hi guys
    i download CISCO-REMOTE-ACCESS-MONITOR-MIB.my in zabbix server with wget and copy this MIB to this location :
    /usr/share/snmp/mibs
    and i change snmp.conf
    and now when i use snmpwalk -v 2c -c CommunityString HostIP
    result for IF-MIB is correct and i use them to create item and tehy works.
    for example this is true output :
    IF-MIB::ifHCOutOctets.14 = Counter64: 0
    IF-MIB::ifHCOutOctets.15 = Counter64: 4096746
    IF-MIB::ifHCOutOctets.16 = Counter64: 3937161129
    IF-MIB::ifHCOutOctets.17 = Counter64: 5205009863
    IF-MIB::ifHCOutUcastPkts.2 = Counter64: 24465067
    IF-MIB::ifHCOutUcastPkts.3 = Counter64: 17525
    IF-MIB::ifHCOutUcastPkts.4 = Counter64: 0

    BUT
    snmpwalk result for CISCO-REMOTE-ACCESS-MONITOR-MIB is incorrect

    Cannot adopt OID in CISCO-REMOTE-ACCESS-MONITOR-MIB: crasSessionInDropPkts ::= { crasSessionEntry 33 }

    and ...

    how i can have a true result to creat an item ?!

    my device is : ASA 5505

    thank you
  • akbar415
    Senior Member
    • May 2015
    • 119

    #2
    snmpwalk force mib

    Use this line of command to force the use of specific mib

    snmpwalk -m "/usr/share/snmp/mibs/mymib.my" -v 2c -c MyCommunity MY_IP

    This way you can have shure if snmp is getting your mib.

    If you don't kbow the name of the mib, you have to open the mib file (e.g with vim) and in the top of the file search for "BEGIN"

    Example:
    CISCO-SMI DEFINITIONS ::= BEGIN

    The name of the mib is "CISCO-SMI"

    Comment

    • A.Zabihi
      Junior Member
      • Aug 2016
      • 14

      #3
      Originally posted by akbar415
      Use this line of command to force the use of specific mib

      snmpwalk -m "/usr/share/snmp/mibs/mymib.my" -v 2c -c MyCommunity MY_IP

      This way you can have shure if snmp is getting your mib.

      If you don't kbow the name of the mib, you have to open the mib file (e.g with vim) and in the top of the file search for "BEGIN"

      Example:
      CISCO-SMI DEFINITIONS ::= BEGIN

      The name of the mib is "CISCO-SMI"

      thank you veri much, are you iranian ?
      i'm iranian, im alireza,

      a question ?

      how to monitor ipsec tunnel ?
      number of session is ok, but this ke ( cikeTunOutOctets ) working with IPSec Index, we get index number by snmpwalk, but when IPSec is down and up , index is change, how i can use it ?!
      thank you again

      Comment

      • akbar415
        Senior Member
        • May 2015
        • 119

        #4
        Originally posted by A.Zabihi
        thank you veri much, are you iranian ?
        i'm iranian, im alireza,

        a question ?

        how to monitor ipsec tunnel ?
        number of session is ok, but this ke ( cikeTunOutOctets ) working with IPSec Index, we get index number by snmpwalk, but when IPSec is down and up , index is change, how i can use it ?!
        thank you again
        Nope, I'm from Brasil, the nickname "akbar" is from a book.

        Maybe you can find what you need here https://share.zabbix.com/search?sear...A&search_cat=1

        Comment

        • A.Zabihi
          Junior Member
          • Aug 2016
          • 14

          #5
          Originally posted by akbar415
          Nope, I'm from Brasil, the nickname "akbar" is from a book.

          Maybe you can find what you need here https://share.zabbix.com/search?sear...A&search_cat=1
          Thank you Mr.akbar
          Have a good days

          Comment

          Working...