Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unreal4u/munin-total-network-transfers
Displays the total bytes transferred of machine since last boot
https://github.com/unreal4u/munin-total-network-transfers
Last synced: 14 days ago
JSON representation
Displays the total bytes transferred of machine since last boot
- Host: GitHub
- URL: https://github.com/unreal4u/munin-total-network-transfers
- Owner: unreal4u
- License: mit
- Created: 2016-09-17T22:31:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-07T19:37:12.000Z (over 8 years ago)
- Last Synced: 2024-11-09T13:46:47.255Z (2 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# munin-total-network-transfers
Displays the total bytes transferred of machine since last boot, I use it for my Linux home server/router. The actual read is done from the following path:`/sys/class/net/**/statistics/*x_bytes`
AFAIK, this path is the same on any Linux-based system. If it ain't, feel free to make an issue so that this path can be configured with a environment variable instead.
## How to install
- Copy the plugins to the plugins directory. On a CentOS system, this is typically `/usr/share/munin/plugins/`. Don't forget to make the symlink in `/etc/munin/plugins/`.
- Restart your munin node in order to let it know about the new plugin(s): `systemctl restart munin-node`. On other systems, `service munin-node restart` can also do the job.## SELinux permissions
Disabling SELinux is a **bad** idea. The permissions for the plugins can be set by executing:
chcon -h system_u:object_r:unconfined_munin_plugin_exec_t:s0 /usr/share/munin/plugins/total_network_usageCheck your `/var/log/audit/audit.log` file in case of problems.
## TODO list
- Enable direction in graph (as the standard defined per http://munin-monitoring.org/wiki/HowToWritePlugins)