The script will check interface operationnal
status using the MIB-II table. The interface is (are) selected by
the -n option.
This option will be treated as a regular expression (eth will match
eth0, eth1, eth2...). You can disable this with the -r option
: the interface will be selected if it's description exactly matches
the name given by -n

The interfaces are selected by their description
in the MIB-II table.To see how interface looks like by snmp, you can list all of
them with the '-v' switch.

The script will return OK if ALL interfaces
selected are UP, or CRITICAL if at least one interface is down.

You can make the script return a OK value when all interfaces are
down (and CRITICAL when at least one is up) with the -i option.

You can make the same tests on administrative
status instead with the -a option.

If you have ISDN interface, and want that DORMANT state returns ok, put -D.

To make output shorter, specially when you
have multiple interface, you can put the -s option.
It will get only the first <n> caracters of the interface
descrition. If the number is negative then get the last <n>
caracters.

Warning : the counters needed by -e
are not always available on all machines (ex Nokia IP)

Usage check (-k)

A temporary file will be created in "/tmp" by default
: this can be changed at the beginning of the script.
The file name will be : tmp_Nagios_int.<host IP>.<Interface
name>. One file will be created by interface.

The status UNKNOWN is returned when the script doesn't have enough
information (see -d option).

-d: delta time
You can put the delta time as an option : the "delta"
is the prefered time between two values that the script will use
to calculate the average Kbytes/s or error/min. The delta time should
(not must) be bigger than the check interval.
Here is an example : Check interval of 2 minutes and delta of 4min

The script will allow 10% less of the delta
and 300% more than delta as a correct interval.
For example, with a delta of 5 minutes, the acceptable interval
will be between 4'30" and 15 minutes.

Msg size option (-ooption)

In case you get a "ERROR: running table
: Message size exceeded maxMsgSize" error, you may need to
adjust the maxMsgSize, i.e. the maximum size of snmp message with
the -o option. Try a value with the -o AND the -v option : the script
will output the actual value so you can add some octets to it with
the -o option.