check_traffic help please
Andreas Ericsson
ae at op5.se
Sat Oct 23 11:29:10 CEST 2004
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.
--
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