Cacti is an open source web-based network monitoring tool designed as the front end application for the RRDtool (Round-Robin database tool), it allows a user to poll the services at an interval of time and resulting in the graph format.Cacti is generally used to get a graph data for the CPU and network bandwidth utilization, it monitors the network traffic by polling a router or switch via SNMP.Here is the small tutorial on how to install Cacti on CentOS 6 / RHEL 6. RequirementsSetup EPEL repository on your system. Rpm -Uvh the following packages for the Cacti setup. Yum -y install httpd php php-mysql php-snmp mysql mysql-server net-snmp rrdtool net-snmp-utilsInstall the following PHP extension. Yum -y install php-xml php-session php-sockets php-ldap php-gdMake the services are started at startup.
Chkconfig httpd onchkconfig mysqld onchkconfig snmpd onStart the following services. Service httpd startservice snmpd startservice mysqld start DatabaseCreate a database for Cacti. If you are configuring the MySQL for the first time, then take a look at. # mysql -u root -pEnter password:Welcome to the MySQL monitor. Commands end with; or g.Your MySQL connection id is 9Server version: 5.1.73 Source distributionCopyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or 'h' for help.
Type 'c' to clear the current input statement.mysqlCreate Cacti database. Create database cacti;Grant permission to the newly created database. GRANT ALL ON cacti. TO IDENTIFIED BY 'cactipassword';flush privileges;exitThe database user ( cactiuser) should have access to the mysql.timezonename Table.
To do that, import the mysqltestdatatimezone.sql to mysql database first. Mysql -u root -p mysql.
Use Cacti to monitor your network latency. Posted by Ivan Versluis. Create new device in Cacti Management console. Locate Associated Graph Templates and choose “Unix-Ping Latency” in the Graph Templates. D) Click “.Create Graphs for this Host”. So I've set up cacti to monitor my network, even found a ESX 5.x template for cacti, but I can't seem to get my snmp working properly on my.
Yum -y install cacti Configure CactiImport the default database to the cacti database. Mysql cacti /dev/null 2&1Edit apache configuration file to perform the remote installation.
Vi /etc/httpd/conf.d/cacti.confModify the first directory stanza, from “ Allow from localhost” # httpd 2.4Require host localhost# httpd 2.2Order deny,allowDeny from allAllow from localhostTo “ Allow from 192.168.12.0/24” – Your network. # httpd 2.4Require all granted# httpd 2.2Order deny,allowDeny from allAllow from 192.168.12.0/24Set the timezone by editing /etc/php.ini file. Vi /etc/php.iniUpdate the timezone. Date.timezone = US/EasternRestart the services.
Service httpd restartservice snmpd restartservice mysqld restart SELinuxConsider for Cacti to work properly. For a temporary solution, run the following command to disable SELinux until you reboot the system. Setenforce 0 FirewallRun the following command on the terminal to allow access to Cacti web interface through the firewall. Iptables -I INPUT -p tcp -m tcp -dport 80 -j ACCEPTservice iptables save Setup Cacti Web InterfaceVisit the following URL to start the installation of cacti.
Click on Next to continue. Install Cacti on CentOS 6 – Cacti License AgreementIn this page, look for any errors the Cacti reports to you about your machine.
Go down and click Next. Install Cacti on CentOS 6 – Pre Installation Check 1 Install Cacti on CentOS 6 – Pre Installation Check 2You could see some recommendation from Cacti for MySQL variables. It is up to you to follow that. Scroll down for the options. Select New Primary Server for the new installation and then click Next. Install Cacti on CentOS 6 – Cacti Installation TypeIt will show you if there is any package is missing which is mandatory for the cacti.
Install Cacti on CentOS 6 – Cacti BinariesYou can ignore the Spine error as we will be using built-in Cacti poller.Make sure directories are writable. Install Cacti on CentOS 6 – Cacti Directory Permission ChecksInstall Cacti templates. Install Cacti on CentOS 6 – Cacti Template SetupEnter User Name and Password (Default admin/admin) Install Cacti on CentOS 6 – Cacti Login PageYou must change the default password. Install Cacti on CentOS 6 – Cacti Change PasswordThe following shows the dashboard of the cacti. Install Cacti on CentOS 6 – Cacti Dash BoardNow you can start configuring the Cacti to monitor your devices. More documentation can be found.We welcome your comments, please post your valuable comments below.
Dependenciespython = 2.7pyvmomigccgit Install prequisitiesyum install gcc gityum install python-pippip install pyvmomi How is worksGathering data from vCenter isn't the fastest thing in the world so rather than slowing down Cacti's poller we're use the followoing approach.Create a CRON job for vsphere-cluster-stats.py. Personally I run it every hours as the Cacti user.Configure vCenter hostname and login details in $CACTI-HOME/scripts/vsphere.conf.Write the gathered data in JSON format to a file: /tmp/cacti-$VCENTERHOSTNAME-cluster-stats.json.ssvsphereclusters.php is run by Cacti's script server and grabs the values from the JSON file.$CACTI-HOME/queryvsphereclusters.xml defines the query for Cacti to runCacti man pageCreate the XML description fileScript the data collecting script. Create Data Query.
Create graph template. Associate Graph Template with Data Query.