Hi Team,
thanks for the reply,
We are able to get reply from snmp device but in console it is showing critical. Can you help what would be reason to display and how to resolve this.
[root@NAG01 ~]# /usr/local/nagios/libexec/check_snmp -H XXXXX -C lonpublic -P 2c -o ISILON-MIB::diskStatus.1,diskStatus.2,diskStatus.3,diskStatus.4,diskStatus.5,diskStatus.6,diskStatus.7,diskStatus.8,diskStatus.9,diskStatus.10,diskStatus.11,diskStatus.12,diskStatus.13,diskStatus.14,diskStatus.15,diskStatus.16,diskStatus.17,diskStatus.18,diskStatus.19,diskStatus.20,diskStatus.21,diskStatus.22,diskStatus.23,diskStatus.24 -l "Disk 1:","Disk 2:","Disk 3:","Disk 4:","Disk 5:","Disk 6:","Disk 7:","Disk 8:","Disk 9:","Disk 10:","Disk 11:","Disk 12:","Disk 13:","Disk 14:","Disk 15:","Disk 16:","Disk 17:","Disk 18:","Disk 19:","Disk 20:","Disk 21:","Disk 22:","Disk 23:","Disk 24:" -s "HEALTHY"
SNMP OK - Disk 1: HEALTHY Disk 2: HEALTHY Disk 3: HEALTHY Disk 4: HEALTHY Disk 5: HEALTHY Disk 6: HEALTHY Disk 7: HEALTHY Disk 8: HEALTHY Disk 9: HEALTHY Disk 10: HEALTHY Disk 11: HEALTHY Disk 12: HEALTHY Disk 13: HEALTHY Disk 14: HEALTHY Disk 15: HEALTHY Disk 16: HEALTHY Disk 17: HEALTHY Disk 18: HEALTHY Disk 19: HEALTHY Disk 20: HEALTHY Disk 21: HEALTHY Disk 22: HEALTHY Disk 23: HEALTHY Disk 24: HEALTHY |
For the first command we are getting like below
[root@NAG01 ~]# snmpwalk -v 1 -c lonpublic -H XXXXX
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|fals
What does it meaning above output could you explain please.
I have tried with V 2 also
[root@NAG01 ~]# snmpwalk -v 2 -c lonpublic -H XXXXX
Invalid version specified after -v flag: 2
USAGE: snmpwalk [OPTIONS] AGENT [OID]
Version: 5.5
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
What i understand after executing V 2 , device will working with V 2 version. Correct me if i am wrong.