summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-04-08 17:58:22 +0200
committervarac <varacanero@zeromail.org>2015-04-08 17:58:22 +0200
commita92cd49adda2aa596c7c3db8b2e933d2d4b5483a (patch)
tree1c337c3117aaac362e0e9faecd71dc2459c67cc7
parent27cd49653769979c3797df340d761a184cea0fec (diff)
parentdb5353ee7b83eeda31bbdb5f770b250eef0c8991 (diff)
Merge branch 'develop' of gitlab.com:leap/platform into develop
-rwxr-xr-xpuppet/modules/site_nagios/files/plugins/check_last_regex_in_log2
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