Subversion Repositories camp_sysinfo_client_3

Rev

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

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