In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Monitoring (1): (cactizabbix)
Prerequisite: cacti configuration is complete
Cacti monitors other hosts (collecting data: crontab timing call (poller.php) snmp collects and stores data: rrdtool-- > rrd database under rra (fixed size, cyclic recording data, will not increase Continue to update the data later) draw the chart: http (80)-- > php-- > mysql (premise: initialize the data)-> web (php dynamically goes to the mysql database to get the information, but the real collected data is saved in the rrd mysql is the information of all nodes (except the collected information is saved in the mysql)) when the image is actually drawn Defect of calling rrdtool command cacti: no alarm, no monitoring of hardware (eg: temperature sensor, etc., but plug-ins can be installed)
Installation of monitored host: net-snmp net-snmp-utils
Vim/etc/snmp/snmpd.conf
Test:
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
The monitored host will join the cacti
Monitoring by second: crontab+sleep
Eg:* sleep 10 commit
Eg:* sleep 20 commit
Eg:* sleep 30 commit
Eg:* sleep 40 commit
Eg:* sleep 50 commit
Cacti enhanced version: 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
Vim / etc/spine.conf
Su-cacti
/ usr/local/spine/bin/spine
Zabbix:
Two virtual machines:
Dd5 (server): yum installzabbix-server-2.4.5-1.el6.x86x64.rpmzabbix-server-mysql-2.4.5-1.el6.x86_64.rpmzabbix-web-2.4.5-1.el6.noarch.rpmzabbix-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)
Configure the mysql database
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
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=westosMonitor the local machine:
Rpm-ivhzabbix-agent-2.4.5-1.el6.x86_64.rpm
Vim / etc/zabbix/zabbix_agent.conf
/ etc/init.d/zabbix-agent start
View:
Dd4:
Rpm-ivh zabbix-agent-2.4.5-1.el6.x86_64.rpm
Vim / etc/zabbix/zabbix_angent.conf
/ etc/init.d/zabbix-serverstart
Two modes: (both hosts can be discovered automatically)
Automatic detection: (suitable for batch processing)
Auto load: (higher availability)
Monitor mysql services on server
How zabbix agent gets mysql is specified in the / etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf file
All kinds of information about the service, and create a new ".my.cnf" file in the / var/lib/zabbix directory to specify how zabbix agent logs into the database. By default, the zabbix user is used, and the password can be found in the zabbix_server.conf file.
# 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
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.