Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vnstat: 1.18 -> 2.1 #51691

Merged
merged 1 commit into from Dec 8, 2018
Merged

vnstat: 1.18 -> 2.1 #51691

merged 1 commit into from Dec 8, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Dec 8, 2018

Motivation for this change

No NixOS test for this, anyone use it and willing to test? :)

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@c0bw3b
Copy link
Contributor

c0bw3b commented Dec 8, 2018

Tried vnstatd in foreground mode

$ sudo ./result/bin/vnstatd -n
Zero database found, adding available interfaces...
Interface "enp0s3" added with 1000 Mbit bandwidth limit.
-> 1 new interface found.
Limits can be modified using the configuration file. See "man vnstat.conf".
Unwanted interfaces can be removed from monitoring with "vnstat --remove".
Info: vnStat daemon 2.1 started. (pid:5489 uid:0 gid:0)
Info: Monitoring (1): enp0s3 (1000 Mbit)

Then some stats over 5minutes

$ ./result/bin/vnstat -i enp0s3 -5

 enp0s3  /  5 minute

         time        rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     2018-12-08
         10:00           0 B |         0 B |         0 B |     0,00 bit/s
         10:05      9,55 KiB |    9,50 KiB |   19,05 KiB |   520,00 bit/s
     ------------------------+-------------+-------------+---------------

@c0bw3b
Copy link
Contributor

c0bw3b commented Dec 8, 2018

$ vnstati -s -i enp0s3 -o tmp.png works too

image

@c0bw3b c0bw3b merged commit 819aded into NixOS:master Dec 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants