diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2006-08-23 21:27:51 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2006-08-23 21:27:51 +0000 |
commit | cb43769f6b29e342293d7405d17ea90a60adfeb1 (patch) | |
tree | 33c6019c505ba2d67466308705d294f1ba9b100c /sitesummary-client | |
download | sitesummary-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-client | 25 |
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 |