Cacti monitoring software

Source: Internet
Author: User
Tags mysql create rrdtool snmp mysql create user

Cacti monitoring software:

Deploying the Cacti Runtime environment

# yum-y Install httpd mysql mysql-server mysql-devel php php-mysql

# yum-y Install zlib freetype libjpeg fontconfig libxml2 gd PHP-GD

# yum-y Install RRDtool

# yum-y Install Net-snmp net-snmp-utils

# service httpd Start

# Chkconfig httpd on

Start the MySQL service

# service Mysqld Start or

#/etc/init.d/mysqld start

#lsof-I: 3306

#netstat-lnt|grep 330

# Chkconfig Mysqld on

# service SNMPD Start

# chkconfig SNMPD on

Installing cacti

# Tar XF cacti-0.8.7g.tar.gz-c/var/www/html/

# cd/var/www/html/

# MV Cacti-0.8.7g/cacti

# Vim cacti/include/config.php

Collect Data command join System crontab task

Echo ' */5 * * * * */usr/bin/php/var/www/html/cacti/poller.php >/dev/null 2>&1 ' >>/var/spool/cron/root

View Scheduled Tasks Crontab-l

# mysql Create user cactiuser, password cactiuser, and authorize

mysql> CREATE DATABASE Cactiuser;

Mysql> Grant all on cacti.* to ' cactiuser ' @ ' localhost ' identified by ' cactiuser ';

mysql> flush Privileges; mysql> show databases;

Mysql> exit

# Chown-r root:root/var/www/html/cacti/

# Useradd Cacti

# Chown-r cacti:cacti/var/www/html/cacti/log/

# chown-r cacti:cacti/var/www/html/cacti/rra/initializing cacti database

# MySQL Cacti <cacti.sql

# mysql-e "Use cacti;show tables;"

Enter http://192.168.1.106/cacti/install/in the browser and enter the Cacti Setup Wizard

The default account password for the first time is: admin

#rpm-aq|grep Net-snmp

#rpm-aq|grep RRDtool

----------------------------------------------------------------------------

/usr/bin/php/var/www/html/cacti/poller.php

If there are 100 machines installed on each machine, running the SNMP service can be monitored,

Alarm words generally use nagios, more powerful than cacti, just out of the picture is not cacti good-looking.

===============================================================

Cacti monitor the number of concurrent connections netstat different network states

Netstat-n |awk '/^tcp/{++OLDBOY[NF]} END {for (a in Oldboy) print A, oldboy[a]} '

I do not know the Netstat status parameters can be man netstat view

Unzip the Get_netstat_conn.zip plugin program

# Unzip Get_netstat_conn.zip

Copy get_netstat_tcp_oldboytraining.pl to cacti root directory, authorization 755

Test the script to return the connection state data normally

Stress testing can be performed using the pressure test tool

Cacti monitoring software

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.