#!/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