Module: check_mk
Branch: master
Commit: e142be7c65195335386f45fbe06722d5ef200b86
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e142be7c651953…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 22 18:14:29 2012 +0100
ntp: do not check 'when' anymore
---
ChangeLog | 2 ++
checks/ntp | 9 +++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 12b96e4..60b24ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -51,6 +51,8 @@
in order to be consistent with the Linux load check
* dell_powerconnect_cpu: hopefully correctly handle incomplete
output from agent now.
+ * ntp: do not check 'when' anymore since it can produce false
+ alarms.
Multisite:
* Added several missing localization strings
diff --git a/checks/ntp b/checks/ntp
index 0e988f5..8474197 100644
--- a/checks/ntp
+++ b/checks/ntp
@@ -110,8 +110,13 @@ def check_ntp_server_state(line, params):
return (2, infotext, offset, jitter)
elif stratum >= maxstratum:
return (2, infotext + (", stratum is too high (max allowed is %d)" % (maxstratum - 1)))
- elif when > 2*poll and when > 128: # when can exceed poll for small polling values
- return (3, "response due since %d secs%s" % (when - poll, infotext), offset, jitter)
+
+ # The following check in some cases produces false alarms. The poll interval can
+ # switch back to a low value while 'when' still being at a high value. While
+ # this happens only for a short time, it will make the check alarm. So we
+ # rather switch this condition off:
+ # elif when > 2*poll and when > 128: # when can exceed poll for small polling values
+ # return (3, "response due since %d secs%s" % (when - poll, infotext), offset, jitter)
elif abs(offset) >= warn:
return (1, "offset too high" + infotext, offset, jitter)
Module: check_mk
Branch: master
Commit: c505863948d2e2df9e93d94c1c91b17f773c0516
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c505863948d2e2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 21 21:26:03 2012 +0100
FIX: hr_mem: handle rare case where more than one entry is present
---
ChangeLog | 2 ++
checks/hr_mem | 9 +++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 08d36ea..399296a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -45,6 +45,8 @@
* FIX: fix inventory of f5_bigip_temp
* mk_oracle (lnx+win): Fixed TEMP tablespace size calculations
* ps: output node process is running on (only for clusters)
+ * hr_mem: handle rare case where more than one entry is present
+ (this prevents an exception of pfSense)
Multisite:
* Added several missing localization stringsw
diff --git a/checks/hr_mem b/checks/hr_mem
index d3efa88..4f334eb 100644
--- a/checks/hr_mem
+++ b/checks/hr_mem
@@ -44,8 +44,12 @@ def check_hr_mem(item, params, info):
".1.3.6.1.2.1.25.2.1.3" ]:
size = saveint(hrsize) * saveint(hrunits) / 1048576.0
used = saveint(hrused) * saveint(hrunits) / 1048576.0
- usage[hrtype] = (size, used)
-
+ # We use only the first entry of each type. We have
+ # seen devices (pfSense), that have lots of additional
+ # entries that are not useful.
+ if hrtype not in usage:
+ usage[hrtype] = (size, used)
+
# Account for cached memory (this works at least for systems using
# the UCD snmpd (such as Linux based applicances)
cached_mb = 0
@@ -57,6 +61,7 @@ def check_hr_mem(item, params, info):
ramused_mb -= cached_mb
totalvirt_mb, virtused_mb = usage.get(".1.3.6.1.2.1.25.2.1.3", (0,0))
totalmem_mb, totalused_mb = totalram_mb + totalvirt_mb, ramused_mb + virtused_mb
+
if totalmem_mb > 0:
totalused_perc = 100 * totalused_mb / totalram_mb
Module: check_mk
Branch: master
Commit: a1604fe5b8938f9a27144acf44717a5b2f2aa246
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a1604fe5b8938f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 21 17:49:25 2012 +0100
Updated bug entries #0632
---
.bugs/632 | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.bugs/632 b/.bugs/632
index cb8a441..175c395 100644
--- a/.bugs/632
+++ b/.bugs/632
@@ -1,9 +1,9 @@
Title: No Multisite-permission but login
Component: multisite
-State: open
+Class: bug
+State: done
Date: 2012-02-14 16:24:10
Targetversion: 1.2.0
-Class: bug
If you have no role and thus no permission to use Multisite, then
you can login anyways (via Cookie-based login or other). But
@@ -16,3 +16,7 @@ Solution:
1. Do not allow to save a user without any roles
2. (in addition): Add a logout link to the error
message.
+
+2012-02-21 17:49:12: changed state open -> done
+Lars has done this. The user is automatically logged
+out again in such a case.
Module: check_mk
Branch: master
Commit: 642f5dd2c6af04aadb0fde377ec0ee01dbe3d596
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=642f5dd2c6af04…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 21 17:44:22 2012 +0100
Updated bug entries #0650
---
.bugs/650 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/650 b/.bugs/650
index 9915edb..98fc5ab 100644
--- a/.bugs/650
+++ b/.bugs/650
@@ -1,8 +1,11 @@
Title: OMD shared mode: <site>/etc/auth.secret not writeable
Component: multisite
-State: open
+Class: bug
+State: done
Date: 2012-02-13 16:05:37
Targetversion: future
-Class: bug
The file can not be written by the system wide apache.
+
+2012-02-21 17:44:15: changed state open -> done
+Already has been fixed by Lars some days ago.
Module: check_mk
Branch: master
Commit: 161a0fdc1f3f4e5acb9becca4e6ac40afeaa5c7b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=161a0fdc1f3f4e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Feb 21 17:32:32 2012 +0100
Updated bug entries #0609
---
.bugs/609 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/609 b/.bugs/609
index c776645..6190957 100644
--- a/.bugs/609
+++ b/.bugs/609
@@ -1,11 +1,14 @@
Title: User Migration nach WatoNG
Component: wato
-State: open
+Class: bug
+State: done
Date: 2012-01-30 22:18:13
Targetversion: 1.2.0
-Class: bug
Die Userverwaltung in WatoNG liest weder bestehende User aus der OMD htpasswd
datei aus, noch werden die bestehenden User aus dieser Datei behalten wenn
man einen User in WatoNG anlegt. Auch wenn das eigentlich Funktionieren
sollte, tat es das noch bei keiner Seite die ich migriert habe.
+
+2012-02-21 17:32:29: changed state open -> done
+Das ist seit dem 16. Februar repariert.