Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 10992045: Switch to bwm-ng for bandwidth monitoring (Closed)

Created:
June 28, 2013, 10:02 a.m. by Wladimir Palant
Modified:
Nov. 8, 2013, 8:07 a.m.
Reviewers:
Felix Dahlke
Visibility:
Public.

Description

Unlike vnstat, bwm-ng is available for both Ubuntu and OpenSUSE. It seems to be generally more usable in batch mode.

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -24 lines) Patch
M modules/nagios/files/check_bandwidth View 1 1 chunk +13 lines, -23 lines 0 comments Download
M modules/nagios/manifests/client.pp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
Wladimir Palant
June 28, 2013, 10:02 a.m. (2013-06-28 10:02:29 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/10992045/diff/1/modules/nagios/files/check_bandwidth File modules/nagios/files/check_bandwidth (right): http://codereview.adblockplus.org/10992045/diff/1/modules/nagios/files/check_bandwidth#newcode23 modules/nagios/files/check_bandwidth:23: vnstat_output = subprocess.check_output(["bwm-ng", "-I", "eth0", "-t", "5000", "-c", "1", ...
June 28, 2013, 10:12 a.m. (2013-06-28 10:12:22 UTC) #2
Felix Dahlke
http://codereview.adblockplus.org/10992045/diff/1/modules/nagios/files/check_bandwidth File modules/nagios/files/check_bandwidth (right): http://codereview.adblockplus.org/10992045/diff/1/modules/nagios/files/check_bandwidth#newcode6 modules/nagios/files/check_bandwidth:6: if bits >= 2000000: Shouldn't it be 1000000 here ...
July 2, 2013, 9:55 a.m. (2013-07-02 09:55:32 UTC) #3
Wladimir Palant
Comments addressed. http://codereview.adblockplus.org/10992045/diff/1/modules/nagios/files/check_bandwidth File modules/nagios/files/check_bandwidth (right): http://codereview.adblockplus.org/10992045/diff/1/modules/nagios/files/check_bandwidth#newcode6 modules/nagios/files/check_bandwidth:6: if bits >= 2000000: On 2013/07/02 09:55:32, ...
July 2, 2013, 10:25 a.m. (2013-07-02 10:25:16 UTC) #4
Felix Dahlke
July 2, 2013, 10:26 a.m. (2013-07-02 10:26:49 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld