Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
icinga-checks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
icinga-checks
Commits
40a1685c
Commit
40a1685c
authored
1 year ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
add netio doc page
parent
29f5b93f
No related branches found
No related tags found
1 merge request
!131
netio - add help; add param -i
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/20_Checks/_index.md
+1
-1
1 addition, 1 deletion
docs/20_Checks/_index.md
docs/20_Checks/check_netio.md
+83
-0
83 additions, 0 deletions
docs/20_Checks/check_netio.md
with
84 additions
and
1 deletion
docs/20_Checks/_index.md
+
1
−
1
View file @
40a1685c
...
...
@@ -26,7 +26,7 @@ There is one include script used by all checks:
*
[
check_haproxy_status
](
check_haproxy_status.md
)
*
[
check_memory
](
check_memory.md
)
*
[
check_mysqlserver
](
check_mysqlserver.md
)
*
check_netio
*
[
check_netio
](
check_netio.md
)
*
[
check_netstat
](
check_netstat.md
)
*
[
check_onehost
](
check_onehost.md
)
*
[
check_onevm
](
check_onevm.md
)
...
...
This diff is collapsed.
Click to expand it.
docs/20_Checks/check_netio.md
0 → 100644
+
83
−
0
View file @
40a1685c
# check_netio
## Introduction
Show network io for all or selected interfaces.
This plugin scans
`/proc/net/dev`
with the regex
`eth|en[ops][0-9]*`
to show a few types of interfaces.
### Requirements
*
none
## Syntax
```
text
> ./check_netio -h
______________________________________________________________________
CHECK_NETIO
v1.1
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
https://os-docs.iml.unibe.ch/icinga-checks/Checks/check_netio.html
______________________________________________________________________
Show network io for all or selected interfaces.
It shows the current counter value from /proc/net/dev and the speed
in byte per sec since last execution.
This plugin sends performancedata.
SYNTAX:
check_netio [-h] [-i INTERFACE(S)]
OPTIONS:
-h this help
PARAMETERS:
-i INTERFACE show this interface only. Quote multiple interfaces.
The check returns unknown if an interface does not
exist.
EXAMPLES:
check_netio show netio of all network interfaces
check_netio -i "eth0 eth1"
show netio of given interfaces.
```
## Examples
### Host with single interface
A simple call on a host with a single interface...
`check_netio`
returns
```
txt
OK: Network IO ... IN 0 MB/s >> [host] >> 0 MB/s OUT
--- enp0s31f6:
receive: 1079156830 28849 byte/s
transmit: 1082596810 2898 byte/s
|rx=28849;; tx=2898;;
```
### Custom interface
You get the same output with `check_netio -i enp0s31f6`.
If you enter a wrong interface the check returns with "UNKNOWN".
`check_netio -i "whatever"`returns
```
txt
UNKNOWN: Network IO ... IN 0 MB/s >> [host] >> 0 MB/s OUT
--- whatever:
UNKNOWN: the interface whatever does not exist.
|rx=0;; tx=0;;
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment