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