MIBs not found

Patrick Proy nagios-user at proy.org
Wed Aug 10 14:40:24 CEST 2005


Hi,

In Cisco MIB, you have a TABLE entry at '1.3.6.1.4.1.9.9.48.1.1.1'

In this table, you can have 1 or more 'memory pool' entries. 
On Cisco routers, you have 2 (IO mem and processor mem), on Pix (presumably
ASA also), you only have one.

For example to check memory on a router/pix :
1) Get all the OIDs starting by 1.3.6.1.4.1.9.9.48.1.1.1.2 (with snmpwalk
for ex): you will get the name of memory pool(s), the index for them, and
their numbers.
Ex : the index for 'PIX Memory' would be '1' if you have the following entry
: '1.3.6.1.4.1.9.9.48.1.1.1.2.1=PIX Memory'
Don't think the index will always start by '1' : it's true in most cases,
but the MIB doesn't say is HAS to be like that.

2) Check if memory is valid (index search in '1.3.6.1.4.1.9.9.48.1.1.1.4')
Ex : with last example, would be '1.3.6.1.4.1.9.9.48.1.1.1.4.1'

3) get the used and free mem with the .5 and .6 entry. You can make
additionnal checks with alternate/maxfree entries.

On routers, you will have 2 values (IO & processor) with 2 indexes : you can
add them or check them individually.

OID list : http://www.manubulon.com/nagios/index_info.html#cisco
Perl script for this : http://www.manubulon.com/nagios/snmp_mem.html

-------------
You don't NEED to have the Cisco mibs to do a snmpwalk/snmpget with numeric
OIDs, so either you get a coherent list of MIB files, or just erase them all
! (I don't use any except for reference).

Patrick
Nagios at proy DOT org
http://www.manubulon.com/nagios/ 

-----Message d'origine-----
De : nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] De la part de Marco
Borsani
Envoyé : mercredi 10 août 2005 09:25
À : Subhendu Ghosh
Cc : NAGIOS
Objet : R: [Nagios-users] MIBs not found

Well,

I use OID mentioned in last mail because I found it in CISCO web site
http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Trans
late&objectInput=ciscoMemoryPoolName

Using 1.3.6.1.4.1.9.9.48.1.1.1.2.5 I get an error message like:
"Unfortunately we could not translate the object
1.3.6.1.4.1.9.9.48.1.1.1.2.5 you were looking for. We could however
translate a part of your object..."

Using the index for CiscoMemoryPoolTypes that you suggest me I still receive
same error, using "numbers" from 2 to 5, but I received a "good answer" with
1.

ERROR ANSWER:
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.5

GOOD ANSWER:
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "PIX system memory"

?????

Marco


-}-----Messaggio originale-----
-}Da: Subhendu Ghosh [mailto:sghosh at sghosh.org]
-}Inviato: mercoledi 10 agosto 2005 3.08
-}A: Marco Borsani
-}Cc: NAGIOS
-}Oggetto: Re: [Nagios-users] MIBs not found -} -} -}On Tue, 9 Aug 2005,
Marco Borsani wrote:
-}
-}>
-}> Hi.
-}>
-}> I still try to wok with check_snmp, but problems persists.
-}>
-}> I am testing snmpget commands (that is used from check_snmp), -}but I
see this -}> error:
-}> #> snmpget -M
-}>
-}/usr/local/share/snmp/mibs:/usr/local/share/snmp/CISCO:/usr/local/
-}share/snmp
-}> /CISCO/dipendenze -c public 10.212.0.240 1.3.6.1.4.1.9.9.48.1.1.1.2 -}>
-}> Error in packet -}> Reason: (noSuchName) There is no such variable name
in this MIB.
-}> Failed object: SNMPv2-SMI::enterprises.9.9.48.1.1.1.2
-}
-}This is a column object - not leaf object.
-}
-}You need to append the table index value to the above OID.
-}In this case the index is CiscoMemoryPoolTypes -}
-}             1:  processor memory
-}             2:  i/o memory
-}             3:  pci memory
-}             4:  fast memory
-}             5:  multibus memory
-}
-}-sg
-}
-}>
-}> I have mibs inside the dirs mentioned in the command line.
-}> In the first dir I have mibs installed by net-snmp 5.1.3.1, in -}the
other 2 -}> dirs I have following mibs:
-}> #> ls CISCO
-}> CISCO-FIREWALL-MIB-V1SMI.my		CISCO-GENERAL-TRAPS.my
-}> CISCO-MEMORY-POOL-MIB-V1SM1.my	CISCO-PROCESS-MIB-V1SMI.my
-}> CISCO-SYSLOG-MIB-V1SMI.my		RFC1213-MIB.my
-}> #> ls dipendenze
-}> SNMP-TARGET-MIB.txt			SNMP-NOTIFICATION-MIB.txt
-}> HOST-RESOURCES-MIB.txt       SNMP-USER-BASED-SM-MIB.txt
-}> IANAifType-MIB.txt           SNMP-VIEW-BASED-ACM-MIB.txt
-}> IF-MIB.txt                   SNMPv2-MIB.txt
-}> IP-MIB.txt                   SNMPv2-SMI.txt
-}> NET-SNMP-AGENT-MIB.txt       SNMPv2-TC.txt
-}> NET-SNMP-MIB.txt             SNMPv2-TM.txt
-}> NOTIFICATION-LOG-MIB.txt     TCP-MIB.txt
-}> RFC1155-SMI.txt              UCD-DEMO-MIB.txt
-}> SNMP-COMMUNITY-MIB.txt       UCD-DLMOD-MIB.txt
-}> SNMP-FRAMEWORK-MIB.txt       UCD-SNMP-MIB.txt
-}> SNMP-MPD-MIB.txt             UDP-MIB.txt
-}>
-}> May anyone help me ?
-}>
-}> Regards
-}>
-}> M.Borsani
-}>
-}>
-}>
-}> -------------------------------------------------------
-}> SF.Net email is Sponsored by the Better Software Conference & EXPO -}>
September 19-22, 2005 * San Francisco, CA * Development -}Lifecycle
Practices -}> Agile & Plan-Driven Development * Managing Projects & Teams *
-}Testing & QA -}> Security * Process Improvement & Measurement *
-}http://www.sqe.com/bsce5sf -}>
_______________________________________________
-}> Nagios-users mailing list
-}> Nagios-users at lists.sourceforge.net
-}> https://lists.sourceforge.net/lists/listinfo/nagios-users
-}> ::: Please include Nagios version, plugin version (-v) and OS -}when
reporting any issue.
-}> ::: Messages without supporting info will risk being sent to /dev/null
-}> -}
-}--
-}



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile &
Plan-Driven Development * Managing Projects & Teams * Testing & QA Security
* Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list