background preloader

Monitoring

Facebook Twitter

Product Overview. Cacti 세팅. The Complete RRDTool-based Graphing Solution. ZABBIX installation on Linux (CentOS 6.2 or RedHat 6.2) Install Zabbix Server + CentOS 6.2 (64 bit) [root@imonitor-lr ~]# rpm -Uvh Retrieving warning: /var/tmp/rpm-tmp.tFsRI4: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing... ########################################### [100%] 1:epel-release ########################################### [100%] [root@imonitor-lr ~]# - FROM EPEL Repos # yum --enablerepo=epel -y install zabbix-server-mysql zabbix-agent zabbix-web-mysql **** Do update /etc/my.cnfinnodb_file_per_table=1Reason[InnoDB tables currently store data and indexes into a shared tablespace (/var/lib/mysql/ibdata1).

ZABBIX installation on Linux (CentOS 6.2 or RedHat 6.2)

Due to the shared tablespace, data corruption for one InnoDB table can result in MySQL failing to start up on the entire machine. Repairing InnoDB corruption can be extremely difficult to perform and can result in data loss for tables that were not corrupted originally during that repair process. Changing to per-table tablespace with innodb_file_per_table in vim /etc/php.init # line 440: change to Zabbix recomended.

RedHat / CentOS Install and Configure Cacti Network Graphing Tool. Cacti is a network graphing tool similar to MRTG.

RedHat / CentOS Install and Configure Cacti Network Graphing Tool

How do I install and configure common options to collect SNMP data and various other data (such as system load, network link status, hard disk space, logged in users etc) into an RRD? From the official project site: Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering.

Required software(s) You need to install the following software on RHEL / Fedora / CentOS Linux: MySQL Server : Store cacti data.NET-SNMP server - SNMP (Simple Network Management Protocol) is a protocol used for network management.PHP with net-snmp module - Access SNMP data using PHP.Apache / lighttpd / ngnix webserver : Web server to display graphs created with PHP and RRDTOOL. Configure MySQL server Install snmpd. Cacti로 MySQL 모니터링 및 튜닝 포인트. 모니터링 도구로 Nagios, Zabbix, Ganglia 등 많지만, 저는 Cacti를 사용해 왔고(많이 사용한 건 아니지만) 최근 들어 많은 기능이 고도화(알림, 템플릿, 다루기 쉬움)되어서 나름 괜찮다고 생각해 Cacti를 가지고 MySQL을 모니터링하고 일부 튜닝 포인트도 잡을 수 있는 내용으로 기술해 봅니다.

Cacti로 MySQL 모니터링 및 튜닝 포인트

모니터링하기 위해 Cacti를 설치하고, Plugin을 등록하자. 기존에 Cacti 설치 매뉴얼은 여기를 참조하면 설치가 가능하다. 이번에는 추가적으로 자주 활용되는 Cacti Plugin을 더 설치하였다. > wget > unzip cacti-0.8.7i-PIA-3.1.zip > cd /home/k2/www/cacti > patch -p1 -N < /logs/src/cacti-0.8.7i-PIA-3.1/cacti-plugin-0.8.7e-PA-v2.6.diff > cd /home/k2/www/cacti > wget -O settings.tgz > tar zxvf settings*.tgz -C /home/k2/www/cacti/plugins > chown -R apache:apache /home/k2/www/cacti/plugins/settings > wget -O clog.tgz > tar zxvf clog*.tgz -C /home/k2/www/cacti/plugins > chown -R apache:apache /home/k2/www/cacti/plugins/clog > wget -O thold.tgz > tar zxvf thold*.tgz -C /home/k2/www/cacti/plugins > chown -R apache:apache /home/k2/www/cacti/plugins/thold > wget -O monitor.tgz > tar zxvf monitor*.tgz -C /home/k2/www/cacti/plugins > chown -R apache:apache /home/k2/www/cacti/plugins/monitor.

Tired of Nagios and Cacti? Try Zabbix.