2006/04/19

[ FBSD ] cacti traffic 800M maximum problem

cacti 32bit 跟 64bit 問題已解決...
不過又有新的問題?我朋友的公司流量可真大 ...
Gigaethernet 流量竟然超過 800M 超過 800M 的圖形又怪怪了 ..
還好有 Google 也找到解決方式 :
http://linux.chinaunix.net/jh/4/594019.html

已經 Create 出來的圖可連到機器中直接修改 rrd 參數即可

切換到 cacti 的 rrd 目錄
#cd /usr/local/www/data-dist/cacti/rra/

查看 maximum 的值
#rrdtool info ntut_idv_tw_traffic_in_178.rrd
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+08

直接下指令修改 cacti 的 maximum 值
#rrdtool tune ntut_idv_tw_traffic_in_178.rrd --maximum traffic_in:1.2500000000e+08

若是還沒 Create 出來的圖可以重 Browse 上修改

Console > Data Templates > Interface - Traffic > Maximum Value

2006/04/18

[ FBSD ] iconv big5 to utf-8

在 FreeBSD 中將 big5 編碼轉成 utf-8 編碼格式

#cd /usr/ports/converters/iconv
# 安裝 iconv
#make install

#iconv -l
# 查看 iconv 支援那些編碼格式
#iconv -f BIG5 -t UTF-8 users.ldif > users.utf8.ldif # 轉檔

2006/04/17

[ FBSD ] cacti traffic problem

最近有個朋友發現到 cacti 流量超過 120M bps 時圖形會變得不正常
問題的針節點是在 32bit 跟 64bit 這邊
FastEthernet 100M bps 是使用 2^32 次方採用 32 bit
GigaEthernet 1G bps 是使用 2^64 次方採用 64 bit
所以在 Create 流量圖時記得在 Select a graph type: 這邊
選用 In/Out Bits ( 64-bit Counters ) 而非原本的 In/Out Bits
而且在 SNMP 上面也必須要改 SNMP v2 因為 v1 不 Support 64 bit

2006/04/14

[ FBSD ] Postfix + TLS + Courier-imap

校正了之前在 FreeBSD 上 Postfix + TLS + Courier-imap 安全加密認證方式。