# check_es_state

Tool for checking network bandwidth and link speed

## Requirements

A physical or virtual machine

## Hint

The default interface will be determined automagically.

## Example usage

### Only measure bandwidth

./check_network_linkbandw -w 600 -c 800

### Measure bandwidth and link speed

./check_network_linkbandw -w 600 -c 800 -l -s 1000

### Print help

./check_network_linkbandw -h

## Possible arguments

Usage of check_network_linkbandw:
  -h, --help            show this help message and exit
  -S uint
        Measure seconds (default 10)
  -c uint
        (optional) set threshold for CRITICAL (default 800)
  -l    (optional) validate negotiated link speed
  -s uint
        Set expected link speed
  -w uint
        (optional) set threshold for WARNING (default 600)

## Returns

- OK: Network bandwidth does not matches provided thresholds for CRIT or WARN
- WARN: Network bandwidth exceeded provided threshold for WARN
- CRIT: There are multiple causes if state is critical
     - Link speed lower than the expected value
     - Network bandwidth exceeded provided threshold for CRIT
- UNKNOWN: This state will be returned if it is i.e. not possible to read
interface statistics (causes for that could be that the interface does not
exist). Other causes could be:
   - Wrong arguments were provided
   - One or more arguments were already provided (validation failed)
   - ...

# vim: ft=md :
