Feed on
Posts
Comments

Tag Archive 'mrtg'

[FreeBSD] SNMP 統計流量分析 mrtg

最近處理系上伺服器,安裝的是 FreeBSD 7.0 Release 版本,想說來裝個 mrtg 來統計流量,因為目前 SNMP 已經納入 FreeBSD base 系統裡面了,所以在安裝 mrtg 就相當方便了,我之前有寫過三篇關於統計流量的教學 MRTG Server performace [Linux] Mrtg 實做 war3 線上人數統計 [FreeBSD] 安裝基本mrtg主機流量統計圖 [FC4] snmpd + mrtg 安裝教學「注意事項」

Read Full Post »

應大家觀眾要求,來寫一下教學 當然我不想怎麼安裝mrtg了,搜尋一下本站就會找到教學 相信mrtg最主要是他的設定檔 cfg檔,先來看看 這個cfg檔怎麼寫 # Created by #          Appleboy 2006/09/25 WorkDir: /usr/local/www/data-dist Language: big5 Target[bnet_person]: `/usr/local/etc/mrtg/mrtg.person.sh` MaxBytes[bnet_person]: 10000 Options[bnet_person]: gauge, nopercent, growright YLegend[bnet_person]: Online Users ShortLegend[bnet_person]: 人 LegendI[bnet_person]:   線上人數 : LegendO[bnet_person]:   遊戲數目 : Title[bnet_person]: 小熊戰網 上線人數統計表 先來解釋 WorkDir: /usr/local/www/data-dist 這個是來存放mrtg統計圖的資料夾,請對應到相關可以放html的資料夾 Target[bnet_person]: `/usr/local/etc/mrtg/mrtg.person.sh` 以下是 mrtg.person.sh 這個檔案 #!/bin/sh # 這個程式主要在計算有多少人以 [...]

Read Full Post »

主機資訊 FreeBSD 6.1-RELEASE 安裝步驟 cd /usr/ports/net-mgmt/net-snmp; make install clean cd /usr/ports/net-mgmt/mrtg; make install clean 這2個安裝好,其實基本上就已經可以使用了 在 /etc/rc.conf 加上 snmpd_enable="YES" snmpd_flags="-a -p /var/run/snmpd.pid" snmptrapd_enable="YES" snmptrapd_flags="-a -p /var/run/snmptrapd.pid" 修改 snmpd.conf 檔 目錄在 /usr/local/share/snmp/snmpd.conf com2sec local localhost public com2sec lan 192.168.100.0/24 public group RWGroup v1 local group ROGroup v1 lan view all included .1 80 access RWGroup “” [...]

Read Full Post »

其實安裝方面並不難 FreeBSD 就用ports安裝 fc系列 就用 yum 或者是 apt FreeBSD: /usr/ports/net-mgmt/net-snmp /usr/ports/net-mgmt/mrtg http://phorum.study-area.org/viewtopic.php?t=21142&highlight=public+cfgmaker 我找到的資料 ~ 照上面修改大致上ok

Read Full Post »

fc4作業系統 預設 有連線數目的限制 還有使用者連線的限制 不過解決方法很容易 http://www.ithome.com.tw/plog/index.php?op=ViewArticle&articleId=761&blogId=131 我查到的解決方式 我改完之後如下 core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 16255 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 819200 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, [...]

Read Full Post »