Module: check_mk
Branch: master
Commit: 22c67ad479a56aadf2267df0cd6b3a5a4675caef
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=22c67ad479a56a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 17 10:34:51 2015 +0100
Fixed some English texts
---
web/plugins/wato/check_mk_configuration.py | 2 +-
web/plugins/wato/check_parameters.py | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/web/plugins/wato/check_mk_configuration.py b/web/plugins/wato/check_mk_configuration.py
index 3fffbd5..6ab4429 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -974,7 +974,7 @@ register_configvar(group,
"password_policy",
Dictionary(
title = _('htpasswd: Password Policy'),
- help = _('You can define some rules to which each user password aher. By default '
+ help = _('You can define some rules to which each user password ahers. By default '
'all passwords are accepted, even ones which are made of only a single character, '
'which is obviously a bad idea. Using this option you can enforce your users '
'to choose more secure passwords.'),
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index c97454c..44a8e60 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -2034,7 +2034,7 @@ register_check_parameters(
),
TextAscii(
title = _("Explicit Queue Names"),
- help = _("Specify queue names that the rule should apply"),
+ help = _("Specify queue names that the rule should apply to"),
),
"first"
)
@@ -3841,7 +3841,7 @@ register_check_parameters(
)),]),
TextAscii(
title = _("Scheduler Job Name"),
- help = _("Here you can set explicit Scheduler-Jobs by defining them via SID, Job-Owner "
+ help = _("Here you can set explicit Scheduler-Jobs by defining them via SID, Job-Owner "
"and Job-Name, separated by a dot, for example <b>TUX12C.SYS.PURGE_LOG</b>"),
regex = '.+\..+',
allow_empty = False),
@@ -4847,7 +4847,7 @@ register_rule(group + '/' + subgroup_networking,
)),
("include_items", ListOfStrings(
title = _("Restrict interface items"),
- help = _("Only interface with this item names are put into this group."),
+ help = _("Only interface with these item names are put into this group."),
)),
("single", Checkbox(
title = _("Group separately"),
@@ -5940,8 +5940,8 @@ register_check_parameters(
Tuple(
title = _("Levels on trends in degrees Celsius per time range"),
elements = [
- Integer(title = _("Warning at"), unit = _("C / range"), default_value = 5),
- Integer(title = _("Critical at"), unit = _("C / range"), default_value = 10)
+ Integer(title = _("Warning at"), unit = _(u"°C / range"), default_value = 5),
+ Integer(title = _("Critical at"), unit = _(u"°C / range"), default_value = 10)
]
)
),
Module: check_mk
Branch: master
Commit: 6685a043813140fd7b36b1c3d36edf739dc3c4eb
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6685a043813140…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Feb 17 09:54:43 2015 +0100
#1944 FIX hr_mem: no longer reports incorrect memory values when cached memory values are broken
Some devices reported negative used cached values. As a result the
cached memory was added to to the total memory - instead of substracted.
This has been fixed. If the value for the used cache seems to be broken,
the check uses the total cache value instead.
This new behaviour also applies to the memory buffers data.
---
.werks/1944 | 13 +++++++++++++
ChangeLog | 1 +
checks/hr_mem | 5 ++++-
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/.werks/1944 b/.werks/1944
new file mode 100644
index 0000000..e365c49
--- /dev/null
+++ b/.werks/1944
@@ -0,0 +1,13 @@
+Title: hr_mem: no longer reports incorrect memory values when cached memory values are broken
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i1
+Date: 1424162791
+Class: fix
+
+Some devices reported negative used cached values. As a result the
+cached memory was added to to the total memory - instead of substracted.
+This has been fixed. If the value for the used cache seems to be broken,
+the check uses the total cache value instead.
+This new behaviour also applies to the memory buffers data.
diff --git a/ChangeLog b/ChangeLog
index d6d1576..56da789 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -159,6 +159,7 @@
* 1941 FIX: df.include: fixed exception on emtpy filesystems...
* 1942 FIX: netapp_api_volumes: fixed exception when performance data generation was enabled
* 1993 FIX: solaris_multipath: Fix detection of expected number of paths
+ * 1944 FIX: hr_mem: no longer reports incorrect memory values when cached memory values are broken...
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request, added mailto link for error report...
diff --git a/checks/hr_mem b/checks/hr_mem
index 0942086..e3ba95e 100644
--- a/checks/hr_mem
+++ b/checks/hr_mem
@@ -60,7 +60,10 @@ def check_hr_mem(_no_item, params, info):
cached_mb = 0
for hrtype, hrdescr, hrunits, hrsize, hrused in info:
if hrdescr in [ "Cached memory", "Memory buffers" ]:
- cached_mb += saveint(hrused) * saveint(hrunits) / 1048576.0
+ hr_mem = saveint(hrused)
+ if hr_mem < 0: # some devices report negative used cache values...
+ hr_mem = saveint(hrsize)
+ cached_mb += hr_mem * saveint(hrunits) / 1048576.0
totalram_mb, ramused_mb = usage.get(".1.3.6.1.2.1.25.2.1.2", (0,0))
ramused_mb -= cached_mb
Module: check_mk
Branch: master
Commit: 6eae8c038a8e472f4e51651b9982472a3bc599a5
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6eae8c038a8e47…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 16 13:27:56 2015 +0100
#1993 FIX solaris_multipath: Fix detection of expected number of paths
---
.werks/1993 | 10 ++++++++++
ChangeLog | 1 +
checks/solaris_multipath | 32 ++++++++++++++++++++------------
3 files changed, 31 insertions(+), 12 deletions(-)
diff --git a/.werks/1993 b/.werks/1993
new file mode 100644
index 0000000..61af534
--- /dev/null
+++ b/.werks/1993
@@ -0,0 +1,10 @@
+Title: solaris_multipath: Fix detection of expected number of paths
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1424089642
+
+
diff --git a/ChangeLog b/ChangeLog
index de03927..d6d1576 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -158,6 +158,7 @@
* 1940 FIX: ps: Fixed a rare crash on malformed agent output...
* 1941 FIX: df.include: fixed exception on emtpy filesystems...
* 1942 FIX: netapp_api_volumes: fixed exception when performance data generation was enabled
+ * 1993 FIX: solaris_multipath: Fix detection of expected number of paths
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request, added mailto link for error report...
diff --git a/checks/solaris_multipath b/checks/solaris_multipath
index ddca400..55d8afb 100644
--- a/checks/solaris_multipath
+++ b/checks/solaris_multipath
@@ -28,33 +28,41 @@
# <<<solaris_multipath>>>
# /dev/rdsk/c4t600601608CB02A00DCFD2EEB19A0E111d0s2 4 4
+# Note: the number of total paths is not correct. After maintainance
+# they is too high. Also in case of broken paths the number of total
+# paths sometimes changes. So we just use that for informational
+# output. The discovery remembers the number of operational paths
+# and we check agains that later.
+
def inventory_solaris_multipath(info):
- for device, total, ok in info:
+ for device, total, operational in info:
item = device.split('/')[-1]
- yield item, total
+ yield item, int(operational)
def check_solaris_multipath(item, params, info):
- for device, total, ok in info:
+ for device, total, operational in info:
if item == device.split('/')[-1]:
- ok = int(ok)
- total = int(total)
+ operational = int(operational)
+ total = int(total)
+
+ infotext = "%d paths operational, %d paths total" % (operational, total)
if not params:
state = 1
- infotext = "%d paths up, but total paths unknown, redo service discovery" % ok
+ infotext += ", expected paths unknown, please redo service discovery"
else:
- itotal = int(params)
- infotext = "%d of %d paths up" % (ok, itotal)
- if total > itotal:
+ expected = int(params) # should be int, just for legacy reasons
+ if operational > expected:
state = 1
- infotext = "%d paths up, but total paths increased to %d, redo service discovery" % (ok, total)
- elif itotal == ok:
+ elif expected == operational:
state = 0
- elif itotal >= ok * 2: # less than half of paths ok
+ elif expected >= operational * 2: # less than half of paths operational
state = 2
else:
state = 1
+ if state:
+ infotext += ", %d paths expected to be operational" % expected
return state, infotext