PgGraphInstall » History » Version 10
Devrim Gunduz, 08/27/2006 10:37 PM
1 | 1 | Devrim Gunduz | 1. login to cmdalert and su - extnagios |
---|---|---|---|
2 | 2 | Devrim Gunduz | |
3 | 1 | Devrim Gunduz | 2. cd /home/web/manage |
4 | 2 | Devrim Gunduz | |
5 | 1 | Devrim Gunduz | 3. cp -rp template newinstalldirectoryname |
6 | 2 | Devrim Gunduz | |
7 | 1 | Devrim Gunduz | 4. cd newinstalldirectoryname/www |
8 | 2 | Devrim Gunduz | |
9 | 1 | Devrim Gunduz | 5. 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 | 9 | Devrim Gunduz | 7. edit dbstatscript/dbstat-allcron.sh, mpstatscript/mpstat-allcron.sh |
14 | 1 | Devrim Gunduz | |
15 | 3 | Devrim Gunduz | 8. edit pggraphscripts/vmstatscript/vmstat-allcron.sh and change "template" to the newdirname |
16 | 2 | Devrim Gunduz | |
17 | 1 | Devrim Gunduz | 9. edit pggraphscripts/cron.sh and change "template" to the newdirname |
18 | 2 | Devrim Gunduz | |
19 | 5 | Devrim Gunduz | 10 . edit pggraphscripts/userindexscript/variables.sh and fill it correctly |
20 | 4 | Devrim Gunduz | |
21 | 11. cp pggraphscripts/userindexscript/variables.sh pggraphscripts/ |
||
22 | |||
23 | 12. Edit pggraphscripts/pggraph.sql and change template. Please use the schema name here to match the variables.sh that we changed in step 10. |
||
24 | |||
25 | 13. cd pggraphscripts/ and run pggraph.sh . Run this file "ONCE". Run chmod 000 after you run this; otherwise you WILL lose previous data |
||
26 | if this file is run again. |
||
27 | |||
28 | This file will gather the information from remote database, create rrds, create .html files, create graphs, create db schema and |
||
29 | initialize it. |
||
30 | |||
31 | 14. createupdatescript.sh |
||
32 | |||
33 | 1 | Devrim Gunduz | This script creates a script named update.sh, which is run every 5 mins by a cron job. |
34 | 5 | Devrim Gunduz | |
35 | 8 | Devrim Gunduz | 15. cd pggraphscripts; sh create-statrrd.sh |
36 | 6 | Devrim Gunduz | |
37 | 1 | Devrim Gunduz | 16. edit index.php at the top location, under www/ |
38 | 9 | Devrim Gunduz | |
39 | 17. run pggraphscripts/userindexscript/userindex.sh |
||
40 | 10 | Devrim Gunduz | extnagios@www:/home/web/manage/mailwise-sqlgrey/www/pggraphscripts/userindexscript$ sh createmainindex-ui.sh > ../../userindex-uistats.php |
41 | extnagios@www:/home/web/manage/mailwise-sqlgrey/www/pggraphscripts/userindexscript$ sh createmainindex-uixacts.sh > ../../userindex-uixact.php |