aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-client
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2006-08-23 21:27:51 +0000
committerPetter Reinholdtsen <pere@hungry.com>2006-08-23 21:27:51 +0000
commitcb43769f6b29e342293d7405d17ea90a60adfeb1 (patch)
tree33c6019c505ba2d67466308705d294f1ba9b100c /sitesummary-client
downloadsitesummary-cb43769f6b29e342293d7405d17ea90a60adfeb1.tar.gz
sitesummary-cb43769f6b29e342293d7405d17ea90a60adfeb1.tar.bz2
sitesummary-cb43769f6b29e342293d7405d17ea90a60adfeb1.tar.xz
Start on system to track the hosts on a site.
Diffstat (limited to 'sitesummary-client')
-rw-r--r--sitesummary-client25
1 files changed, 25 insertions, 0 deletions
diff --git a/sitesummary-client b/sitesummary-client
new file mode 100644
index 0000000..218d2ab
--- /dev/null
+++ b/sitesummary-client
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Collect sytem information and pass it on to the sitesummary server
+# using HTTP put.
+
+# https://svn.revolutionlinux.com/MILLE/XTERM/trunk/mille-xterm-getltscfg/src/getltscfg.script
+
+set -e
+
+serverurl=http://localhost/cgi-bin/sitesummary-collector.cgi
+fragments=/usr/lib/sitesummary/collect.d/
+
+tmpdir=/tmp/sitesummary-$$
+
+mkdir $tmpdir && cd $tmpdir
+
+for frag in $fragments/*; do
+ $frag
+done
+
+tar zcf $tmpdir.tar.gz .
+
+wget --no-check-certificate --post-file $tmpdir.tar.gz $serverurl
+
+# wget --no-check-certificate -O /tmp/lts.conf $MY_CONFIG_SERVER\?mac=$MY_NODE_MAC/ip=$MY_NODE_IP/bootservip=$MY_NFSROOT_IP/code=1 --post-file=/tmp/post_inventory.txt 1>&2