The Cacti tool is an open-source, web-based solution for network monitoring and system graphing in IT businesses. Cacti allows users to poll services regularly to create graphs using RRDtool.
Next, you need to import the default Cacti database schema into the newly created database, but before that, you need to find out the database file path using the rpm command and import it as shown.
Congratulations! You have successfully installed Cacti on RHEL-based systems. You can now start monitoring your network infrastructure by adding devices, creating graphs, and setting up alerts within the Cacti web interface.
I think Cacti installation was not successful, try to follow the instructions again carefully and see, if you still gets same error try to view the logs files of cacti and see what error it showing there?
Where is that password coming from? Am I creating a user called cacti on the local machine? I tried editing the db.php so that the $database_username was 'cacti' and the password was [password] but I get access denied when I use that password. I also tried creating a user on the local host named 'cacti' and giving it a password but I get the same error.
I have a problem on show cacti.log on cacti. It say Error /usr/share/cacti/log/cacti.log is not readable. I try to give full permission to user apache and cacti but it still got same error.
Dear Ravi,
Thanks for your support , one more thing ..it seems to be a time mismatch in cacti time range..i have edited RTC to local timezone but still my graphs are not showing on current timings instead they are shown with a differnce of 5 hours. My timezone is Asia/Karachi
Hope you are fine. I have installed cacti as per your guide and I have then added Localhost in devices and template of load average, I am getting NAN value in graphs, should i wait for 24 hours to get it to poll ??
I really appreciated your effort doing this. I have only one problem encountered which is [ERROR: FILE NOT FOUND] /usr/share/cacti/log/cacti.log.
Would you please advise if I have to create manually the cacti.log file. Thank you very much in advance.
Thanks for appreciating our efforts in creating such easy article for you guys, regarding your issue, just give a day to pull the data from the server, or else you can manually run the poller.php script to update the graphs on the fly..
Check two things, first check the logs under /var/log/ what error exactly you seeing in the logs and secondly try to run the following command and see what output you getting on the screen, share both results with me..
Thank you for these useful information I really appreciate you. I really need using cacti in my work. so I followed all the steps correctly. however, when I entered my ip add it is showed nothing, I changed all the value to allow my ip but nothing is change. then after I followed some posts but I really lost and many issues raised. Now I am getting The requested URL cacti was not found on this server.
May I know on which Linux distribution version you guys trying? so that I can setup locally on my VM to test it myself and will give you proper solution to this problem. I still think its something that Cacti was not installed properly or may be bug in the cacti release..
Hi!
Thanks for manual, just installed on Centos 6.8. When allowing 80 port in firewall better to use insertion (iptables -I), because in my case, rules was added after reject rule, and http service was unavailable
Dear Mr. Ravi Can you please provide some thorough tutorial on oracle DBA administration. from very first installation to common problems manage/troubleshoot oracle 11G/12C. I will be thankful to you.
Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.
Well, I didn't exactly time it, but I figure after doing it over a half dozen times, it's getting pretty easy for me. My issue was that after importing certain graph templates, I was unable to browse data sources or graphs any longer. There was absolutely nothing I could do to get the link back, so I had to blow out the cacti install and/or the MYSQL database and wing it back in. After about the fourth time I figured out it was those imports that did me in. I'll have to work on creating them from scratch because I like the way they appeared. Anyway, enough of me droning on, here's the soup to nuts install procedure. I did this on a fresh install of an older CentOS 7 .iso image on a VMware host with two 3GHz Intel cores with a 19 GB virtual drive and 3 GB of ram. It's very happy with this amount, only topping off when updating from the repos for the first time.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Now that we have extracted the cacti files, we can move on preparing the database for the final installation step. Your first step should be securing the mysql database. The following command will help you with this task on a CentOS system. Make sure to select a strong password for root, e.g. MyN3wpassw0rd
With the last command, you should be seing a mysql prompt where you can enter mysql commands. Here we are going to create the special cacti user. That user only needs to be able to connect from the local system and should have a strong password as well. Enter the following commands and make sure to replace the password:
Net-SNMP is a suite of software for using and deploying the SNMP protocol (v1, v2c and v3 and the AgentX subagent protocol). SNMP stands for Simple Network Management Protocol, which is a standard way of monitoring and managing network devices, such as routers, switches, servers, printers, etc. Net-SNMP supports various network transports, such as IPv4, IPv6, IPX, AAL5, Unix domain sockets and others. Net-SNMP contains a generic client library, a suite of command line applications, a highly extensible SNMP agent, perl modules and python modules.
Net-snmp-utils is a package that contains various utilities for use with the Net-SNMP network management project. These utilities include command line applications for managing your network using the SNMP protocol, such as snmpget, snmpset, snmpstatus, snmptest, snmptrap, and snmpwalk. You can use these utilities to communicate with SNMP agents on your network devices and perform various operations, such as retrieving or modifying information, sending or receiving traps, or walking through a MIB tree.
Net-snmp-libs is a package that contains the libraries for the Net-SNMP network management project. These libraries provide the core functionality for the SNMP protocol, such as encoding and decoding SNMP messages, sending and receiving SNMP packets, handling SNMP errors, etc. The net-snmp-libs package is required by the net-snmp package, which contains the SNMP agent, and the net-snmp-utils package, which contains the SNMP utilities.
RRDtool is a software tool for data logging and graphing of time series data, such as network bandwidth, temperatures, CPU load, etc. RRDtool stands for round-robin database tool, because it stores the data in a circular buffer based database that has a fixed size and a fixed time span. This means that the data is automatically aggregated and archived according to different resolutions and consolidation functions, such as average, minimum, maximum, etc. RRDtool can be easily integrated in shell scripts, perl, python, ruby, lua or tcl applications. It also has a graph function that can present the data in a customizable graphical format, such as PNG, EPS, PDF or SVG. RRDtool can be used for various purposes, such as monitoring system performance, network traffic, weather data, sensor readings, etc.
At this point you can start the SNMPD process and also enable it to start at server boot time, that is making the SNMPD process persistent through server reboots. SNMPD is a daemon that implements the SNMP protocol on Linux OS. SNMPD acts as an SNMP agent, which binds to a port and awaits requests from SNMP management software. Upon receiving a request, it processes the request, collects the requested information and/or performs the requested operations and returns the information to the sender. SNMPD can be configured using the /etc/snmp/snmpd.conf file.
Httpd is a software program that acts as a web server using the HTTP and/or HTTPS protocols. Httpd stands for Hypertext Transfer Protocol Daemon, which means it is a process that runs in the background and waits for incoming client requests. Httpd can serve static or dynamic web content, such as HTML pages, images, scripts, etc. Httpd can also send HTTP error messages if the requested resource is not found or not accessible. Httpd is a common name for web server software, especially on Unix-like operating systems (Linux). There are different implementations of httpd, such as Apache HTTP Server, Nginx, Lighttpd, etc. Each implementation may have different features, configuration options and performance characteristics. For this particular installation, we shall make use of the Apache Web Server.
MariaDB is a database server that is compatible with MySQL, which means it can use the same data and commands as MySQL. MariaDB was created by some of the original developers of MySQL, who wanted to keep the project open source and independent from Oracle, the company that acquired MySQL in 2010. MariaDB has some features and improvements that MySQL does not have, such as better performance, scalability, security and compatibility. Cacti requires a database server to store its configuration and user data, and it can use either MySQL or MariaDB for this purpose. However, some users may prefer to use MariaDB over MySQL for various reasons, such as:
7fc3f7cf58