Never miss an old file
[myops.git] / README
1
2 Install the RPM 
3
4 # make rpm
5 # yum install -y --nogpgcheck myops-getqueryview-1.0-0.i686.rpm
6
7 Run a post install setup script that configures many of the scripts to run
8 within the local environment.
9
10 # cd /usr/share/myops/web/
11 # bash ./setup.sh
12
13 Create the client collection bootstrap files in /var/www/html/PlanetLabConf
14
15 # cd /usr/share/myops/web/collect/server
16 # ./build.sh
17
18 If you wish to populate this service with data from a test PLC, then first
19 copy the scripts and ConfFile settings to that test PLC.
20
21 # cd /var/www/html/PlanetLabConf/
22 # scp sar2graphite.py sysstat.cron bootstrap.tar myplc.example.eu:/var/www/html/PlanetLabConf
23 # scp /usr/share/myops/web/db-config.d/030-conf_files_myops myplc.example.eu:/etc/planetlab/db-config.d
24
25 To import the ConfFile() settings in 030-conf_files_myops
26 # ssh myplc.example.edu 
27 # service plc restart db
28
29 Once the service is running, you can visit:
30
31     http://yourhost.planet-lab.eu/view
32
33 After a few minutes, the LoadAvg graph should start to show local load on the
34 server.  After a few hours, the MyOps graphs should begin to have data.
35
36 To create new graphs from the data available, you can use the graphite
37 composer:
38
39     http://yourhost.planet-lab.eu/graphite
40
41 And, then copy the image url to /var/www/html/view/urllist.txt to have it
42 displayed as part of the default /view/index.php 
43
44 As well, to query some of the raw data you can look here:
45
46     http://yourhost.planet-lab.eu:5984/myops/_design/myops/index.html