aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2006-08-24 08:47:21 +0000
committerPetter Reinholdtsen <pere@hungry.com>2006-08-24 08:47:21 +0000
commit06141fcf5b58ac56b953c21de62fc32ec875780d (patch)
tree5609146bb3f9b4e0ef82db53b6f1a17794896822 /collect.d
parentab5d2e601de9e5e963d672809148012ceb0933d6 (diff)
downloadsitesummary-06141fcf5b58ac56b953c21de62fc32ec875780d.tar.gz
sitesummary-06141fcf5b58ac56b953c21de62fc32ec875780d.tar.bz2
sitesummary-06141fcf5b58ac56b953c21de62fc32ec875780d.tar.xz
Rewrite how the site info is handled.
Diffstat (limited to 'collect.d')
-rwxr-xr-xcollect.d/siteinfo14
1 files changed, 11 insertions, 3 deletions
diff --git a/collect.d/siteinfo b/collect.d/siteinfo
index 7b8c051..d98478f 100755
--- a/collect.d/siteinfo
+++ b/collect.d/siteinfo
@@ -1,6 +1,14 @@
#!/bin/sh
+# site = location
+# sitegroup = sublocation
+# sitecontact = email to site contect
+# hostclass = type of host (server, workstation, laptop, etc)
+
mkdir siteinfo && cd siteinfo
-if [ -f /etc/siteinfo ] ; then
- cat /etc/siteinfo > siteinfo
-fi
+for filename in site sitegroup sitecontact hostclass ; do
+ file=/etc/sitecollector/$filename
+ if [ -f $file ] ; then
+ cp $file siteinfo/$filename
+ fi
+done