[FreeBSD] Smokeping 安裝 架設
Apr 28th, 2007 by appleboy 參觀者:5,236Views 機器人:753Views
昨天看到 sayya 的 firedragen 個人版,看到 smokeping 的一些圖片,還蠻帥的,就想到要架設來玩看看
安裝方式如下:
[FreeBSD][root][ ~ ]# cd /usr/ports/net/smokeping/
進去之後
make install clean
然後底下是安裝好之後的訊息
NOTE: A set of sample configuration files have been installed:
/usr/local/etc/smokeping/config
/usr/local/etc/smokeping/smokemail
/usr/local/etc/smokeping/basepage.html
/usr/local/etc/smokeping/tmailYou *MUST* edit these to suit your requirements. Please read the
manpages ’smokeping_install’ and ’smokeping_config’ for further
details on installation and configuration.If you are upgrading from a previous version of Smokeping, the
manpage ’smokeping_upgrade’ may be of help.Once configured, you can start SmokePing by adding:
smokeping_enable=”YES”
to /etc/rc.conf, and then running, as root:
/usr/local/etc/rc.d/smokeping start
To enable Apache web access, add the following to your
/usr/local/etc/apache/httpd.conf:ScriptAlias /smokeping.cgi /usr/local/smokeping/htdocs/smokeping.cgi
Alias /smokeimg/ /usr/local/smokeping/htdocs/img/
上面就是寫:請在 /etc/rc.conf 加入
smokeping_enable=”YES”
然後編輯 /usr/local/etc/apache/httpd.conf 在最後面加上
Alias /smokeimg/ /usr/local/smokeping/htdocs/img/
修改 根目錄底下權限
然後底下這段原本mark,請把他取消
然後最後加上
Options Indexes FollowSymLinks ExecCGI
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 192.168
</directory>
底下附上設定檔,DarkKiller 在 firedragen 版 的連結,不過連結已經失效,好顯自己有存檔
http://blog.wu-boy.com/wp-content/uploads/2007/04/smokeping.txt
最後 NCTU NetFlow’s somkeping demo:
http://netflow.ntcu.net/smokeping/smokeping.cgi?target=Album

您好 我照著您的設定 完以後
smokeping config利用http://blog.wu-boy.com/wp-content/uploads/2007/04/smokeping.txt這個的
但是打上網址
http://163.XX.XXX.XXX/smokeping/
都是出現
Not Found
The requested URL /smokeping/smokeping.cgi was not found on this server.
打上TOP
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
979 root 1 96 0 22244K 14052K select 0:00 3.47% httpd
816 mysql 9 20 0 40932K 16700K sigwai 0:00 0.00% mysqld
705 smokeping 1 8 0 37872K 17736K nanslp 0:00 0.00% perl
有再跑
但是這樣會是哪邊會有問題呢?還麻煩您幫我解答一下 謝謝