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