Module: check_mk
Branch: master
Commit: 527232d4b27be1764b526ab366e24a90532f344e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=527232d4b27be1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 5 08:44:06 2016 +0100
#2930 FIX juniper_cpu_util: Better detection, find more devices
We now look for <tt>Routing Enginge</tt> not only at the beginning, but also
in the middle of the text.
---
.werks/2930 | 10 ++++++++++
ChangeLog | 1 +
checks/juniper_cpu_util | 3 ++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/2930 b/.werks/2930
new file mode 100644
index 0000000..b121feb
--- /dev/null
+++ b/.werks/2930
@@ -0,0 +1,10 @@
+Title: juniper_cpu_util: Better detection, find more devices
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1454658210
+Class: fix
+
+We now look for <tt>Routing Enginge</tt> not only at the beginning, but also
+in the middle of the text.
diff --git a/ChangeLog b/ChangeLog
index 7b4abbf..1d67a62 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -248,6 +248,7 @@
* 3066 FIX: windows agent: 32-bit performance counters were not returned correctly
* 3068 FIX: ps: added performance graphs for process handle count (windows only)
* 3069 FIX: unitrend_backup: fixed broken plugin output
+ * 2930 FIX: juniper_cpu_util: Better detection, find more devices...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/juniper_cpu_util b/checks/juniper_cpu_util
index 8f43e5e..32b1a52 100644
--- a/checks/juniper_cpu_util
+++ b/checks/juniper_cpu_util
@@ -32,9 +32,10 @@ factory_settings['juniper_cpu_util_default_levels'] = {
def inventory_juniper_cpu_util(info):
for line in info:
- if line[0].startswith("Routing Engine"):
+ if "Routing Engine" in line[0]:
yield line[0], {}
+
def check_juniper_cpu_util(item, params, info):
for name, util in info:
if name == item: