Subversion Repositories camp_sysinfo_client_3

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
109 rodolico 1
 
63 rodolico 2
mv sendEmail/ /usr/local/opt
3
 
4
svn co http://svn.dailydata.net/svn/camp_sysinfo_client_3
5
 
121 rodolico 6
Write documentation
63 rodolico 7
 
8
mkdir -p /usr/local/opt/camp/sysinfo-client
9
cp -av configure.pl getSendEmail.pl install.pl makeVersionFile modules notes
10
scripts sysinfo-client sysinfo-client.conf.template
11
sysinfo-client.seed.example sysinfoconf.pm VERSION
12
/usr/local/opt/camp/sysinfo-client
13
 
14
mkdir -p /usr/local/etc/camp/sysinfo-client
15
mkdir -p /usr/local/etc/camp/sysinfo-client/modules
16
mkdir -p /usr/local/etc/camp/sysinfo-client/scripts
17
 
18
cp ~dailydata/sysinfo/sysinfo-client.seed
19
/usr/local/etc/camp/sysinfo-client/sysinfo-client.conf
20
 
21
 
22
echo '#! /usr/bin/env bash' > /usr/local/etc/periodic/daily/999.sysinfo
23
echo '#' >> /usr/local/etc/periodic/daily/999.sysinfo
24
echo '# run sysinfo script daily' >>
25
/usr/local/etc/periodic/daily/999.sysinfo
26
echo '#' >> /usr/local/etc/periodic/daily/999.sysinfo
27
echo '' >> /usr/local/etc/periodic/daily/999.sysinfo
28
echo '/usr/local/opt/camp/sysinfo/sysinfo-client' >>
29
/usr/local/etc/periodic/daily/999.sysinfo
30
 
31
chmod 555 /usr/local/etc/periodic/daily/999.sysinfo
32
 
33
 
34
mkdir -p /usr/local/opt/camp/sysinfo-client/
35
cp -a camp_sysinfo_client_3/* /usr/local/opt/camp/sysinfo-client/
36
chown -fR root:wheel /usr/local/opt/camp
37
 
38
chmod 700 /usr/local/opt/camp/sysinfo-client/sysinfo-client
39
/usr/local/opt/camp/sysinfo-client/*.pl
40
//usr/local/opt/camp/sysinfo-client/modules/*
41
///usr/local/opt/camp/sysinfo-client/scripts/*
42
 
43
rm /usr/local/opt/camp/sysinfo-client/sysinfo-client/makeVersionFile
44
 
45
if /usr/local/etc/camp/sysinfo-client/sysinfo-client.conf doesn't exist
46
   cp
47
/usr/local/opt/camp/sysinfo-client/sysinfo-client/sysinfo-client.conf.template
48
/usr/local/etc/camp/sysinfo-client/sysinfo-client.conf
49
   chmod 600 /usr/local/etc/camp/sysinfo-client/sysinfo-client.conf
50
 
51
 
52
 
53
 
54
 
22 rodolico 55
During install, if there is a sysinfo2 data file, you may get the following error messages
56
Old sysinfo 2 config exists, load it for defaults[ YES | no ]: 
57
Loading defaults from sysinfo2 config /etc/sysinfo/sysinfo.conf
58
Use of uninitialized value $hostname in concatenation (.) or string at (eval 5) line 42.
59
Use of uninitialized value $reportDate in concatenation (.) or string at (eval 5) line 42.
60
 
61
This can be safely ignored (the two last lines)
62
 
2 rodolico 63
https://en.wikipedia.org/wiki/YAML