Module: check_mk
Branch: master
Commit: 3792764b6f3c6fbd26471f959a09ba29b4873ab0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3792764b6f3c6f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 8 14:37:10 2015 +0200
Fixed typo in treasured check winperf_processor.single
---
doc/treasures/.gitignore | 1 -
doc/treasures/checks/.f12 | 5 +++++
doc/treasures/checks/winperf_processor.single | 11 ++++-------
doc/treasures/liveproxy/.f12 | 5 +++++
4 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/doc/treasures/.gitignore b/doc/treasures/.gitignore
deleted file mode 100644
index c332f1d..0000000
--- a/doc/treasures/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-.f12
diff --git a/doc/treasures/checks/.f12 b/doc/treasures/checks/.f12
new file mode 100644
index 0000000..d540232
--- /dev/null
+++ b/doc/treasures/checks/.f12
@@ -0,0 +1,5 @@
+#!/bin/bash
+SITE=${SITE:-$(cat ../../../.site 2>/dev/null || true)}
+SITE=${SITE:-$(omd sites --bare | head -n 1)}
+echo "TARGET: /omd/sites/$SITE/share/check_mk/checks"
+sudo rsync -var ./ /omd/sites/$SITE/local/share/check_mk/checks/
diff --git a/doc/treasures/checks/winperf_processor.single
b/doc/treasures/checks/winperf_processor.single
index e83781f..98342b1 100644
--- a/doc/treasures/checks/winperf_processor.single
+++ b/doc/treasures/checks/winperf_processor.single
@@ -34,17 +34,14 @@ def inventory_winperf_single(info):
return None
for line in info[1:]:
- try:
- if line[0] == '-232':
- return [(None, "winperf_cpu_default_levels")]
- except:
- pass
+ if line[0] == '-232':
+ return [(None, "winperf_cpu_default_levels")]
# params: levels for warn / crit in percentage
def check_winperf_single(_no_item, params, info):
if not info:
- return
+ return
this_time = int(float(info[0][0]))
for line in info[1:]:
@@ -72,7 +69,7 @@ def check_winperf_single(_no_item, params, info):
check_info["winperf_processor.single"] = {
'check_function': check_winperf_single,
'inventory_function': inventory_winperf_single,
- 'service_description': 'CPU utiliztion single',
+ 'service_description': 'CPU utilization single',
'has_perfdata': True,
'group': 'cpu_utilization_os',
#'includes': [ "cpu_single.include" ],
diff --git a/doc/treasures/liveproxy/.f12 b/doc/treasures/liveproxy/.f12
new file mode 100644
index 0000000..a287ada
--- /dev/null
+++ b/doc/treasures/liveproxy/.f12
@@ -0,0 +1,5 @@
+SITE=${SITE:-$(cat ../../../.site 2>/dev/null || true)}
+SITE=${SITE:-$(omd sites --bare | head -n 1)}
+
+sudo install -m 755 liveproxyd /omd/sites/$SITE/bin/
+sudo su - $SITE -c "omd restart liveproxyd"