2008年10月7日 星期二
Debian cacti安裝
- 安裝cacti
debina:~# apt-get install cacti
安裝過程中會要求輸入mysql的root密碼,cacti並會建立一個名為cacti的資料使用者,並設定其密碼 - 打開瀏覽器http://www.myurl.org/cacti,按Next繼續安裝,cacti第一次安裝完成預設帳密為admin/admin,登入後系統會要求更改admin密碼,更改後即可登入cacti
2008年10月6日 星期一
Debian Awstats
- 安裝awstats
debian:~# apt-get install awstats - 設定aswtats
debian:~# vi /etc/awstats/awstats.confLogFile="/var/log/apache2/access.log"
SiteDomain="hft.tweetylny.org"
LogFormat=1
save&exit
debian:~# vi /etc/cron.d/awstats
fix
0,10,20,30,40,50 * * * * www-data [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null
to
0,10,20,30,40,50 * * * * www-data [ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache2/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null
save & exit
debian:~# ln -s /usr/share/awstats/icon /var/www/awstats-icon - 第一次手動執行
debian:~# /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null - 瀏覽器輸入網址
http://www.myurl.org/cgi-bin/awstats.pl Debian預設
cron檔放在 /etc/cron.d/awstats 每10分鍾更新一次
Debian MRTG安裝
- 安裝MRTG
debian:~# apt-get install snmp snmpd mrtg
debian:~# cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
debian:~# rm /etc/snmp/snmpd.conf
debian:~# touch /etc/snmp/snmpd.conf
debian:~# vi /etc/snmp/snmpd.conf
add
rocommunity public
save&exit
debian:~# /etc/init.d/snmpd restart - 測試snmp是否正常啟動
debian:~# snmpwalk -c public -v 1 localhost - 設定/etc/mrtg.cfg
add&fix
WorkDir: /var/www/mrtg
EnableIPv6: no
WorkDir: /var/www/mrtg
Target[eth0]: \eth0:public@localhost:
Refresh: 600
Interval: 5
MaxBytes[eth0]: 1310720
Language: ansi
options[_]: bits, growright, transparent, printrouter, pngdate
PNGTitle[eth0]: tweetylny-tw.org
XScale[eth0]: 1.8
YScale[eth0]: 1.8
LegendO[eth0]: eth0 out flow
LegendI[eth0]: eth0 in flow
Colours[eth0]: 1#FFCC00,2#336699,3#FF0000,4#00FF00;
SetEnv[eth0]: MRTG_INT_IP="123.204.90.138" MRTG_INT_DESCR="eth0" EMAIL="root@tweetylny.org" HOST="tweetylny.org"
Title[eth0]: tweetylny.org
PageTop[eth0]: <h1>tweetylny.org</h1>
save&exit - 執行mrtg,建立index.html
debian:~# mrtg /etc/mrtg.cfg 執行三次
debian:~# indexmaker -output=/var/www/mrtg/index.html -title='tweetylny.org Traffic Info' /etc/mrtg.cfg - Debain預設的值
主要網站是掛在/var/www/mrtg
cron檔放在/etc/cron.d/mrtg 5分鍾更新一次
專題相關
http://blog.roga.tw/2007/09/07/494/
http://bbs.mychat.to/read.php?fid=164&tid=476780
cacti
awstats
mrtg
http://wiki.debian.org/Manual-Howto#head-af0cf2b4461252ac231800c12fa5d28f3a04e166
http://cha.homeip.net/blog/archives/2005/01/sendmail_mailsc.html
http://mydebian.freeblog.hu/archives/2006/12/11/postfix__amavisd-new__spamassassin__spamc__clamav_--_on_debian_etch/
http://bbs.mychat.to/read.php?fid=164&tid=476780
cacti
awstats
mrtg
http://wiki.debian.org/Manual-Howto#head-af0cf2b4461252ac231800c12fa5d28f3a04e166
壓力測試參考資料1
Mail Server 壓力測試參考資料 1
Mail Server 壓力測試(郵件病毒)參考文件 2
壓力測試實錄分享參考文件
http://cha.homeip.net/blog/archives/2005/01/sendmail_mailsc.html
http://mydebian.freeblog.hu/archives/2006/12/11/postfix__amavisd-new__spamassassin__spamc__clamav_--_on_debian_etch/
訂閱:
文章 (Atom)