Module: check_mk
Branch: master
Commit: 35efdd64e629180eff6f72570c701fc9eea7b443
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=35efdd64e62918…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Fri Jan 11 15:54:06 2019 +0100
prtconf: add processor implementation mode to inventory
Change-Id: I52de9f0c471dde27155e2e1d8e676199dfeca761
---
inventory/prtconf | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/inventory/prtconf b/inventory/prtconf
index 8c4cc6d..f53ebca 100644
--- a/inventory/prtconf
+++ b/inventory/prtconf
@@ -90,6 +90,10 @@ def inv_prtconf(info, inventory_tree):
if proc_type is not None:
cpu_dict["model"] = proc_type
+ proc_impl_mode = parsed.get("Processor Implementation Mode")
+ if proc_impl_mode is not None:
+ cpu_dict["implementation_mode"] = proc_impl_mode
+
max_speed = parsed.get("Processor Clock Speed")
if max_speed is not None:
cpu_dict["max_speed"] = float(max_speed.split()[0]) * 1000 * 1000