diff options
Diffstat (limited to 'abs/core/xymon/log_list.sh')
-rw-r--r-- | abs/core/xymon/log_list.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/core/xymon/log_list.sh b/abs/core/xymon/log_list.sh new file mode 100644 index 0000000..b8ce066 --- /dev/null +++ b/abs/core/xymon/log_list.sh @@ -0,0 +1,12 @@ +#!/bin/bash +#This file is used provide a list of log files for xymon client to send back. +# This is needed because of the dynamic nature of the log file names +DATE=`date +%Y-%m-%d` +HOST=`hostname` +logdir="/var/log/$DATE/" +for i in messages.log +do + + echo $logdir${HOST}_$i + +done |