Module: check_mk
Branch: master
Commit: 7e5170b4fc6b9a48f86708913ad660fd73a30c56
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7e5170b4fc6b9a…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Apr 28 16:24:04 2016 +0200
3526 FIX Inventory scripts are no longer called when no data is available for their section
This fixes an error where the aix_packages inventory plugin was always called on any host.
---
inventory/aix_packages | 5 -----
1 file changed, 5 deletions(-)
diff --git a/inventory/aix_packages b/inventory/aix_packages
index 869d26c..fcfe7e3 100644
--- a/inventory/aix_packages
+++ b/inventory/aix_packages
@@ -36,12 +36,7 @@
def inv_aix_packages(info):
- if not info:
- return # Empty section
-
paclist = inv_tree("software.packages:")
- if not info:
- return
headers = info[0]
headers[0] = headers[0].lstrip("#")
for line in info[1:]:
Module: check_mk
Branch: master
Commit: 8efcc901311746173eb5ab9eda5bce07341e3a06
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8efcc901311746…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Apr 28 16:24:04 2016 +0200
3526 FIX Inventory scripts are no longer called when no data is available for their section
This fixes an error where the aix_packages inventory plugin was always called on any host.
---
.werks/3526 | 9 +++++++++
ChangeLog | 1 +
modules/inventory.py | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3526 b/.werks/3526
new file mode 100644
index 0000000..9343406
--- /dev/null
+++ b/.werks/3526
@@ -0,0 +1,9 @@
+Title: Inventory scripts are no longer called when no data is available for their section
+Level: 1
+Component: inv
+Compatible: compat
+Version: 1.2.9i1
+Date: 1461853219
+Class: fix
+
+This fixes an error where the aix_packages inventory plugin was always called on any host.
diff --git a/ChangeLog b/ChangeLog
index 4cfb241..7e42481 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -388,6 +388,7 @@
* 3013 FIX: Inventory: snmp inventory plugins never use cached data...
* 3340 FIX: Fixed exception when searching for software package sizes
* 3025 FIX: solaris_pkginfo: the last element of the reported software package list was always missing
+ * 3526 FIX: Inventory scripts are no longer called when no data is available for their section...
1.2.8b1:
diff --git a/modules/inventory.py b/modules/inventory.py
index 07ae365..0070cf2 100644
--- a/modules/inventory.py
+++ b/modules/inventory.py
@@ -254,7 +254,7 @@ def do_inv_for(hostname):
raise # Otherwise simply ignore missing agent section
continue
- if info == None: # section not present (None or [])
+ if not info: # section not present (None or [])
# Note: this also excludes existing sections without info..
continue
Module: check_mk
Branch: master
Commit: 1b3a79f045f32502cc99019fb152597f0f21f9ca
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1b3a79f045f325…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Apr 28 15:15:40 2016 +0200
Updated Werk description
---
.werks/2934 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.werks/2934 b/.werks/2934
index 0763e4b..6a92c35 100644
--- a/.werks/2934
+++ b/.werks/2934
@@ -1,5 +1,5 @@
-Title: all temperature checks rewritten to use the shared temperature api
-Level: 3
+Title: All temperature checks now use common code and have the same features
+Level: 2
Component: checks
Compatible: incomp
Version: 1.2.7i4
Module: check_mk
Branch: master
Commit: 9950613ccc196701417d49afc08e92881b2ef448
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9950613ccc1967…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Apr 28 12:25:56 2016 +0200
3525 FIX Nagios Core: fixed bug, incomplete cleanup of process tree on service check timeout
Datasource programs like the special agents for ESX and NetApp did not get killed correctly,
when the service timeout was reached. This bug only applies to the Nagios Core.
---
.werks/3525 | 10 ++++++++++
ChangeLog | 3 ++-
modules/check_mk_base.py | 14 +++++++++++---
3 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/.werks/3525 b/.werks/3525
new file mode 100644
index 0000000..03205ad
--- /dev/null
+++ b/.werks/3525
@@ -0,0 +1,10 @@
+Title: Nagios Core: fixed bug, incomplete cleanup of process tree on service check timeout
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1461838635
+Class: fix
+
+Datasource programs like the special agents for ESX and NetApp did not get killed correctly,
+when the service timeout was reached. This bug only applies to the Nagios Core.
diff --git a/ChangeLog b/ChangeLog
index 6ea00c3..d66279f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -197,9 +197,9 @@
* 3126 FIX: fixed crash in some wmi-based checks when items disappear from the agent output
* 3443 FIX: mk_logwatch: Fixed exception in agent plugin configuration parsing error handling
* 3444 FIX: mssql: Reworked agent plugin to use less WMI calls
+ * 3525 FIX: Nagios Core: fixed bug, incomplete cleanup of process tree on service check timeout...
Multisite:
- * 3127 new icon on services that are outside their check period
* 3187 notification view: new filter for log command via regex
* 3228 The BI Treestate painter now exports the aggregation tree as real json structure
* 3288 Implemented grouping of services in table views...
@@ -211,6 +211,7 @@
NOTE: Please refer to the migration notes!
* 3397 Show IP addresses of a host when hovering over its name...
* 3436 Views/Dashobards: Can now be published to members of contact groups...
+ * 3127 new icon on services that are outside their check period
* 3059 FIX: Fixed highlighting of availability timeline time slices
* 3175 FIX: Fix timeranges of graphs that are embedded in a dashboard...
* 3076 FIX: fixed broken views in check_mk raw edition
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 167fd94..903ab58 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -786,9 +786,17 @@ def get_agent_info_program(commandline):
vverbose("Calling external program %s\n" % commandline)
try:
- p = subprocess.Popen(commandline, shell=True, stdin=open(os.devnull),
- stdout=subprocess.PIPE, stderr = subprocess.PIPE,
- preexec_fn=os.setsid, close_fds=True)
+ if monitoring_core == "cmc":
+ p = subprocess.Popen(commandline, shell=True, stdin=open(os.devnull),
+ stdout=subprocess.PIPE, stderr = subprocess.PIPE,
+ preexec_fn=os.setsid, close_fds=True)
+ else:
+ # We can not create a separate process group when running Nagios
+ # Upon reaching the service_check_timeout Nagios only kills the process
+ # group of the active check.
+ p = subprocess.Popen(commandline, shell=True, stdin=open(os.devnull),
+ stdout=subprocess.PIPE, stderr = subprocess.PIPE,
+ close_fds=True)
stdout, stderr = p.communicate()
exitstatus = p.returncode
except MKTimeout:
Module: check_mk
Branch: master
Commit: e029dbff25c2ce29bbf5597fc98be25f54da5dfe
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e029dbff25c2ce…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Apr 28 09:26:03 2016 +0200
3445 mssql_versions: With up-to-date agent plugin it is now writing out the used edition
---
.werks/3445 | 9 +++++++++
ChangeLog | 1 +
2 files changed, 10 insertions(+)
diff --git a/.werks/3445 b/.werks/3445
new file mode 100644
index 0000000..e3e2827
--- /dev/null
+++ b/.werks/3445
@@ -0,0 +1,9 @@
+Title: mssql_versions: With up-to-date agent plugin it is now writing out the used edition
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1461828353
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index f48814d..9ab192d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -71,6 +71,7 @@
* 3473 fileinfo.groups: the include patterns now also support the pattern YESTERDAY, in addition to DATE...
* 3428 bluenet2_powerrail, bluenet2_powerrail.rcm, bluenet2_powerrail.temp, bluenet2_powerrail.humidity: new checks for Bachmann Bluenet2 Powerrails which support the BACHMANN-bluenet2-MIB
* 3524 fileinfo, fileinfo.groups: both checks are now cluster ready...
+ * 3445 mssql_versions: With up-to-date agent plugin it is now writing out the used edition
* 3073 FIX: windows agent: relative paths to mrpe scripts are now treated as relative to the agent installation directory...
* 3061 FIX: mk_jolokia: Fixed debugging of the agent plugin
* 3074 FIX: windows agent: fixed incorrect values for 32-bit performance counters