Module: check_mk
Branch: master
Commit: 126e1422af3f6615ab251e638e7245567a0a83f8
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=126e1422af3f66…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Apr 8 11:02:02 2014 +0200
FIX oracle_tablespaces: fixed bug when using dynamic filesystem levels
The check did not process the dynamic levels correctly.
If there was a rule with dynamic filesystem levels, e.g.
<ul>
<li>1 TB - 5%/2% free</li>
<li>500 GB - 6%/3% free</li>
<li>200 GB - 10%/4% free</li>
<li>500 MB - 20%/15% free</li>
</ul>
and the filesystems size was 700GB, the levels of the 500 MB rule were actually used.
---
.werks/789 | 18 ++++++++++++++++++
ChangeLog | 1 +
checks/oracle_tablespaces | 5 ++---
3 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/.werks/789 b/.werks/789
new file mode 100644
index 0000000..fda3da3
--- /dev/null
+++ b/.werks/789
@@ -0,0 +1,18 @@
+Title: oracle_tablespaces: fixed bug when using dynamic filesystem levels
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i3
+Date: 1396947332
+
+The check did not process the dynamic levels correctly.
+If there was a rule with dynamic filesystem levels, e.g.
+<ul>
+<li>1 TB - 5%/2% free</li>
+<li>500 GB - 6%/3% free</li>
+<li>200 GB - 10%/4% free</li>
+<li>500 MB - 20%/15% free</li>
+</ul>
+and the filesystems size was 700GB, the levels of the 500 MB rule were actually used.
+
diff --git a/ChangeLog b/ChangeLog
index c2abeee..05ade8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,7 @@
* 0787 FIX: df: fixed problems on some filesystem checks when legacy check parameters where used...
* 0803 FIX: agent_ibmsvc: raw data for System Info Check and License Check now in correct format...
* 0788 FIX: oracle_tablespaces: now able to bear None values as warn/crit levels...
+ * 0789 FIX: oracle_tablespaces: fixed bug when using dynamic filesystem levels...
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled by filter)
diff --git a/checks/oracle_tablespaces b/checks/oracle_tablespaces
index 7ed2eec..ca850cf 100644
--- a/checks/oracle_tablespaces
+++ b/checks/oracle_tablespaces
@@ -102,12 +102,11 @@ def get_tablespace_levels_in_bytes(size_bytes, params):
else:
# A list of levels. Choose the correct one depending on the
# size of the current tablespace
- found = False
for to_size, this_levels in params.get("levels"):
if size_bytes > to_size:
warn, crit = this_levels
- found = True
- if not found:
+ break
+ else:
return (None, None)
if magic:
Module: check_mk
Branch: master
Commit: e820d79af2bc40cb806b3a479d67089524646346
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e820d79af2bc40…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Apr 4 15:09:54 2014 +0200
FIX Availability: fixed memory leak in table statehist
The cleanup procedure of the livestatus table statehist missed some items..
This has been fixed.
---
ChangeLog | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 73459b4..c2abeee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,8 +19,8 @@
* 0777 FIX: special agent emcvnx: did not work with security file authentication...
* 0786 FIX: zfsget: fixed compatibility with older Solaris agents...
* 0809 FIX: brocade_fcport: Fixed recently introduced problem with port speed detection
- * 0803 FIX: agent_ibmsvc: raw data for System Info Check and License Check now in correct format...
* 0787 FIX: df: fixed problems on some filesystem checks when legacy check parameters where used...
+ * 0803 FIX: agent_ibmsvc: raw data for System Info Check and License Check now in correct format...
* 0788 FIX: oracle_tablespaces: now able to bear None values as warn/crit levels...
Multisite:
Module: check_mk
Branch: master
Commit: e8a79db20d1fce7a3abea3ee07922fb43c5c5527
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e8a79db20d1fce…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Apr 8 10:46:52 2014 +0200
FIX oracle_tablespaces: now able to bear None values as warn/crit levels
The levels in the oracle_tablespaces parameters could be set to None
if dynamic levels were used, but the filesystem was not within the limits
of the dynamic levels.
This caused an invalid check output.
---
.werks/788 | 11 +++++++++++
ChangeLog | 1 +
checks/oracle_tablespaces | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/788 b/.werks/788
new file mode 100644
index 0000000..f692950
--- /dev/null
+++ b/.werks/788
@@ -0,0 +1,11 @@
+Title: oracle_tablespaces: now able to bear None values as warn/crit levels
+Level: 1
+Component: checks
+Version: 1.2.5i3
+Date: 1396946661
+Class: fix
+
+The levels in the oracle_tablespaces parameters could be set to None
+if dynamic levels were used, but the filesystem was not within the limits
+of the dynamic levels.
+This caused an invalid check output.
diff --git a/ChangeLog b/ChangeLog
index 6f647db..ac71639 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -20,6 +20,7 @@
* 0786 FIX: zfsget: fixed compatibility with older Solaris agents...
* 0809 FIX: brocade_fcport: Fixed recently introduced problem with port speed detection
* 0787 FIX: df: fixed problems on some filesystem checks when legacy check parameters where used...
+ * 0788 FIX: oracle_tablespaces: now able to bear None values as warn/crit levels...
Multisite:
* 0779 Hostgroups (Summary): Empty hostgroups are no longer shown (can be re-enabled by filter)
diff --git a/checks/oracle_tablespaces b/checks/oracle_tablespaces
index a8c01c6..7ed2eec 100644
--- a/checks/oracle_tablespaces
+++ b/checks/oracle_tablespaces
@@ -257,7 +257,7 @@ def check_oracle_tablespaces(item, params, info):
else:
status = max(1, status)
- perfdata = [ ("size", current_size, max_size - warn, max_size - crit),
+ perfdata = [ ("size", current_size, max_size - (warn or 0), max_size - (crit or 0)),
("used", used),
("max_size", max_size) ]
Module: check_mk
Branch: master
Commit: b74d6fb6df0a81e73c6403b2b736f85f52de7a38
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b74d6fb6df0a81…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 8 10:09:15 2014 +0200
Allow availability of multisite BI aggregates at once
Views containing multisite BI aggregates now also have the button <i>Availability</i> at
the top of the view. Multisite BI aggregates can thus be displayed in one availability
table - just as for hosts and services.
---
.werks/756 | 10 ++
ChangeLog | 3 +
web/htdocs/bi.py | 9 +-
web/htdocs/check_mk.css | 38 -------
web/htdocs/pages.css | 35 ++++++
web/htdocs/views.py | 20 +++-
web/plugins/pages/shipped.py | 1 -
web/plugins/views/availability.py | 215 +++++++++++++++++++++++++------------
web/plugins/views/bi.py | 4 +-
9 files changed, 220 insertions(+), 115 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=b74d6fb6df…
Module: check_mk
Branch: master
Commit: 05b03b7b4effb4ad4f0ff4516a451ae833976752
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=05b03b7b4effb4…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Mon Apr 7 15:56:53 2014 +0200
agent_ibmsvc: a version additionally calling lsdrive
---
agents/special/agent_ibmsvc | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/agents/special/agent_ibmsvc b/agents/special/agent_ibmsvc
index 4a61a04..6a3e64f 100755
--- a/agents/special/agent_ibmsvc
+++ b/agents/special/agent_ibmsvc
@@ -163,6 +163,14 @@ for module in command_options.keys():
else:
cmd += "%s -nohdr -delim :;" % module
+ # in these 2 sections we need to run the lsdrive command additionaly
+ # to find out if there are drives. Only if there are some, the drives
+ # checks need to be created by inventory
+ if module in [ "lsnodestats", "lssystemstats" ]:
+ cmd += "echo \[lsdrive start\];"
+ cmd += "lsdrive -delim : -nohdr;"
+ cmd += "echo \[lsdrive end\];"
+
cmd += "'"
if opt_debug:
Module: check_mk
Branch: master
Commit: e88c5e85db7196131c37cef26fa21acfb38c1310
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e88c5e85db7196…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Mon Apr 7 15:58:45 2014 +0200
agent_ibmsvc: removing call of lsdrive again, because it is only useful at inventory, but always called at every check
---
agents/special/agent_ibmsvc | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/agents/special/agent_ibmsvc b/agents/special/agent_ibmsvc
index 6a3e64f..d409a97 100755
--- a/agents/special/agent_ibmsvc
+++ b/agents/special/agent_ibmsvc
@@ -162,15 +162,6 @@ for module in command_options.keys():
cmd += "lseventlog -expired no -fixed no -monitoring no -order severity -message no -delim : -nohdr;"
else:
cmd += "%s -nohdr -delim :;" % module
-
- # in these 2 sections we need to run the lsdrive command additionaly
- # to find out if there are drives. Only if there are some, the drives
- # checks need to be created by inventory
- if module in [ "lsnodestats", "lssystemstats" ]:
- cmd += "echo \[lsdrive start\];"
- cmd += "lsdrive -delim : -nohdr;"
- cmd += "echo \[lsdrive end\];"
-
cmd += "'"
if opt_debug: