check_netdev_linux

command module
v0.0.0-...-2b0b70b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

README

Warning: This is a prototype and not finished and not very well tested.

check_netdev_linux

Check Linux network interfaces (mostly to read performance data)

Basics

This is a small plugin to check the network devices on a linux machine. It can check whether the devices are online and will probably include a way to define threshholds for the amount of traffic in the future. Currently it mostly gets the statistics, so one can paint pretty graphs.

Building

go build

Usage

# Read the statistics for all available network interfaces and say it's ok
./check_netdev_linux

# Check whether all network interfaces are online
./check_netdev_linux -c

# Get diffs for network statistics for the time frame of 5 seconds
./check_netdev_linux -m 5

# Just get statistics for ethernet interfaces (all devices matching the expression)
./check_netdev_linux -i 'en.'

# Exclude the first devices (which end on a 0)
./check_netdev_linux -e '.0'

# Only read from openvpn interface (a device called openvpn to be specific)
./check_netdev_linux -I openvpn

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL