Module: check_mk
Branch: master
Commit: 8057609739d8adcb23c532e5ebd4e36d11ca933b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8057609739d8ad…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Oct 4 11:05:41 2017 +0200
Minor cleanup ps.include: fixed name inconsistency between rule title and service details
Change-Id: Iada57b346dab09b87eeef4fee2989e409577130d
---
checks/ps.include | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/checks/ps.include b/checks/ps.include
index a8b4bfa..d898d92 100644
--- a/checks/ps.include
+++ b/checks/ps.include
@@ -490,8 +490,11 @@ def check_ps_common(item, params, parsed, cpu_cores = 1, info_name =
"processes"
infotext += " (ok from %d to %d)(!)" % (okmin, okmax)
if virtual_size:
- for size, name in [ (virtual_size, "virtual"), (resident_size,
"resident") ]:
- infotext += " %.1f MB %s" % ((size / 1024.0), name)
+ for size, name, title in [
+ (virtual_size, "virtual", "virtual"),
+ (resident_size, "resident", "physical"),
+ ]:
+ infotext += " %.1f MB %s" % ((size / 1024.0), title)
if "%s_levels" % name in params:
warn_level, crit_level = params["%s_levels" % name]
if size * 1024 >= crit_level: