check_traffic help please

Andreas Ericsson ae at op5.se
Sat Oct 23 13:20:14 CEST 2004


icedtea wrote:
> Andreas Ericsson wrote:
> 
>> icedtea wrote:
>>
>>> I would like to use the check_traffic plugin. but im not sure bout 
>>> what the -i ( Interface number assigned by SNMP agent) meant. where 
>>> can i get this interface number?
>>
>>
>>
>> snmpwalk -v 1 -c <community> <target-host> .1.3.6.1.2.1.2.2.1.2 -Oqn
>> This will print a bunch of strings looking something like this (taken 
>> from a Cisco 1605R);
>> .1.3.6.1.2.1.2.2.1.2.1 Ethernet0
>> .1.3.6.1.2.1.2.2.1.2.2 Ethernet1
>> .1.3.6.1.2.1.2.2.1.2.3 Null0
>> .1.3.6.1.2.1.2.2.1.2.4 Loopback0
>> .1.3.6.1.2.1.2.2.1.2.5 Tunnel1
>>
>> The first part is the OID. The second part is the interface description.
>> The last section (the part after the last dot) of the OID is the 
>> interface index number. This is what you need to pass to check_traffic.
>>
>> Note that on some particularly evil devices, the interface index 
>> number can change after a reboot. If you get some really weird values, 
>> this might be the case for you.
>>
> ==========
> 
> I get the following after I issued the command:
> 
> 
> [root at hostname libexec]# snmpwalk -v 1 -c public -H hostname  
> .1.3.6.1.2.1.2.2.1.2 -Oqn


I never said to use the '-H' switch for the snmpwalk command. Pay 
attention and type the command exactly as I did, or I'll start ignoring 
you altogether.

snmpwalk --help clearly tells you (at the very top of the output) that 
snmpwalk -H lists understood configuration directives, which is exactly 
what it listed. Omit the -H switch and things should work splendidly.

> Configuration directives understood:
>  In snmpwalk.conf and snmpwalk.local.conf:
>    includeRequested (1|yes|true|0|no|false)
>    printStatistics (1|yes|true|0|no|false)
>    dontCheckOrdering (1|yes|true|0|no|false)
>  In snmp.conf and snmp.local.conf:
>    doDebugging     (1|0)
>    debugTokens     token[,token...]
>    logTimestamp    (1|yes|true|0|no|false)
>    mibdirs         [mib-dirs|+mib-dirs]
>    mibs            [mib-tokens|+mib-tokens]
>    mibfile         mibfile-to-read
>    showMibErrors   (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)
>    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)
>    defSecurityModel string
>    defSecurityName string
>    defContext      string
>    defPassphrase   string
>    defAuthPassphrase string
>    defPrivPassphrase string
>    defVersion      1|2c|3
>    defAuthType     MD5|SHA
>    defPrivType     DES (AES support not available)
>    defSecurityLevel noAuthNoPriv|authNoPriv|authPriv
>  In snmpapp.conf and snmpapp.local.conf:
>    engineID        string
>    engineIDType    num
>    engineIDNic     string
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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