diff options
author | varac <varacanero@zeromail.org> | 2015-04-08 15:56:57 +0000 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-04-08 15:56:57 +0000 |
commit | db5353ee7b83eeda31bbdb5f770b250eef0c8991 (patch) | |
tree | 1c337c3117aaac362e0e9faecd71dc2459c67cc7 /puppet/modules/site_nagios/files | |
parent | 98fb2d7c6aa30d9754b97420d122abc0e9e7e949 (diff) | |
parent | 75bdd84d642491166fa90ecff117e679b4af334a (diff) |
Merge branch 'fix_tapicero_heartbeat_check' into 'develop'
Fix for Tapicero heartbeat check that fails on days 1-9 of the month (#6832)
Change-Id: If9e17de438a4a6ac8e68877bfe0c5d13d45386ee
see https://leap.se/code/issues/6832
See merge request !40
Diffstat (limited to 'puppet/modules/site_nagios/files')
-rwxr-xr-x | puppet/modules/site_nagios/files/plugins/check_last_regex_in_log | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/puppet/modules/site_nagios/files/plugins/check_last_regex_in_log b/puppet/modules/site_nagios/files/plugins/check_last_regex_in_log index cf7c03e5..47569388 100755 --- a/puppet/modules/site_nagios/files/plugins/check_last_regex_in_log +++ b/puppet/modules/site_nagios/files/plugins/check_last_regex_in_log @@ -50,7 +50,7 @@ done [ $warn -eq 0 -o $crit -eq 0 -o -z "$regex" -o -z "$log" ] && ( usage; exit $STATE_UNKNOWN) [ -f "$log" ] || (echo "$log doesn't exist"; exit $STATE_UNKNOWN) -lastmsg=$(tac $log | grep -i $regex | head -1 | cut -d' ' -f 1-3) +lastmsg=$(tac $log | grep -i $regex | head -1 | sed 's/ / /g' | cut -d' ' -f 1-3) if [ -z "$lastmsg" ] then |