Install Cacti (Network Monitoring) on RHEL/CentOS 6.3/5.8 and Fedora 17-12

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Ravi Saive

Simple Word 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.

TecMint users Get a Free Domain and 30% off on Inmotion Web Hosting - Signup with Inmotion Now!

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

156 Responses

  1. tewelde says:

    i have already installed cacti but i canot access it the graphs its shows me with snmp error information
    SNMP Information
    SNMP error
    snmp.conf is just
    i need help if you know it the problem

  2. rahul says:

    When I install cacti in centos 6.4
    I faced lits of problem I m not able to install cacti in my server
    Still I get error
    Cannot retrieve repository expel and path incorrect plz give me any suggestion and resolve my problem as soon as possible

  3. Stella says:

    HI…After I navigate ipaddress/cacti/
    I see this error
    What should I do
    Thanks for helping
    FATAL: Cannot connect to MySQL server on ‘localhost’. Please make sure you have specified a valid MySQL database name in ‘include/config.php’

  4. Ravi says:

    I have a query regarding cacti. Cacti is network monitoring tool. So I have installed it on centos-5-64bit server. Its working fine with localhost.

    Now I have added another server in it. But graphs are not getting generated for it.

    Is there any configuration required for the newly added server end? Like nagios, we have to setup client end.

  5. jim says:

    The current 8.8b release has a broken graphs.php. It appears to have been broken fixing a security issue. You’ll hit it when you try to add a graph to a tree. this is the one you want to replace it with

    • C says:

      I somehow got my graphs to show, I’m not sure what made it show. I have updated the graphs.php as per the link afterwards but am not seeing any difference.

      However, I still cannot get the timezone correct, it is still using UTC even though php.ini is set to a different timezone. My General information in Cacti is showing UTC time while date section shows default timezone as UTC and local/master value of date.timezone Asia/Hong_Kong

      Data are not being recorded to the graph until the next day. The graph appears with NaN values until the next day. This is a test machine that is turned off daily. I’ve tried restarting and turning the machine off after adding a new device and graph and it always needs a night before values show. I’m not sure where to change the time or why it is taking so long for data to be valid on the graph.

  6. C says:

    Hi, thanks for the how-to on getting cacti installed. I currently have it on Fedora 20 with cacti 0.8.8b. Having set the file to “Allow from all”, I’m still not able to access it from another computer using the IP/cacti. It is still giving me the “You don’t have permission to access /cacti on this server.”

    I’m also having different time for my logs and graphs that is different from the system time. I have 11:30am on the system and the log would show 3:30am. Graph shows correct time on the axis but log time for “From date time to date time”.

    Lastly, I’m having all my data show as nan. The “Log File” under utilities is green and doesn’t appear to be any error. The devices I’m testing with is a cisco swtich and a Windows 7 computer both using snmp. The device recognizes the information but yet I’m still getting nan.

    Any idea on how to resolve this? Thank you!

    • Ravi Saive says:

      Are you able to access cacti interface from localhost? like http://localhost/cacti? If yes, then you must add your IP address from where you accessing it to the cacti.conf file and restart the apache service..

      About logs timing, you need to check logs and cacti configuration files and specify time if there needed…

      • C says:

        Thanks for the reply, I am able to access the interface through localhost/cacti. I’ve tried using both allow from all and allow from the specific ip address, both will still not allow me to access through another computer. I’ve even tried turning the firewall off for testing.

        My graphs are also still getting NaN instead of actual values.

  7. George says:

    Hi, sorry for my bad english.

    Just want to ask how can i deal with this error

    [root@cacti ~]# mysqladmin -u root password cacti
    mysqladmin: connect to server at ‘localhost’ failed
    error: ‘Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)’
    Check that mysqld is running and that the socket: ‘/var/lib/mysql/mysql.sock’ exists!
    [root@cacti ~]# mysqldadmin -u root password cacti
    bash: mysqldadmin: command not found

    I’m just newbie in linux platform and I saw your website tutorial very useful. Hope you anyone can help me with this one.

    Thanks in advance.

    • Ravi Saive says:

      The error indicates that your mysqld service is not yet strated, you need to start or restart it using below command.

      # service mysqld start
      # service mysqld restart

      After restarting, run the following command to connect to mysql shell.

      # mysqladmin -u root password cacti
  8. katal2hod says:

    Hi, just want to ask if you know how to solve “Valiadation Error” whenever I tried to add device to a tree graph.

    Thanks! :)

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Join Over 62000+ Linux Users
  1. 47558
  2. 2150
  3. 11343

Enter your email to get latest Linux Howto's