Module: check_mk
Branch: master
Commit: f0ed9a8999298d980e934cb8813d1458fcbe90da
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f0ed9a8999298d…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Dec 10 13:53:14 2015 +0100
Fixed typo
---
.werks/1313 | 2 +-
ChangeLog | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.werks/1313 b/.werks/1313
index 3348063..2f5f7ef 100644
--- a/.werks/1313
+++ b/.werks/1313
@@ -1,4 +1,4 @@
-Title: apc_sts_inputs: New Check for APC Static Transfer Swichtes: Input Phases
+Title: apc_sts_inputs: New Check for APC Static Transfer Switches: Input Phases
Level: 1
Component: checks
Compatible: compat
diff --git a/ChangeLog b/ChangeLog
index 6f21a63..06a123e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -56,7 +56,7 @@
* 2874 netstat_an.bat: Restrict output of connections to TCP, safes performance
* 2866 ewon: Added support for monitoring Wagner OxyReduct devices with their data exposed through an ewon router...
* 2884 mssql_blocked_sessions: the state of the blocked sessions is now configurable
- * 1313 apc_sts_inputs: New Check for APC Static Transfer Swichtes: Input Phases
+ * 1313 apc_sts_inputs: New Check for APC Static Transfer Switches: Input Phases
* 1314 apc_sts_source: New Check to monitor if the input source changes on APC STS devices
* 1315 check_mk_agent.linux: The ps section of the agent now supports long usernames...
* 2869 ibm_storage_ts, ibm_storage_ts.drive, ibm_storage_ts_library, ibm_storage_ts.status: new checks for IBM TS3100 Tape Library
Module: check_mk
Branch: master
Commit: a56ebf4a06ec77b73010899bbf536bff0b402298
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a56ebf4a06ec77…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 10 10:57:50 2015 +0100
Real time checks: added protocol version to output
---
agents/check_mk_agent.linux | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 7a8750a..e3a1183 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -164,8 +164,9 @@ function run_real_time_checks()
for SECTION in $RTC_SECTIONS; do
# Be aware of maximum packet size. Maybe we need to check the size of the section
- # output and do some kind of nicer error handling
- (date +%s ;
+ # output and do some kind of nicer error handling.
+ # 2 bytes: protocol version, 10 bytes: timestamp, rest: encrypted data
+ (echo -e 00 ; date +%s ;
export RTC_SECRET=$RTC_SECRET ;
section_$SECTION | openssl enc -aes-256-cbc -pass env:RTC_SECRET -nosalt) >/dev/udp/$REMOTE/$RTC_PORT
done
Module: check_mk
Branch: master
Commit: 3c5750abe79d27a72b086d96802f3b2c007bfdb4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3c5750abe79d27…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 25 14:18:21 2015 +0100
Added encryption and some error reporting to Real Time Check agent code
---
agents/check_mk_agent.linux | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index dfd39fb..7a8750a 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -165,11 +165,9 @@ function run_real_time_checks()
for SECTION in $RTC_SECTIONS; do
# Be aware of maximum packet size. Maybe we need to check the size of the section
# output and do some kind of nicer error handling
- #
- # Example for encryption:
- # export RTC_SECRET=xxx ; echo xxx | openssl enc -aes-256-cbc -pass env:RTC_SECRET -nosalt > x
- # export RTC_SECRET=xxx ; cat x | openssl enc -aes-256-cbc -d -pass env:RTC_SECRET -nosalt
- section_$SECTION >/dev/udp/$REMOTE/$RTC_PORT
+ (date +%s ;
+ export RTC_SECRET=$RTC_SECRET ;
+ section_$SECTION | openssl enc -aes-256-cbc -pass env:RTC_SECRET -nosalt) >/dev/udp/$REMOTE/$RTC_PORT
done
sleep 1
@@ -706,8 +704,14 @@ fi
# Start new liveupdate process in background on each agent execution. Starting
# a new live update process will terminate the old one automatically after
# max. 1 sec.
-if [ -e $MK_CONFDIR/real_time_checks.cfg -a -n $REMOTE ]; then
- run_real_time_checks &
+if [ -e $MK_CONFDIR/real_time_checks.cfg ]; then
+ if [ -z $REMOTE ]; then
+ echo "ERROR: \$REMOTE not specified. Not starting Real-Time Checks." >&2
+ elif ! type openssl >/dev/null; then
+ echo "ERROR: openssl command is missing. Not starting Real-Time Checks." >&2
+ else
+ run_real_time_checks &
+ fi
fi
# MK's Remote Plugin Executor