summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/log_list.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-12-07 19:45:02 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-12-07 19:45:02 (GMT)
commit582455878ef98dfadc0618309686c85b135f7a23 (patch)
treea87b677b96c168524576cf32870487758d0b43ba /abs/core/xymon/log_list.sh
parent65b2738ba8a6b80a17c5a2953a29be935b15d18c (diff)
downloadlinhes_pkgbuild-582455878ef98dfadc0618309686c85b135f7a23.zip
linhes_pkgbuild-582455878ef98dfadc0618309686c85b135f7a23.tar.gz
linhes_pkgbuild-582455878ef98dfadc0618309686c85b135f7a23.tar.bz2
xymon: first build, includes both server and client builds.
xymon is a system used to monitor various things about each host. Possible to replace rrdtool and monitorx
Diffstat (limited to 'abs/core/xymon/log_list.sh')
-rw-r--r--abs/core/xymon/log_list.sh12
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