Module: check_mk
Branch: master
Commit: 350b01ff75e6951421cce0c4a24492f3f1d88dd4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=350b01ff75e695…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jan 20 17:46:54 2015 +0100
#1846 Keep track of changes of software and hardware
The HW/SW-Inventory module now keeps tracks of changes of the hardware and
software on a system: Each time an inventory is being done the outcome is
being compared with the data from the last time. If a change has been detected,
a copy of the previous inventory data is being stored for later reference (in
<tt>var/check_mk/inventory_archive</tt>). The check <tt>HW/SW Inventory</tt>
can be configured with the WATO ruleset <i>Do hardware/software Inventory</i>
to report a WARN or CRIT state if one of hardware or software has changed.
Secondly - if you are viewing details of a host - a button <i>Inventory
History</i> brings you to a new view of the historic development of the
host's hardware and software. At the beginning this button is hidden
behind the <i>[...]</i>-button (as usual). The history shows you each point
of time where at least one item of the inventory data has changed. That
way you can easily keep track of new installed software, exchanged
hard disks, BIOS updates and much more.
---
.werks/1846 | 23 +++
ChangeLog | 1 +
checks/check_cmk_inv | 8 +-
doc/treasures/liveproxy/liveproxyd | 15 ++
modules/check_mk.py | 12 +-
modules/inventory.py | 113 ++++++++++----
web/htdocs/inventory.py | 172 +++++++++++++++++++-
web/htdocs/status.css | 5 +
web/htdocs/views.css | 8 +
web/htdocs/views.py | 8 +-
web/plugins/views/datasources.py | 2 +-
web/plugins/views/inventory.py | 302 ++++++++++++++++++++++++++++++------
web/plugins/views/sorters.py | 4 +-
web/plugins/visuals/infos.py | 5 +
web/plugins/wato/inventory.py | 36 +++--
15 files changed, 614 insertions(+), 100 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=350b01ff75…
Module: check_mk
Branch: master
Commit: 8116520226afc6a33227ea76f49767ebd28a6c6e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8116520226afc6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 20 16:38:48 2015 +0100
Fixed shortly introduced problems with diskstat discovery
---
modules/check_mk_base.py | 21 ++++++++++++++-------
modules/discovery.py | 10 +++++-----
2 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index a530599..28d1749 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -261,21 +261,28 @@ class MKCheckTimeout(Exception):
# extra sections (new feature since 1.2.7i1) only the main section
# raises exceptions. Error in extra sections are silently ignored
# and the info is replaced with None.
-def get_info_for_check(hostname, ipaddress, infotype, max_cachefile_age=None, ignore_check_interval=False):
-
- if infotype in check_info:
- extra_sections = check_info[infotype]["extra_sections"]
+def get_info_with_extra_sections(hostname, ipaddress, section_name, max_cachefile_age, ignore_check_interval, info_func):
+ if section_name in check_info:
+ extra_sections = check_info[section_name]["extra_sections"]
if extra_sections:
- info = [ get_host_info(hostname, ipaddress, infotype, max_cachefile_age, ignore_check_interval) ]
+ info = [ info_func(hostname, ipaddress, section_name, max_cachefile_age, ignore_check_interval) ]
for es in extra_sections:
try:
- info.append(get_host_info(hostname, ipaddress, es, max_cachefile_age, ignore_check_interval=False))
+ info.append(info_func(hostname, ipaddress, es, max_cachefile_age, ignore_check_interval=False))
except:
info.append(None)
return info
- return get_host_info(hostname, ipaddress, infotype, max_cachefile_age, ignore_check_interval)
+ return info_func(hostname, ipaddress, section_name, max_cachefile_age, ignore_check_interval)
+
+def get_info_for_check(hostname, ipaddress, section_name, max_cachefile_age=None, ignore_check_interval=False):
+ return get_info_with_extra_sections(hostname, ipaddress, section_name,
+ max_cachefile_age, ignore_check_interval, info_func=get_host_info)
+def get_info_for_inventory(hostname, ipaddress, section_name, use_caches):
+ return get_info_with_extra_sections(hostname, ipaddress, section_name,
+ use_caches and inventory_max_cachefile_age or 0,
+ ignore_check_interval=True, info_func=get_realhost_info)
# This is the main function for getting information needed by a
# certain check. It is called once for each check type. For SNMP this
diff --git a/modules/discovery.py b/modules/discovery.py
index 59ce57c..d5c6270 100644
--- a/modules/discovery.py
+++ b/modules/discovery.py
@@ -349,13 +349,10 @@ def discover_check_type(hostname, ipaddress, check_type, use_caches):
try:
info = None # default in case of exception
- info = get_realhost_info(hostname, ipaddress, section_name,
- use_caches and inventory_max_cachefile_age or 0, ignore_check_interval=True)
-
+ info = get_info_for_inventory(hostname, ipaddress, section_name, use_caches)
except MKAgentError, e:
if str(e):
raise
-
except MKSNMPError, e:
if str(e):
raise
@@ -368,7 +365,10 @@ def discover_check_type(hostname, ipaddress, check_type, use_caches):
# During inventory we behave like a non-cluster. We do not know
# yet if the service is going to be clustered!
if check_info[check_type]["node_info"]:
- info = [ [None] + line for line in info ]
+ if check_info[section_name]["extra_sections"]:
+ info = [ sec and [ [None] + line for line in sec ] or None for sec in info ]
+ else:
+ info = [ [None] + line for line in info ]
# Now do the actual inventory
try:
Module: check_mk
Branch: master
Commit: 0a9784f7f5cd4ff02a976aba12962f77485b2565
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0a9784f7f5cd4f…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jan 20 14:23:44 2015 +0100
#1671 FIX windows agent: fixed gaps in eventlog monitoring after agent restart
The windows eventlog monitoring was not entirely continuous.
After the agent started it determined determined the initial record number
for each eventlog. Per default the start number was the last record.
Thus resulted in monitoring gaps as long as the windows was not running, e.g. windows startup.
With this fix, the windows agent now uses a statefile (<tt>eventstate.txt</tt>) which
contains the last processed eventrecord ids for each eventlog.
On startup the statefile is read and the record numbers are set accordingly.
---
.werks/1671 | 17 ++++
ChangeLog | 3 +-
agents/windows/build_version | 2 +-
agents/windows/check_mk_agent-64.exe | Bin 209920 -> 211968 bytes
agents/windows/check_mk_agent-64.unversioned.exe | Bin 209920 -> 211968 bytes
agents/windows/check_mk_agent.cc | 118 ++++++++++++++++++++--
agents/windows/check_mk_agent.exe | Bin 178688 -> 180224 bytes
agents/windows/check_mk_agent.msi | Bin 622592 -> 626176 bytes
agents/windows/check_mk_agent.unversioned.exe | Bin 178688 -> 180224 bytes
agents/windows/crash.exe | Bin 20024 -> 20024 bytes
agents/windows/install_agent-64.exe | Bin 160685 -> 161361 bytes
agents/windows/install_agent.exe | Bin 157644 -> 158131 bytes
agents/windows/nowin.exe | Bin 22511 -> 22511 bytes
13 files changed, 130 insertions(+), 10 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=0a9784f7f5…
Module: check_mk
Branch: master
Commit: 7c1bb1513e499282e2d1d320c7a3b1d00530fed9
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7c1bb1513e4992…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Tue Jan 20 13:05:15 2015 +0100
Changes description of werk
---
.werks/1853 | 2 +-
ChangeLog | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.werks/1853 b/.werks/1853
index dce9c70..4571c82 100644
--- a/.werks/1853
+++ b/.werks/1853
@@ -1,4 +1,4 @@
-Title: cisco_power, cisco_fan, cisco_temp_perf: fixed algorithm to determine check item for some special cases
+Title: cisco_power, cisco_fan, cisco_temp_perf: fixed service description for some special cases
Level: 1
Component: checks
Compatible: incomp
diff --git a/ChangeLog b/ChangeLog
index a864c13..af17cee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -87,7 +87,7 @@
* 1844 FIX: oracle_crs_res: fix computation of node a ressource is running on...
* 1852 FIX: solaris_multipath: this check now works with inventory to remember the number of total paths...
NOTE: Please refer to the migration notes!
- * 1853 FIX: cisco_power, cisco_fan, cisco_temp_perf: fixed algorithm to determine check item for some special cases...
+ * 1853 FIX: cisco_power, cisco_fan, cisco_temp_perf: fixed service description for some special cases...
NOTE: Please refer to the migration notes!
Multisite: