Project

General

Profile

PgGraphInstall » History » Version 17

Devrim Gunduz, 09/04/2006 06:53 AM
use svn export for creating samples

1 1 Devrim Gunduz
1.  login to cmdalert and su - extnagios
2 2 Devrim Gunduz
3 17 Devrim Gunduz
2.  cd /home/web/manage/svn/repo
4 1 Devrim Gunduz
5 17 Devrim Gunduz
3.  mkdir -p /home/web/manage/CUSTOMERNAME/dbname (/dbname is optional it the customer has only 1 database)
6
 
7
4.  svn export www /home/web/manage/CUSTOMERNAME/dbname (again dbname may be optional
8 2 Devrim Gunduz
9 17 Devrim Gunduz
5.  cd /home/web/manage/CUSTOMERNAME/dbname; edit stats-allcron and change "template" to the newdirname
10 2 Devrim Gunduz
11 3 Devrim Gunduz
6.  edit pggraphscripts/userindexscript/cron.sh and change "template" to the newdirname
12 2 Devrim Gunduz
13 13 Devrim Gunduz
7.  edit pggraphscripts/cron.sh and change "template" to the newdirname
14 2 Devrim Gunduz
15 13 Devrim Gunduz
8 . edit pggraphscripts/userindexscript/variables.sh and fill it correctly
16 1 Devrim Gunduz
17 13 Devrim Gunduz
9.  cp pggraphscripts/userindexscript/variables.sh pggraphscripts/
18 4 Devrim Gunduz
19 13 Devrim Gunduz
10. Edit pggraphscripts/pggraph.sql and change template. Please use the schema name here to match the variables.sh that we changed in step 
20
21
11. Enable passwordless ssh auth between extnagios user and remote user. Use http://www.linuxproblem.org/art_9.html for help.
22 4 Devrim Gunduz
23
13. cd pggraphscripts/ and run pggraph.sh . Run this file "ONCE". Run chmod 000 after you run this; otherwise you WILL lose previous data      
24
    if this file is run again.
25
26
    This file will gather the information from remote database, create rrds, create .html files, create graphs, create db schema and   
27
    initialize it.
28
29
14. createupdatescript.sh
30
31 1 Devrim Gunduz
    This script creates a script named update.sh, which is run every 5 mins by a cron job.
32 5 Devrim Gunduz
33 14 Devrim Gunduz
15. cd pggraphscripts/allstats; sh stats-createrrd.sh
34 6 Devrim Gunduz
35 1 Devrim Gunduz
16. edit index.php at the top location, under www/
36 9 Devrim Gunduz
37 15 Devrim Gunduz
17. cd pggraphscripts/userindexscript/; sh userindex.sh
38 11 Devrim Gunduz
39 16 Devrim Gunduz
18. sh createmainindex-ui.sh ; sh createmainindex-uixacts.sh 
40
19. Edit cron. Please check that the files have x permissions.