aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rwxr-xr-xcollect.d/siteinfo6
2 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d9e8a26..80ea8ce 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,9 @@ collectordir = $(libdir)/sitesummary/collect.d
INSTALL = install
INSTALL_DATA = $(INSTALL) -m 644
-COLLECTORS = collect.d/system
+COLLECTORS = \
+ collect.d/system \
+ collect.d/siteinfo
all:
diff --git a/collect.d/siteinfo b/collect.d/siteinfo
new file mode 100755
index 0000000..7b8c051
--- /dev/null
+++ b/collect.d/siteinfo
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+mkdir siteinfo && cd siteinfo
+if [ -f /etc/siteinfo ] ; then
+ cat /etc/siteinfo > siteinfo
+fi