Module: check_mk
Branch: master
Commit: f5654a7a4c069117ca06d8cf350696707593c39d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f5654a7a4c0691…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon Mar 27 15:24:08 2017 +0200
4549 FIX citrix_licenses: Fixed always ok state even if all licenses are used
Previously the state has been always been ok, even if no rule has been set
(with default on "Go crit if all licenses are used") and no license has
been left.
Change-Id: I47a976a2b5baf8b472e37fc3c61ccec7062f8f02
---
.werks/4549 | 12 ++++++++++++
checks/license.include | 4 ++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/.werks/4549 b/.werks/4549
new file mode 100644
index 0000000..2923c8e
--- /dev/null
+++ b/.werks/4549
@@ -0,0 +1,12 @@
+Title: citrix_licenses: Fixed always ok state even if all licenses are used
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1490620927
+Class: fix
+
+Previously the state has been always been ok, even if no rule has been set
+(with default on "Go crit if all licenses are used") and no license has
+been left.
diff --git a/checks/license.include b/checks/license.include
index 269086b..e5ef665 100644
--- a/checks/license.include
+++ b/checks/license.include
@@ -45,9 +45,9 @@ def license_check_levels(have, used, params):
else:
infotext = "used %d licenses, but you have only %d" % (used, have)
- if crit != None and used > crit:
+ if crit != None and used >= crit:
status = 2
- elif warn != None and used > warn:
+ elif warn != None and used >= warn:
status = 1
else:
status = 0
Module: check_mk
Branch: master
Commit: 71c51fc41a0cf7fcea2d40765460dac514d376fd
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=71c51fc41a0cf7…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Mar 27 14:55:36 2017 +0200
8628 FIX printer_alerts: Fix discovery when there are no alerts
Previously, the discovery would only work, when the device listed
some alerts, but not in the (hopefully more common) case that the
list of alerts was empty. This has been fixed.
Change-Id: I5639f4bac49a391844831979c3fa609c6c85801a
---
.werks/8628 | 13 +++++++++++++
checks/printer_alerts | 4 ++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/8628 b/.werks/8628
new file mode 100644
index 0000000..7f24dde
--- /dev/null
+++ b/.werks/8628
@@ -0,0 +1,13 @@
+Title: printer_alerts: Fix discovery when there are no alerts
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1490619155
+
+Previously, the discovery would only work, when the device listed
+some alerts, but not in the (hopefully more common) case that the
+list of alerts was empty. This has been fixed.
diff --git a/checks/printer_alerts b/checks/printer_alerts
index 5a33357..c1041f9 100644
--- a/checks/printer_alerts
+++ b/checks/printer_alerts
@@ -244,6 +244,6 @@ check_info["printer_alerts"] = {
'7', # prtAlertCode
'8', # prtAlertDescription
]),
- 'snmp_scan_function': \
- lambda oid: oid(".1.3.6.1.2.1.43.11.1.1.6.1.1") != None,
+ 'handle_empty_info': True,
+ 'snmp_scan_function': lambda oid: oid(".1.3.6.1.2.1.43.11.1.1.6.1.1") != None,
}
Module: check_mk
Branch: master
Commit: 0cbd5e3a57c087bd806fd80441d029d52d81d834
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0cbd5e3a57c087…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Mar 27 14:57:20 2017 +0200
Update Werk description
Change-Id: I82da89b7fcdf823ef9664161e18d027c65572bc7
---
.werks/8628 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.werks/8628 b/.werks/8628
index 7f24dde..4e3a59c 100644
--- a/.werks/8628
+++ b/.werks/8628
@@ -11,3 +11,5 @@ Date: 1490619155
Previously, the discovery would only work, when the device listed
some alerts, but not in the (hopefully more common) case that the
list of alerts was empty. This has been fixed.
+
+Thanks to Andreas Döhler for the patch!
Module: check_mk
Branch: master
Commit: afbb7c7ea73acbc2051236161d4386502614a57a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=afbb7c7ea73acb…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 27 13:59:32 2017 +0200
Updated werk
Change-Id: I83aad91225ee925a1728bea8b3005b4b17be9043
---
.werks/4514 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.werks/4514 b/.werks/4514
index fdb14f0..007ce21 100644
--- a/.werks/4514
+++ b/.werks/4514
@@ -10,3 +10,5 @@ Class: fix
The debian packages created by the agent bakery contained the whole
agent configuration. This could contain secrets that should not be
available with the description, e.g. when using the alert handlers.
+
+The RPMs and Debian packages now have the same description.
Module: check_mk
Branch: master
Commit: df12b312b04c56d0ea48a2de14d98c6012c0f2d0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=df12b312b04c56…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 27 13:59:52 2017 +0200
Updated bug entries #2843
Change-Id: I36b923c8910a59fd967da702ecdcef8de88ae9cd
---
.bugs/2843 | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.bugs/2843 b/.bugs/2843
index b1fcd20..ee236ee 100644
--- a/.bugs/2843
+++ b/.bugs/2843
@@ -1,9 +1,9 @@
Title: SSH private key of linux remote handler visible in agent package
Component: agents
-State: open
+Class: bug
+State: done
Date: 2017-02-14 15:05:49
Targetversion: 1.4.0
-Class: bug
The private SSH key for remote login and execution of remote alert handlers
is part of the agent configuration because it is done in an agent bakery
@@ -17,3 +17,6 @@ a) Try to remove just that key from the visiable agent configuration (hack)
b) Remove the information about the configuration totally
c) Use the valuespec totext() for the information rather than repr() (if
possible)
+
+2017-03-27 13:59:50: changed state open -> done
+Has been fixed by removing the config from the description of the deb packages
Module: check_mk
Branch: master
Commit: 2d6453a935a0f8d863ba53e9fc5e04cff979f830
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2d6453a935a0f8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 27 13:59:06 2017 +0200
4514 FIX Removed agent configuration from debian package descriptions
The debian packages created by the agent bakery contained the whole
agent configuration. This could contain secrets that should not be
available with the description, e.g. when using the alert handlers.
Change-Id: I239702a694c2201782f1d3b527e917db1116fbda
---
.werks/4514 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/.werks/4514 b/.werks/4514
new file mode 100644
index 0000000..fdb14f0
--- /dev/null
+++ b/.werks/4514
@@ -0,0 +1,12 @@
+Title: Removed agent configuration from debian package descriptions
+Level: 1
+Component: agents
+Compatible: compat
+Edition: cee
+Version: 1.5.0i1
+Date: 1490615882
+Class: fix
+
+The debian packages created by the agent bakery contained the whole
+agent configuration. This could contain secrets that should not be
+available with the description, e.g. when using the alert handlers.