Install Cacti (Network Monitoring) on RHEL/CentOS 7.x/6.x/5.x and Fedora 21-12

Download all articles in PDF format with our TecMint Content Subscription and Linux Support Services starting at $39 per month.

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

218 Responses

  1. Banu says:

    Where’s the cacti path installed?

    • Ravi Saive says:

      @Banu,

      There isn’t any one place, the Cacti tool gets installed all over the file-system, but the main configuration files resides under /etc/cacti directory..

  2. Szilard says:

    In case of mysql is not on localhost you also need to enable network access for httpd (SElinux) else you will have errors like :
    FATAL: Cannot connect to MySQL server on ‘192.168.1.10’. Please make sure you have specified a valid MySQL database name in ‘include/config.php’

    setsebool -P httpd_can_network_connect=1

  3. Zaya says:

    I have a problem same as Jhay, When I have got “FATAL: Cannot connect to MySQL server on ‘10.0.0.1’. Please make sure you have specified a valid MySQL database name in ‘include/config.php’”.

    My server is running on 10.0.0.1.
    I have created cacti database on mysql, and mysql is working fine. How I can solve?

    • Ravi Saive says:

      @Zaya,

      Please add the 10.0.0.1 IP address in db.php file under /etc/cacti/ directory like this:

      $database_hostname = "10.0.0.1";
      

      I hope it will solve your MySQL connectivity problem..

  4. James Otto says:

    When I try to start mysql service I get the following error
    [vagrant@server1 /]$ sudo service mysqld start

    Redirecting to /bin/systemctl start mysqld.service
    Failed to start mysqld.service: Unit mysqld.service failed to load: No such file or directory.

    What file or directory is missing?

  5. Guilherme Henrique says:

    Dear Mr. Ravi Saive, thank you for a great explanation.

  6. Subhasish Bhattacharya says:

    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.

  7. Hi
    I have error on Cacti Installation which is “FATAL: Cannot connect to MySQL server on ‘localhost’. Please make sure you have specified a valid MySQL database name in ‘include/config.php'” pls help me to fix this

  8. Jolene9 says:

    Hi,
    I have finished Cacti installations but i still can’t see graphs. For rrd files RRDTools says ‘ERROR: opening ‘/usr/share/cacti/rra/localhost_load_1min_5.rrd’: No such file or directory’.. I’ve tried changing the group ownership of rra directory to apache as mentioned above but it didn’t work.

    What I’m supposed to do next? Hope that there’s someone who can help here.
    Thanks!

    • Ravi Saive says:

      @Jolene,

      It seems that rrdtool tool didn’t generating those files, it could be the permission issues on /usr/share/cacti/ directory or try to rebuild Poller Cache from System Utilities (bottom of console).

      • Aleksei says:

        I have another problem, that all graps are not showing anything, they are empty, just none.
        Where the problem could be?

        • Ravi Saive says:

          @Aleksei,

          Please check your SELinux settings and try to disable it and run the poller cron again and see the graphs are generating or not. Also check logs for any errors..

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 95000+ Linux Users
  1. 77,543
  2. 4,213
  3. 35,218

Enter your email to get latest Linux Howto's