真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

監(jiān)控cactizabbix(2)

監(jiān)控(1):(cactizabbix)
前提:cacti配置完成
cacti監(jiān)控其他主機(jī)(采集數(shù)據(jù):crontab定時(shí)調(diào)用(poller.php)snmp采集存儲(chǔ)數(shù)據(jù):rrdtool -->rra下的rrd數(shù)據(jù)庫(大小時(shí)固定,循環(huán)記錄數(shù)據(jù),不會(huì)增大,以后不斷做數(shù)據(jù)更新)繪制圖表:http(80) -->php -->MySQL(前提:初始化數(shù)據(jù))-->web(php動(dòng)態(tài)的去mysql數(shù)據(jù)庫里面去取信息但真正采集來的數(shù)據(jù)在rrd里面 mysql里面保存的是所有節(jié)點(diǎn)的信息除了采集來的信息其他的都保存在mysql里面)))真實(shí)繪制圖像的時(shí)候,調(diào)用rrdtool命令 cacti的缺陷:沒有報(bào)警對(duì)硬件沒有監(jiān)控(eg:溫度傳感器等但可以安裝插件)

被監(jiān)控主機(jī)安裝: net-snmp net-snmp-utils

成都創(chuàng)新互聯(lián)是一家專注于成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作與策劃設(shè)計(jì),離石網(wǎng)站建設(shè)哪家好?成都創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)10年,網(wǎng)設(shè)計(jì)領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:離石等地區(qū)。離石做網(wǎng)站價(jià)格咨詢:13518219792

vim/etc/snmp/snmpd.conf
測(cè)試:
 snmpwalk -v 1 -c public localhost.1.3.6.1.4.1.2021.10.1.3
 snmpwalk -v 1 -c public 172.25.42.250.1.3.6.1.4.1.2021.10.1.3

監(jiān)控 cacti zabbix(2)

監(jiān)控 cacti zabbix(2)


將被監(jiān)控主機(jī)加入 cacti
監(jiān)控 cacti zabbix(2)
 

按秒監(jiān)控:crontab+sleep
eg:* * * * * sleep 10;commit
eg:* * * * * sleep 20;commit
eg:* * * * * sleep 30;commit
eg:* * * * * sleep 40;commit
eg:* * * * * sleep 50;commit

cacti加強(qiáng)版:tarzxf cacti-spine-0.8.8h.tar.gz
cd cacti-spine-0.8.8h
yum install mysql-devel net-snmp-devel gcc -y
./configure
make && make install
cd /usr/local/spine/etc
cp spine.conf.dist /etc/spine.conf

監(jiān)控 cacti zabbix(2)
Vim /etc/spine.conf

監(jiān)控 cacti zabbix(2)

su - cacti
/usr/local/spine/bin/spine


 

監(jiān)控 cacti zabbix(2)

監(jiān)控 cacti zabbix(2)


zabbix:
兩臺(tái)虛擬機(jī):
dd5(server):yum installzabbix-server-2.4.5-1.el6.x86_64.rpm zabbix-server-mysql-2.4.5-1.el6.x86_64.rpmzabbix-web-2.4.5-1.el6.noarch.rpm zabbix-web-mysql-2.4.5-1.el6.noarch.rpmzabbix-2.4.5-1.el6.x86_64.rpm fping-2.4b2-16.el6.x86_64.rpmphp-bcmath-5.3.3-26.el6.x86_64.rpm iksemel-1.4-2.el6.x86_64.rpm ../php-mbstring-5.3.3-26.el6.x86_64.rpm

dd4:yum install zabbix-agent-2.4.5-1.el6.x86_64.rpm -yzabbix-2.4.5-1.el6.x86_64.rpm

dd5:(server)
配置 mysql數(shù)據(jù)庫
mysql
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by'westos';
mysql> quit;

監(jiān)控 cacti zabbix(2)
mysql -uzabbix -pwestos zabbix < schema.sql
mysql -uzabbix -pwestos zabbix < p_w_picpaths.sql
mysql -uzabbix -pwestos zabbix < data.sql

配置 zabbix server
vim /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName= zabbix
DBPassword=westos

監(jiān)控 cacti zabbix(2)

監(jiān)控 cacti zabbix(2)


監(jiān)控本機(jī):
rpm -ivhzabbix-agent-2.4.5-1.el6.x86_64.rpm
vim /etc/zabbix/zabbix_agent.conf

監(jiān)控 cacti zabbix(2)
/etc/init.d/zabbix-agent start

查看:

Dd4:
rpm -ivh zabbix-agent-2.4.5-1.el6.x86_64.rpm
vim /etc/zabbix/zabbix_angent.conf

監(jiān)控 cacti zabbix(2)

監(jiān)控 cacti zabbix(2)

/etc/init.d/zabbix-serverstart
 

監(jiān)控 cacti zabbix(2)

監(jiān)控 cacti zabbix(2)

監(jiān)控 cacti zabbix(2)


兩種模式:(都可自動(dòng)發(fā)現(xiàn)主機(jī))

自動(dòng)檢測(cè): (適合批量處理)

自動(dòng)加載:(可用性更高)

監(jiān)控server上的 mysql服務(wù)
在/etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf文件中指定了 zabbix agent如何獲取 mysql
服務(wù)的各種信息,并在/var/lib/zabbix目錄中新建“.my.cnf”文件,用以指定 zabbix agent如何登陸數(shù)據(jù)庫,默認(rèn)使用的是 zabbix用戶,可以在 zabbix_server.conf文件中找到密碼。
監(jiān)控 cacti zabbix(2)

# mkdir/var/lib/zabbix
# vim /var/lib/zabbix/.my.cnf
[mysql]
host = localhost
user = zabbix
password = westos
socket = /var/lib/mysql/mysql.sock
[mysqladmin]
host = localhost
user = zabbix
password = westos
socket = /var/lib/mysql/mysql.sock


 

 


文章題目:監(jiān)控cactizabbix(2)
網(wǎng)站URL:http://weahome.cn/article/gseesc.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部