Project

General

Profile

PgGraphInstall » History » Version 23

Devrim Gunduz, 10/01/2006 01:15 PM

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