![]() ![]() The poller.php script runs every 5mins and collects data of known host which is used by Cacti application to display graphs. # service httpd restart Setting Cron for Cacti mysql -u cacti -p cacti įinally, restart the Apache service. Now we’ve of the location of Cacti.sql file, type the following command to install tables, here you need to type the Cacti user password. # rpm -ql cacti | grep cacti.sql Sample Output: /usr/share/doc/cacti-0.8.7d/cacti.sql Mysql> quit Install Cacti Tables to MySQLįind out the database file path using RPM command, to install cacti tables into newly created Cacti database, use the following command. ![]() Mysql> GRANT ALL ON cacti.* TO IDENTIFIED BY ' your-password-here' ![]() Login into MySQL server with newly created password and create Cacti database with user Cacti and set the password for it. # mysqladmin -u root password YOUR-PASSWORD-HERE Create MySQL Cacti Database ( Note : This is for new MySQL installation only). To set new password for MySQL server, use the following command. If you’re MySQL is already password protected, then don’t need to set it again. We need to configure MySQL for Cacti, to do this we need to set password for our newly installed MySQL server and then we will create Cacti database with user Cacti. Verifying : cacti-0.8. 1/1Ĭomplete! Configuring MySQL Server for Cacti Installation # yum install cacti Sample Output: Loaded plugins: fastestmirror, refresh-packagekit Once you’ve enabled repository, type the following command to install Cacti application. Here, you need to install and enable EPEL Repository. # /sbin/chkconfig -levels 345 snmpd on Install Cacti on RHEL / CentOS / Fedora # service snmpd start Configure Start-up LinksĬonfiguring Apache, MySQL and SNMP Services to start on boot. # service mysqld start Starting SNMP # /etc/init.d/snmpd start # service httpd start Starting MySQL # /etc/init.d/mysqld start Starting Apache # /etc/init.d/httpd start Once you’ve installed all the required software’s for Cacti installation, lets start them one-by-one using following commands. Install Apache # yum install httpd httpd-devel Install MySQL # yum install mysql mysql-server Install PHP # yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-mysql Install PHP-SNMP # yum install php-snmp Install NET-SNMP # yum install net-snmp-utils p net-snmp-libs php-pear-Net-SMTP Install RRDTool # yum install rrdtool Staring Apache, MySQL and SNMP Services Installing Cacti Required Packages on RHEL / CentOS / Fedoraįirst, we need to install following dependency packages one-by-one using YUM package manager tool. RRDTool : A database tool to manage and retrieve time series data like CPU load, Network Bandwidth etc.NET-SNMP : A SNMP ( Simple Network Management Protocol) is used to manage network.PHP-SNMP : A PHP extension for SNMP to access data.PHP : A script module to create graphs using RRDTool.MySQL : A Database server to store cacti information.Apache : A Web server to display network graphs created by PHP and RRDTool.The Cacti required following packages to be installed on your Linux operating systems like RHEL / CentOS / Fedora. In this how-to we are going to show you how to install and setup complete network monitoring application called Cacti using Net-SNMP tool on RHEL 6.3/6.2/6.1/6/5.8, CentOS 6.3/6.2/6.1/6/5.8 and Fedora 17,16,15,14,13,12 systems using YUM package manager tool. Generally, it is used to graph time-series data of metrics such as network bandwidth utilization, CPU load, running processes, disk space etc. Cacti enables a user to poll services at regular intervals to create graphs on resulting data using RRDtool. Cacti tool is an open source web based network monitoring and system monitoring graphing solution for IT business. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |