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

Issue 11773028: Added connections and memory monitoring (Closed)

Created:
Sept. 20, 2013, 10:25 a.m. by Wladimir Palant
Modified:
Nov. 21, 2013, 9:18 a.m.
Reviewers:
Felix Dahlke
Visibility:
Public.

Description

No idea what useful boundaries would look like so no boundaries yet.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -4 lines) Patch
M modules/nagios/files/check_memory View 1 2 chunks +19 lines, -4 lines 0 comments Download

Messages

Total messages: 4
Wladimir Palant
Sept. 20, 2013, 10:25 a.m. (2013-09-20 10:25:05 UTC) #1
Felix Dahlke
Since we report percentages for memory usage, I'd vote for having tresholds of 70%/90% or ...
Oct. 1, 2013, 2:05 p.m. (2013-10-01 14:05:33 UTC) #2
Wladimir Palant
I've addressed the comments with one exception - see below. http://codereview.adblockplus.org/11773028/diff/1/modules/nagios/files/check_memory File modules/nagios/files/check_memory (right): http://codereview.adblockplus.org/11773028/diff/1/modules/nagios/files/check_memory#newcode7 ...
Nov. 4, 2013, 7:54 a.m. (2013-11-04 07:54:40 UTC) #3
Felix Dahlke
Nov. 20, 2013, 4 p.m. (2013-11-20 16:00:50 UTC) #4
LGTM

http://codereview.adblockplus.org/11773028/diff/1/modules/nagios/files/check_...
File modules/nagios/files/check_memory (right):

http://codereview.adblockplus.org/11773028/diff/1/modules/nagios/files/check_...
modules/nagios/files/check_memory:7: return "%i MB" % (bytes / (1024 * 1024))
On 2013/11/04 07:54:41, Wladimir Palant wrote:
> On 2013/10/01 14:05:33, Felix H. Dahlke wrote:
> > Would actually prefer to use MiB here and KiB below, that'd avoid ambiguity.
> 
> I would have to look up MiB and KiB every time, nobody uses that. Memory is
> always measured "real" megabytes, no issue here. Note that there is a real
> ambiguity concerning disk space but I don't think anybody has an issue with
> check_disk using MB.

It's not true that nobody uses it, but it's quite true that not everybody uses
it. I guess you're right, for memory sizes people typically expect MiB when it
says MB.

Powered by Google App Engine
This is Rietveld