aboutsummaryrefslogtreecommitdiffstats
path: root/sitesummary-client
blob: 218d2ab05349f47f2ffe688989094425dbebfda9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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