Module: check_mk
Branch: master
Commit: 709a086390e08dd07813790e0a928db05c8a4de0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=709a086390e08d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 11 14:18:21 2015 +0100
Fixed real time checks sent by linux agent
---
agents/check_mk_agent.linux | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index e3a1183..c7f11e5 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -166,7 +166,7 @@ function run_real_time_checks()
# 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.
# 2 bytes: protocol version, 10 bytes: timestamp, rest: encrypted data
- (echo -e 00 ; date +%s ;
+ (echo -ne 00 ; date +%s | tr -d '\n' ;
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: 473f2fee2bae165b43d72a532f40eb1f91bef6f4
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=473f2fee2bae16…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Dec 11 13:37:35 2015 +0100
#1317 FIX fileinfo.groups: Fixed handling of $DATE pattern
Before that fix the feature to use the current date as match criteria for fileinfo groups only worked
when the filename started with the date. Now the date not longer have to be at the beginning of the filename.
---
.werks/1317 | 13 +++++++++++++
ChangeLog | 1 +
checks/fileinfo | 2 +-
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/1317 b/.werks/1317
new file mode 100644
index 0000000..2e1f5a6
--- /dev/null
+++ b/.werks/1317
@@ -0,0 +1,13 @@
+Title: fileinfo.groups: Fixed handling of $DATE pattern
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i4
+Date: 1449837223
+
+Before that fix the feature to use the current date as match criteria for fileinfo groups only worked
+when the filename started with the date. Now the date not longer have to be at the beginning of the filename.
+
+
diff --git a/ChangeLog b/ChangeLog
index 4f8ba5e..a60cfa2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -152,6 +152,7 @@
* 2861 FIX: hivemanager_devices: Fixed configuration of states to treat as WARN
* 1312 FIX: carel_uniflair_cooling: Check is now disabled...
* 2868 FIX: cpu_util.include: fixed crash on some systems if per-core statistics were enabled...
+ * 1317 FIX: fileinfo.groups: Fixed handling of $DATE pattern...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/fileinfo b/checks/fileinfo
index a1c3f2d..77f2636 100644
--- a/checks/fileinfo
+++ b/checks/fileinfo
@@ -61,7 +61,7 @@ def inventory_fileinfo(info, case):
return inventory
def fileinfo_process_date(pattern,reftime):
- disect = re.match('(/.*/)\$DATE:((?:%\w.?){1,})\$(.*)',pattern)
+ disect = re.match('(/.*)\$DATE:((?:%\w.?){1,})\$(.*)',pattern)
if disect:
prefix = disect.group(1)
datepattern = time.strftime(disect.group(2),time.localtime(reftime))
Module: check_mk
Branch: master
Commit: 30cc8b9f25cd2fd73651226f294c7945f2f70966
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=30cc8b9f25cd2f…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Dec 11 10:52:05 2015 +0100
#2885 cisco_hsrp: now reports the HSRP state
This check now reports the HSRP state in every case. The states can be
'initial', 'learn', 'listen', 'speak', 'standby' and 'active'.
---
.werks/2885 | 10 ++++++++++
ChangeLog | 1 +
checks/cisco_hsrp | 6 +++---
3 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/.werks/2885 b/.werks/2885
new file mode 100644
index 0000000..4c5e1d9
--- /dev/null
+++ b/.werks/2885
@@ -0,0 +1,10 @@
+Title: cisco_hsrp: now reports the HSRP state
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1449827357
+Class: feature
+
+This check now reports the HSRP state in every case. The states can be
+'initial', 'learn', 'listen', 'speak', 'standby' and 'active'.
diff --git a/ChangeLog b/ChangeLog
index 06a123e..4f8ba5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -62,6 +62,7 @@
* 2869 ibm_storage_ts, ibm_storage_ts.drive, ibm_storage_ts_library, ibm_storage_ts.status: new checks for IBM TS3100 Tape Library
* 1316 mysql_slave: Levels can now be configured with WATO
* 2809 netscaler_vserver: now reports health_perc as performance data
+ * 2885 cisco_hsrp: now reports the HSRP state...
* 2660 FIX: fixed windows agent using the wrong working directory...
* 2664 FIX: ps: Speedup in situation with many matching processes...
* 2661 FIX: windows agent: fixed incomplete process list...
diff --git a/checks/cisco_hsrp b/checks/cisco_hsrp
index 4d32331..48fb83d 100644
--- a/checks/cisco_hsrp
+++ b/checks/cisco_hsrp
@@ -121,11 +121,11 @@ def check_cisco_hsrp(item, params, info):
# anything else must be a non-operative state already
else:
state = 2
- msgtxt = "Redundancy Group %s has status %s" % ( hsrp_grp, hsrp_states[hsrp_state])
+ msgtxt = "Redundancy Group %s" % hsrp_grp
- return (state, msgtxt)
+ return state, "%s, Status: %s" % (msgtxt, hsrp_states.get(hsrp_state, "unknown"))
- return (3, "HSRP Group not found in Agent output" )
+ return 3, "HSRP Group not found in Agent output"