Switch Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Mike
Posts: 76
Joined: Wed Apr 03, 2013 11:37 am

Re: Switch Monitoring

Post by Mike »

hi,

Output of SNMPWALK :

snmpwalk -H 10.187.210.13 -c wipro -v2c mib-2.interfaces Configuration directives understood:
No log handling enabled - turning on stderr logging
In snmpwalk.conf and snmpwalk.local.conf:
includeRequested (1|yes|true|0|no|false)
excludeRequested (1|yes|true|0|no|false)
printStatistics (1|yes|true|0|no|false)
dontCheckOrdering (1|yes|true|0|no|false)
timeResults (1|yes|true|0|no|false)
In snmp.conf and snmp.local.conf:
alias NAME TRANSPORT_DEFINITION
doDebugging (1|0)
debugTokens token[,token...]
logTimestamp (1|yes|true|0|no|false)
mibdirs [mib-dirs|+mib-dirs|-mib-dirs]
mibs [mib-tokens|+mib-tokens]
mibfile mibfile-to-read
showMibErrors (1|yes|true|0|no|false)
commentToEOL (1|yes|true|0|no|false)
strictCommentTerm (1|yes|true|0|no|false)
mibAllowUnderline (1|yes|true|0|no|false)
mibWarningLevel integerValue
mibReplaceWithLatest (1|yes|true|0|no|false)
printNumericEnums (1|yes|true|0|no|false)
printNumericOids (1|yes|true|0|no|false)
escapeQuotes (1|yes|true|0|no|false)
dontBreakdownOids (1|yes|true|0|no|false)
quickPrinting (1|yes|true|0|no|false)
numericTimeticks (1|yes|true|0|no|false)
oidOutputFormat integerValue
suffixPrinting integerValue
extendedIndex (1|yes|true|0|no|false)
printHexText (1|yes|true|0|no|false)
printValueOnly (1|yes|true|0|no|false)
dontPrintUnits (1|yes|true|0|no|false)
hexOutputLength integerValue
dumpPacket (1|yes|true|0|no|false)
reverseEncodeBER (1|yes|true|0|no|false)
defaultPort integerValue
defCommunity string
noTokenWarnings (1|yes|true|0|no|false)
noRangeCheck (1|yes|true|0|no|false)
persistentDir string
tempFilePattern string
noDisplayHint (1|yes|true|0|no|false)
16bitIDs (1|yes|true|0|no|false)
clientaddr string
serverSendBuf integerValue
serverRecvBuf integerValue
clientSendBuf integerValue
clientRecvBuf integerValue
noPersistentLoad (1|yes|true|0|no|false)
noPersistentSave (1|yes|true|0|no|false)
noContextEngineIDDiscovery (1|yes|true|0|no|false)
defDomain application domain
defTarget application domain target
defSecurityModel string
defSecurityName string
defContext string
defPassphrase string
defAuthPassphrase string
defPrivPassphrase string
defAuthMasterKey string
defPrivMasterKey string
defAuthLocalizedKey string
defPrivLocalizedKey string
defVersion 1|2c|3
defAuthType MD5|SHA
defPrivType DES|AES
defSecurityLevel noAuthNoPriv|authNoPriv|authPriv
In snmpapp.conf and snmpapp.local.conf:
defDomain application domain
defTarget application domain target
engineID string
engineIDType num
engineIDNic string
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch Monitoring

Post by abrist »

I don't see an ifoperstatus name in that list. Check with the vendor, if the oid is non-standard you will need to get the mib files or at least a reference sheet for the device.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Mike
Posts: 76
Joined: Wed Apr 03, 2013 11:37 am

Re: Switch Monitoring

Post by Mike »

Hello,

It's a cisco device , Still i need to take the MIB's ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch Monitoring

Post by abrist »

Maybe, the walk should have returned many more lines than that. Do you have reference documentation for the device?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Mike
Posts: 76
Joined: Wed Apr 03, 2013 11:37 am

Re: Switch Monitoring

Post by Mike »

hello ,

Can you send me the exact command to run for SNMPWALK and SNMPGET? till that time i';; send you the o/p of both the command.


I have mailed the client to send the details.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch Monitoring

Post by abrist »

Has this device been locked down?
Do a full walk:

Code: Select all

snmpwalk -v2c -c wipro 10.187.210.13 
snmpwalk -v1 -c wipro 10.187.210.13 
Then limit it for the ports:

Code: Select all

snmpwalk -v2c -c wipro 10.187.210.13  1.3.6.1.2.1.2.2.1.8
snmpwalk -v1 -c wipro 10.187.210.13  1.3.6.1.2.1.2.2.1.8
No do a get on that OID:

Code: Select all

snmpget -v1 -c wipro 10.187.210.13  1.3.6.1.2.1.2.2.1.8
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Mike
Posts: 76
Joined: Wed Apr 03, 2013 11:37 am

Re: Switch Monitoring

Post by Mike »

Hello,
There are two cisco switches which we are monitoring
one is Core switch and second is access switch

10.187.210.3 - cisco 6513 - Core switch

10.187.210.13 - cisco 3560 - access switch



Here's the output :


snmpwalk -v2c -c wipro 10.187.210.13
SNMPv2-SMI::mib-2 = No more variables left in this MIB View (It is past the end of the MIB tree)

----------------------------------------------------------------------------------------------------------------

snmpwalk -v1 -c wipro 10.187.210.13
End of MIB

--------------------------------------------------------------------
snmpwalk -v2c -c wipro 10.187.210.13 1.3.6.1.2.1.2.2.1.8
IF-MIB::ifOperStatus = No more variables left in this MIB View (It is past the end of the MIB tree)

------------------------------------------------------------------------------------------------------------------------
snmpwalk -v1 -c wipro 10.187.210.13 1.3.6.1.2.1.2.2.1.8
End of MIB

--------------------------------------------------------------------------------------------------------------------------
snmpget -v1 -c wipro 10.187.210.13 1.3.6.1.2.1.2.2.1.8
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: IF-MIB::ifOperStatu
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch Monitoring

Post by abrist »

Well, you may have mib collisions or incomplete mibs. Run the following translate and post the results:

Code: Select all

 snmptranslate -m ALL ifOperStatus
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Mike
Posts: 76
Joined: Wed Apr 03, 2013 11:37 am

Re: Switch Monitoring

Post by Mike »

Hello,


Here is the output :



# snmptranslate -m ALL ifOperStatus
ifOperStatus: Unknown Object Identifier (Sub-id not found: (top) -> ifOperStatus)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Switch Monitoring

Post by abrist »

Apologies, try:

Code: Select all

snmptranslate -mALL 1.3.6.1.2.1.2.2.1.8
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked