Ad Widget

Collapse

Problem with SNMP MIBS for Cisco ASA

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • puz27
    Junior Member
    • May 2020
    • 8

    #1

    Problem with SNMP MIBS for Cisco ASA

    Hello! Friends! I need you help again.
    Now a have problems with snmp and MIBS.
    So, what I want - i need to collect data from Cisco ASA by using SNMP.
    But how I undestand snmp do not know about MIBS.

    snmp_parse_oid(): cannot parse OID "CISCO-PROCESS-MIB::cpmCPUTotal1minRev.1"
    snmp_parse_oid(): cannot parse OID "CISCO-REMOTE-ACCESS-MONITOR-MIB::crasL2LNumSessions.0"

    First.I know that zabbix can coolect data from ASA:
    snmpwalk -m -v 2c -c MONITOR 150.31.31.1 take data from ASA

    Second. If i try to check some data.
    snmpwalk -m -v 2c -c MONITOR 150.31.31.1 "cpmCPUTotal1minRev.1"
    Cannot adopt OID in CISCO-PROCESS-MIB: cpmVirtualProcessUtil5Sec ::= { cpmVirtualProcessEntry 3 }
    Cannot adopt OID in CISCO-PROCESS-MIB: cpmVirtualProcessName ::= { cpmVirtualProcessEntry 2 }
    Cannot adopt OID in CISCO-PROCESS-MIB: cpmVirtualProcessID ::= { cpmVirtualProcessEntry 1 }

    If i try snmpwalk -m "/usr/share/snmp/mibs/CISCO-PROCESS-MIB.txt" -v 2c -c MONITOR 150.31.31.1 "cpmCPUTotal1minRev.1"
    The same problem.

    How i undestand zabbix can collect data but i have problems with snmp MIBS.
    My snmp.conf
    mibdirs /usr/share/snmp/
    mibs :ALL

    I use Debian.
    I know that i need add information for MIBS in /etc/default/snmpd -> export MIBS=/usr/share/mibs
    But i did not solve my problem.

    Thank you. May be someone solved this problem.
    Last edited by puz27; 02-06-2020, 11:06.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Only for you the innermost knowledge :-)

    This mini HowTo describes how to use the SNMP client tools to retrieve human readable information from devices running an SNMP daemon. In the examples below mini-snmpd is used as the daemon and as client both the command line net-snmp tool and the snmpB GUI are used. Personally I use both Ubuntu and Debian, so the tools I use to download the clients will reflect that. See your respective UNIX distro’s help pages for how to install these client tools in your operating system.

    Comment

    • puz27
      Junior Member
      • May 2020
      • 8

      #3
      Thank you . Go to read...

      Comment


      • Hamardaban
        Hamardaban commented
        Editing a comment
        in brief:
        download the mib files for your device,
        place them in the appropriate place on the server,
        and configure their load in snmpd.
        don't forget to restart snmpd!
    • puz27
      Junior Member
      • May 2020
      • 8

      #4
      Thank you for your time. What i have now.
      Click image for larger version

Name:	z4.PNG
Views:	2571
Size:	24.1 KB
ID:	402398

      Click image for larger version

Name:	z5.PNG
Views:	2490
Size:	62.8 KB
ID:	402399

      Comment

      • puz27
        Junior Member
        • May 2020
        • 8

        #5
        For example i want -> SNMPv2-MIB::sysDescr.0

        Click image for larger version

Name:	z5.PNG
Views:	2449
Size:	2.6 KB
ID:	402402

        So. IF i try snmpwalk -v 2c -c MONITOR 150.31.31.1 sysDescr.0
        How i understand it must work with SNMPv2-MIB that i have in usr/share/snmp/mibs
        But I have only this

        Click image for larger version

Name:	z6.PNG
Views:	2497
Size:	112.8 KB
ID:	402403

        Comment

        • puz27
          Junior Member
          • May 2020
          • 8

          #6
          And how I understand if i make command ->
          snmptranslate -IR -On SNMPv2-MIB::sysDescr.0
          I should get an imromation but i have errors:
          Click image for larger version

Name:	z9.PNG
Views:	2474
Size:	141.6 KB
ID:	402409



          It is veru strange path where it try to find information (/root/.snmp...) I have another path in snmp config -> usr/share/snmp/mibs





          Comment

          • puz27
            Junior Member
            • May 2020
            • 8

            #7
            Hello! I solved my problem! I copied all cisco mibs that i had to -> /home/user/snmp/mibs All Good! Thank you!

            Comment

            Working...