OS:CentOS 5.5
Requirement:
Apache
libpcap libpcap-devel
libpng libpng-devel
gd gd-devel
bandwidthd
1. 安裝相依套件
yum install httpd
/etc/init.d/httpd restart
chkconfig httpd on
yum install libpcap libpcap-devel libpng libpng-devel gd gd-devel
2. 下載安裝BandwidthD
wget http://sourceforge.net/projects/bandwidthd/files/bandwidthd/bandwidthd%202.0.1/bandwidthd-2.0.1.tgz/download
tar -zxvf bandwidthd-2.0.1.tgz
cd bandwidthd-2.0.1
./configure
make
make install
3. 配置BandwidthD監控哪一網段(or 介面)
vi /usr/local/bandwidthd/etc/bandwidthd.conf
subnet 192.168.44.0/24
4. 啟動BandwidthD deamon
/usr/local/bandwidthd/bandwidthd
5. 建置BandwidthD網站目錄
cd /var/www/html
ln -s /usr/local/bandwidthd/htdocs/ bandwidthd
6. 完成,測試
http://your server IP/bandwidthd
參考文章:
http://bandwidthd.sourceforge.net/
http://blog.yam.com/wishdeen/article/27213731
http://kkbruce.blogspot.com/2008/08/bandwidthdip.html
2011年4月2日 星期六
2010年12月19日 星期日
Cacti Client 簡易設定 (二)
CentOS 5.5
1. 安裝SNMP
yum install net-snmp net-snmp-utils net-snmp-devel
2. 設定snmp
vi /etc/snmp/snmpd.conf
view systemview included .1.3.6.1.2.1
service snmpd start; chkconfig snmpd on
3. 至cacti網站新增linux主機控管(Devices)
4. 手動新增"Associated Data Queries"
5. 建立圖表
6. 將剛建立的Devices加入Graph Trees瀏覽
7. 完成
1. 安裝SNMP
yum install net-snmp net-snmp-utils net-snmp-devel
2. 設定snmp
vi /etc/snmp/snmpd.conf
view systemview included .1.3.6.1.2.1
service snmpd start; chkconfig snmpd on
3. 至cacti網站新增linux主機控管(Devices)
4. 手動新增"Associated Data Queries"
5. 建立圖表
6. 將剛建立的Devices加入Graph Trees瀏覽
7. 完成
Cacti Client 簡易設定 (一)
Windows server 2003
1. 安裝SNMP
新增/移除windows元件 --> Management and Monitoring Tools
2. 開啟SNMP service,新建一個"群體"名稱
3. 至cacti網站新增windows主機控管(Devices)
4. 建立之後,頁面左上角會出現建立圖表的連結
5. 選擇要建立監控資源的圖表
6. 將剛建立的Devices加入Graph Trees瀏覽
7. 完成
1. 安裝SNMP
新增/移除windows元件 --> Management and Monitoring Tools
2. 開啟SNMP service,新建一個"群體"名稱
3. 至cacti網站新增windows主機控管(Devices)
4. 建立之後,頁面左上角會出現建立圖表的連結
5. 選擇要建立監控資源的圖表
6. 將剛建立的Devices加入Graph Trees瀏覽
7. 完成
2010年12月18日 星期六
網管工具 - cacti
OS:CentOS 5.5
Requirement:
httpd
php php-mysql php-snmp php-gd
mysql mysql-server
cacti
1. 安裝相依套件
yum install httpd php php-mysql mysql mysql-server
2. 安裝Cacti
rpm -ivh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
yum install cacti*
3. 建立cacti使用的資料庫
service mysqld start
mysqladmin -u root password '管理者密碼'
mysql -u root -p
create database cacit;
quit
mysql -u root -p cacti < /var/www/cacti/cacti.sql
mysql -u root -p
grant all on cacti.* to cacti@localhost identified by 'cacti';
flush privileges;
quit
4. 配置cacti組態檔
vi /var/www/cacti/include/config.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "cacti";
5. 開啟瀏覽器,安裝cacti
http://localhost/cacti/
6. 檢視相關設定是否正確
7. 登入(預設 admin/admin),第一次登入會強制更改密碼
參考文章:
http://cacti.xxoo.net/
http://actychen.blogspot.com/2007/11/cacti-server.html
Requirement:
httpd
php php-mysql php-snmp php-gd
mysql mysql-server
cacti
1. 安裝相依套件
yum install httpd php php-mysql mysql mysql-server
2. 安裝Cacti
rpm -ivh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
yum install cacti*
3. 建立cacti使用的資料庫
service mysqld start
mysqladmin -u root password '管理者密碼'
mysql -u root -p
create database cacit;
quit
mysql -u root -p cacti < /var/www/cacti/cacti.sql
mysql -u root -p
grant all on cacti.* to cacti@localhost identified by 'cacti';
flush privileges;
quit
4. 配置cacti組態檔
vi /var/www/cacti/include/config.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "cacti";
5. 開啟瀏覽器,安裝cacti
http://localhost/cacti/
6. 檢視相關設定是否正確
7. 登入(預設 admin/admin),第一次登入會強制更改密碼
參考文章:
http://cacti.xxoo.net/
http://actychen.blogspot.com/2007/11/cacti-server.html
2010年11月9日 星期二
Zabbix Alert Mail
OS:CentOS 5.5
1. 設定Zabbix Media Type內容(Email)
"Administration -> Media Type"
Description:media type敘述
Type:選擇是哪種media type
SMTP server:mail server 主機名稱(or IP)
SMTP helo:指定localhost主機名稱即可
SMTP email:寄件人信箱
2. 指定Media Type對應使用者帳號
"Administration -> Users -> Media[Add]"
Type:使用哪種media type
Send to:收件人信箱
When active:指定什麼時間啟動
Use if severity:指定那些等級監聽
Status:指定啟用或不啟用
3. 指定事件觸發Media Type(Email)
"Configuration -> Actions"

Action:定義Alert Mail內容敘述
Action conditions:定義Alert Mail監控那些事件觸發
Action operations:定義哪的使用者帳號接收Alert Mail
參考文章:
http://www.zabbix.com/forum/showthread.php?t=5645
1. 設定Zabbix Media Type內容(Email)
"Administration -> Media Type"
Description:media type敘述
Type:選擇是哪種media type
SMTP server:mail server 主機名稱(or IP)
SMTP helo:指定localhost主機名稱即可
SMTP email:寄件人信箱
2. 指定Media Type對應使用者帳號
"Administration -> Users -> Media[Add]"
Type:使用哪種media type
Send to:收件人信箱
When active:指定什麼時間啟動
Use if severity:指定那些等級監聽
Status:指定啟用或不啟用
3. 指定事件觸發Media Type(Email)
"Configuration -> Actions"

Action:定義Alert Mail內容敘述
Action conditions:定義Alert Mail監控那些事件觸發
Action operations:定義哪的使用者帳號接收Alert Mail
參考文章:
http://www.zabbix.com/forum/showthread.php?t=5645
網管工具 - Zabbix
OS:CentOS 5.5
Requirments:
httpd
php php-gd php-bcmath php-xml php-mbstring php-mysql
mysql mysql-devel
OpenIPMI
openssh
net-snmp net-snmp-devel
curl curl-devel
gcc
zabbix-1.8.3
1.安裝相依套件
yum install httpd php php-gd php-bcmath php-xml php-mbstring php-mysql mysql mysql-devel OpenIPMI openssh net-snmp net-snmp-devel curl curl-devel gcc
2.下載Zabbix Source Code,解壓縮
tar -zxvf zabbix-1.8.3.tar.gz
3.起動相關服務
service httpd start; service mysqld start
chkconfig httpd on; chkconfig mysqld on
4.設定Zabbix使用資料庫
mysqladmin -u root password '管理者密碼'
mysql -u root -p
create database zabbix character set utf8;
quit
5.建立Zabbix資料庫內容
cd zabbix-1.8.3/create/schema
mysql -u root -p zabbix < mysql.sql
cd ../data
mysql -u root -p zabbix < data.sql
mysql -u root -p zabbix < images_mysql.sql
6.編譯Zabbix Source Code
cd /root/zabbix-1.8.3
./configure --enable-server --enable-agent --with-mysql --with-net-snmp -with-libcurl
make; make install
7.著名Zabbix服務站用port
vi /etc/service
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
zabbix-trapper 10051/tcp Zabbix Trapper
zabbix-trapper 10051/udp Zabbix Trapper
8.修改組態檔
mkdir /etc/zabbix
cp /root/zabbix-1.8.3/misc/conf/zabbix_agent.conf /etc/zabbix
vi /etc/zabbix/zabbix_agent.conf
Server=Zabbix Server IP
cp /root/zabbix-1.8.3/misc/conf/zabbix_agentd.conf /etc/zabbix
vi /etc/zabbix/zabbix_agentd.conf
LogFile="Zabbix Agentd Log 位置"
Server="Zabbix Server IP"
Hostname="Zabbix Agent Hostname"
cp /root/zabbix-1.8.3/misc/conf/zabbix_server.conf /etc/zabbix
vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=root
DBPassword=daniel
Timeout=3
9.設定Zabbix開機啟動
mkdir /usr/local/zabbix
cp /usr/local/sbin/zabbix_agentd /usr/local/zabbix/bin
cp /usr/local/sbin/zabbix_server /usr/local/zabbix/bin
cd /root/zabbix-1.8.3/misc/init.d/redhat/8.0
cp zabbix_agentd /etc/init.d/
cp zabbix_server /etc/init.d/
service zabbix_server start; service zabbix_agentd start
chkconfig zabbix_server on; chkconfig zabbix_agentd on
10.複製Zabbix網站檔案至網頁根目錄
mkdir /var/www/html/zabbix
cp /root/zabbix-1.8.3/frontends/php/* /var/www/html/zabbix
11.安裝Zabbix Web GUI
http://localhost/zabbix
依照指示操作(圖形介面)
12.完成,登入(帳號:admin,密碼:zabbix)
參考文章:
http://www.zabbix.com/documentation/1.8/complete#installation
Requirments:
httpd
php php-gd php-bcmath php-xml php-mbstring php-mysql
mysql mysql-devel
OpenIPMI
openssh
net-snmp net-snmp-devel
curl curl-devel
gcc
zabbix-1.8.3
1.安裝相依套件
yum install httpd php php-gd php-bcmath php-xml php-mbstring php-mysql mysql mysql-devel OpenIPMI openssh net-snmp net-snmp-devel curl curl-devel gcc
2.下載Zabbix Source Code,解壓縮
tar -zxvf zabbix-1.8.3.tar.gz
3.起動相關服務
service httpd start; service mysqld start
chkconfig httpd on; chkconfig mysqld on
4.設定Zabbix使用資料庫
mysqladmin -u root password '管理者密碼'
mysql -u root -p
create database zabbix character set utf8;
quit
5.建立Zabbix資料庫內容
cd zabbix-1.8.3/create/schema
mysql -u root -p zabbix < mysql.sql
cd ../data
mysql -u root -p zabbix < data.sql
mysql -u root -p zabbix < images_mysql.sql
6.編譯Zabbix Source Code
cd /root/zabbix-1.8.3
./configure --enable-server --enable-agent --with-mysql --with-net-snmp -with-libcurl
make; make install
7.著名Zabbix服務站用port
vi /etc/service
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
zabbix-trapper 10051/tcp Zabbix Trapper
zabbix-trapper 10051/udp Zabbix Trapper
8.修改組態檔
mkdir /etc/zabbix
cp /root/zabbix-1.8.3/misc/conf/zabbix_agent.conf /etc/zabbix
vi /etc/zabbix/zabbix_agent.conf
Server=Zabbix Server IP
cp /root/zabbix-1.8.3/misc/conf/zabbix_agentd.conf /etc/zabbix
vi /etc/zabbix/zabbix_agentd.conf
LogFile="Zabbix Agentd Log 位置"
Server="Zabbix Server IP"
Hostname="Zabbix Agent Hostname"
cp /root/zabbix-1.8.3/misc/conf/zabbix_server.conf /etc/zabbix
vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=root
DBPassword=daniel
Timeout=3
9.設定Zabbix開機啟動
mkdir /usr/local/zabbix
cp /usr/local/sbin/zabbix_agentd /usr/local/zabbix/bin
cp /usr/local/sbin/zabbix_server /usr/local/zabbix/bin
cd /root/zabbix-1.8.3/misc/init.d/redhat/8.0
cp zabbix_agentd /etc/init.d/
cp zabbix_server /etc/init.d/
service zabbix_server start; service zabbix_agentd start
chkconfig zabbix_server on; chkconfig zabbix_agentd on
10.複製Zabbix網站檔案至網頁根目錄
mkdir /var/www/html/zabbix
cp /root/zabbix-1.8.3/frontends/php/* /var/www/html/zabbix
11.安裝Zabbix Web GUI
http://localhost/zabbix
依照指示操作(圖形介面)
12.完成,登入(帳號:admin,密碼:zabbix)
參考文章:
http://www.zabbix.com/documentation/1.8/complete#installation
訂閱:
文章 (Atom)





















