aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-client
diff options
context:
space:
mode:
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