Cacti Pi – How to Install Cacti on Raspberry Pi


UPDATE: I am revisiting this article as it is a few years old now. Currently working through updated steps on Ubuntu 16.04LTS.

Hint, you will need php5.6, not php7.0, as it seems Cacti is broken on php7.0


How to install Cacti on Raspberry Pi running Raspbian Wheezy

apt-get update
apt-get install apache2
apt-get install php5
apt-get install mysql-client mysql-serverย 

*you will be prompted to set a password for the mysql root user. take note of this as you will need it later!*

apt-get install php5-mysql php5-snmp rrdtool snmp snmpd

Run the following command to confirm required php modules are present:

php -m

mysql (For configuration, see note below)
SNMP (For configuration, see note below)
LDAP (Required only when using LDAP authentication)
GD (Required only for some Plugins)

Edit php.ini to point to extension directory found in:

cd /usr/lib/php5/

The name of the extension directory which will likely be a number/date ie 20090626 or 20100525+lfs depending on your distro. My Raspberry Pi had the following:

vi /etc/php5/apache2/php.ini

extension_dir = /usr/lib/php5/20100525+lfs/

Edit Apache2.conf to point to php.conf:

vi /etc/apache2/apache2.conf

Include conf.d/*.conf

Create php.conf:

cd /etc/apache2/conf.d/

vi php.conf

Paste this in the file:

# PHP is an HTML-embedded scripting language which attempts to make
# it easy for developers to write dynamically generated webpages.
LoadModule php5_module modules/
# Cause the PHP interpreter to handle files with a .php extension.
AddHandler php5-script .php
AddType text/html .php
# Add index.php to the list of files that will be served as
# directory indexes.
DirectoryIndex index.php

Download Cacti:

cd /var/www/


Untar Cacti:

tar xzvf cacti-0.8.8a.tar.gz

Rename the directory for uniformity:

mv cacti-0.8.8a cacti

Drop into the Cacti directory:

cd cacti

Create the MySQL database:

shell> mysqladmin --user=root -p create cacti

Import the default cacti database:

shell> mysql --user=root -p cacti < cacti.sql

Create a MySQL username and password for Cacti.

shell> mysql --user=root -p mysql
mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cacti';
mysql> flush privileges;

Edit include/config.php and specify the database type, name, host, user and password for your Cacti configuration.

vi include/config.php

$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";

Set the appropriate permissions on cacti’s directories for graph/log generation. You should execute these commands from inside cacti’s directory to change the permissions.

shell> chown -R www-data rra/ log/

Add a line to your crontab file:

vi /etc/crontab

*/5 * * * * www-data php /var/www/cacti/poller.php > /dev/null 2>&1

Restart apache and mysql:

service apache2 restart

service mysql restart

Point your web browser to:


Use ifconfig if you are unsure of your Raspberry Pi’s IP address

Log in the with a username/password of admin. You will be required to change this password immediately. Make sure all of the path variables show found on the following screen.

At this point you should have an operational install up and running with the default localhost being monitored for basic system info. In order to gather more info including processor and interface traffic edit the following:

cd /etc/snmp

cp snmpd.conf snmpd.conf_orig

vi snmpd.conf

Uncomment and edit the following:

#rocommunity secret


rocommunity cacti

Then restart snmpd

service snmpd restart

You can now edit the host within cacti under console > device to allow for the use of snmp and add the snmp processor and interface data queries.

After allowing Cacti to complete a few polls you should have some thing like this:



These instructions are specific to Raspberry Pi’s latest distro, however should work for any Linux distro with some slight variables here and there.

UPDATE : If after install you find that your graphs and/or Cacti’s log ( console > System Utilities > View Cacti Log File ) is not in your local timezone see my article on Correcting Cacti Timezone

Leave a comment below if you have any questions of run into any trouble.

101 thoughts on “Cacti Pi – How to Install Cacti on Raspberry Pi”

  1. Just want to say thanks for this AMAZING guide!
    Worked 100% and was quite easy to follow.
    Seems like you HAVE to update the php.ini with your timezone for the graphs to work.
    Here is a link to the supported timezones that you can maybe add :
    Looking forward to more posts!

  2. Thanks for your comment GammaRSA! Glad the guide helped!

    In my experience in over 10 Cacti installs on Ubuntu, Debian and OSX, I have only had to update the php.ini files manually with a local timezone once. (see my post on Correcting Cact Timezone)

    I will definitely add the php supported timezones to that post as I also used it to correct that issue I saw where my cacti log and graphs were in UTC rather than EDT causing me to assume it wasn’t graphing. (due to me not looking far enough ahead to see the graphs on the Cacti ‘Graphs’ tab. Needed to change the graph filter preset to applicable UTC time.)

    Let me know what you utilize Cacti to monitor and how you’ve liked it this far!

    1. Love cacti so far!

      Mostly use it to monitor my few systems at home(Desktop PC, Server, Media center, other PI) but the main goal was for monitoring a private wireless network/hobby of mine that uses Mikrotik routers.

      Pi is running fine with about 10 devices with a average load of about 5-10%. But the thing that I am now concerned about is read/write on the SD card… I know the more devices I add the greater the I/O is going to be on the SD card since it writes quite a huge amount to log, so now I was wondering, did you add a Flashdisk or external storage for log files to reduce the load on the SD card or do you just leave it to write on the default path on the card? Since SD cards only have a limited read/write before they fail.

  3. Thanks for the userful post!
    I ordered a Raspi with the purpose of replacing my old Slug as home network monitor, and cacti is something I was thinking to install.

    Could you please explain a bit your hardware configuration?
    Are you storing all data onto the SD card or do you have an additional USB stick or perhaps an HDD for that?

    1. Hey bitwelder,

      Posted a reply complete with current graphs over at

      To answer your question, I am storing all data to the /root partition on a 16GB SD card. I don’t forsee storage being an issue if running only Cacti as unless you are monitoring a large amount of devices and data points you should be fine as it’s very efficient. That being said I’ll likely look into adding a 500GB hard drive in the future.

      I highly recomment Cacti as it will provide you with endless ability to monitor, troubleshoot and report on you network and it’s elements. I will be posting on how to install plugins and reporting tools as well to enhance Cacti’s abilities so stay tuned and let me know if I can assist with your install!

  4. greeting
    I followed your tutorial and installed Cacti but in my experience these two error log and I appear blank charts

    08/31/2012 08:50:12 AM – CMDPHP: Poller[0] Host[1] DS[8] WARNING: Result from SNMP not valid. Partial Result: U

    08/31/2012 08:50:12 AM – CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:’′, and OID:’.′

    1. Hey gexe!
      Thanks for checking out the tutorial!

      Can you please click the data source DS[8] link found under System Utilities > Cacti Log File and advise what you are trying to graph.

      A handy tip for troubleshooting SNMP errors or blank graphs is to manually walk the OID to see what the system returns.

      For example I walked this OID and hereโ€™s what I get on my Pi:

      pi@raspberrypi ~ $ snmpwalk -v2c -c c4ct1 .
      SNMPv2-SMI::enterprises. = No Such Object available on this agent at this OID

      It appears this OID does not exist and would explain why you get a timeout.

      Out of curiosity I tried walking this OID against my Cisco Router:

      pi@raspberrypi ~ $ snmpwalk -v2c -c c4ct1 .
      SNMPv2-SMI::enterprises. = INTEGER: 1

      Looks like I found your culprit. Can you confirm whether you have attempted to Graph Cisco CPU template?

      Let me know.



  5. I solved the above problems removing CPU chart manually added. Now show me errors in my log but displays blank charts.

    1. gexe,

      Please go to /var/www/cacti and run ls -lh and make sure www-data:www-data is the owner of the /rra and /log directories.

      if not complete
      chown -R www-data:www-data rra/ log/

    1. Sounds good,

      I’m just driving into work…I’ll shoot you an email and we can do a teamviewer session.

      Talk to you shortly.


    2. Hi, Was was the resolution with this one, I think I have the same problem and have checked all steps but cannot find the cause.


      (great tutorial though)

      1. hey, thanks for checking the tutorial out.

        His issue was related to Cacti’s timezone. be sure to follow the Correcting Cacti Timezone post as you may be actually graphing , just not where you are looking.

        let me know if you require more assistance.

        1. I’ll check that now, although device shows status as ‘unknown’ although it gathers name, model, location etc in the SNMP details.

          rra directory is empty but the permissions/owner are set correctly.

          Will just confirm timezone though.


        2. I’ve set my timezone now in both php.ini and rebooted but images
          still do not load and RRA directory is empty.

          Device shows status as ‘unknown’ although it gathers name, model, location etc in the SNMP details.

          rra directory is empty but the permissions/owner are set correctly.


          1. If the RRA directory is empty it sounds like the poller is not running. Is /etc/crontab updated correctly? Check System Utilities > View Cacti Log, any errors?

            What graphs are you making?(Traffic, etc)

            What selection do you currently have under ‘downed device detection’? (ie SNMP uptime, Ping etc)

            Please also ensure your SNMP.conf file has been updated correctly and snmpd has been restarted. (sudo service snmpd restart)

            Let me know if you still have issues.

  6. drwxr-xr-x 2 www-data www-data 4.0K Apr 4 04:49 log

    drwxr-xr-x 2 www-data www-data 4.0K Aug 31 09:30 rra

  7. Is there a reason you got cacti from the site, rather than just doing an apt-get install cacti?

    When I run apt-cache search cacti, I see both Cacti and the Cacti Spine are available.

    I’m a complete newbie to LAMP in general, so this tutorial looks very helpful.

    1. Hi Geoff,

      Apt-Get would work fine, however I wanted to be sure I was getting 0.8.8a and I wanted to control where Cacti and its elements were installed.

  8. I get a HTTP Error 500 (Internal Server Error) when trying to navigate to cacti for the first time. I made a test php page in the cacti dir and that works fine. I’m a bit of a linux noob and cant figure it out! Any ideas?


  9. Since my last post I’ve installed from a fresh raspian image and it worked fine…. Must of played with somthing on the previos Pi ๐Ÿ™

  10. Thanks for the info – great to use and very helpful. I’m up and running on my pi. A couple of suggestions: 1. for the cron job, I directed the output to a logile in the same dir as the cacti log, very helpful to work out why rrd stopped working when I changed the timezone!! Also, 2. do you need to do “apt-get upgrade” after the update in the beginning for the changes to be applied?

  11. followed the tutorial, not one error until i attempt to go to http://myserverip/cacti

    Nothing, server error, page not found. I read through the tutorial again,,,the apache server is working as I get the default “its working” page when I got to the http://myserverip

    What have I missed? Seems like apache is loading files from the www root, and not from the cacti directory inside of www

    thank you


      1. same problem, I got

        -rw-r–r– 1 pi users 5.9K Apr 23 2012 about.php
        -rw-r–r– 1 pi users 5.3K Apr 23 2012 auth_changepassword.php
        -rw-r–r– 1 pi users 14K Apr 23 2012 auth_login.php
        -rw-r–r– 1 pi users 175K Apr 23 2012 cacti.sql
        -rw-r–r– 1 pi users 22K Apr 23 2012 cdef.php
        drwxr-xr-x 2 pi users 4.0K Apr 23 2012 cli
        -rw-r–r– 1 pi users 26K Apr 23 2012 cmd.php
        -rw-r–r– 1 pi users 6.9K Apr 23 2012 color.php
        -rw-r–r– 1 pi users 25K Apr 23 2012 data_input.php
        -rw-r–r– 1 pi users 35K Apr 23 2012 data_queries.php
        -rw-r–r– 1 pi users 59K Apr 23 2012 data_sources.php
        -rw-r–r– 1 pi users 33K Apr 23 2012 data_templates.php
        drwxr-xr-x 5 pi users 4.0K Apr 23 2012 docs
        -rw-r–r– 1 pi users 6.0K Apr 23 2012 gprint_presets.php
        -rw-r–r– 1 pi users 3.6K Apr 23 2012 graph_image.php
        -rw-r–r– 1 pi users 14K Apr 23 2012 graph.php
        -rw-r–r– 1 pi users 9.0K Apr 23 2012 graph_settings.php
        -rw-r–r– 1 pi users 18K Apr 23 2012 graphs_items.php
        -rw-r–r– 1 pi users 40K Apr 23 2012 graphs_new.php
        -rw-r–r– 1 pi users 60K Apr 23 2012 graphs.php
        -rw-r–r– 1 pi users 9.8K Apr 23 2012 graph_templates_inputs.php
        -rw-r–r– 1 pi users 19K Apr 23 2012 graph_templates_items.php
        -rw-r–r– 1 pi users 27K Apr 23 2012 graph_templates.php
        -rw-r–r– 1 pi users 40K Apr 23 2012 graph_view.php
        -rw-r–r– 1 pi users 5.9K Apr 23 2012 graph_xport.php
        -rw-r–r– 1 pi users 59K Apr 23 2012 host.php
        -rw-r–r– 1 pi users 20K Apr 23 2012 host_templates.php
        drwxr-xr-x 2 pi users 4.0K Apr 4 2012 images
        drwxr-xr-x 4 pi users 4.0K Apr 23 2012 include
        -rw-r–r– 1 pi users 2.3K Apr 23 2012 index.php
        drwxr-xr-x 2 pi users 4.0K Apr 23 2012 install
        drwxr-xr-x 3 pi users 4.0K Apr 23 2012 lib
        -rw-r–r– 1 pi users 15K Apr 4 2012 LICENSE
        drwxr-xr-x 2 www-data users 4.0K Apr 4 2012 log
        -rw-r–r– 1 pi users 2.8K Apr 23 2012 logout.php
        -rw-r–r– 1 root root 0 Apr 26 17:45 mysqladmin
        drwxr-xr-x 2 pi users 4.0K Apr 23 2012 plugins
        -rw-r–r– 1 pi users 27K Apr 23 2012 plugins.php
        -rw-r–r– 1 pi users 4.3K Apr 23 2012 poller_commands.php
        -rw-r–r– 1 pi users 2.2K Apr 23 2012 poller_export.php
        -rw-r–r– 1 pi users 18K Apr 23 2012 poller.php
        -rw-r–r– 1 pi users 48 Apr 4 2012 README
        drwxr-xr-x 5 pi users 4.0K Apr 4 2012 resource
        drwxr-xr-x 2 www-data users 4.0K Apr 4 2012 rra
        -rw-r–r– 1 pi users 7.3K Apr 23 2012 rra.php
        drwxr-xr-x 2 pi users 4.0K Apr 23 2012 scripts
        -rw-r–r– 1 pi users 11K Apr 23 2012 script_server.php
        -rw-r–r– 1 pi users 353 Apr 4 2012
        -rw-r–r– 1 pi users 5.7K Apr 23 2012 settings.php
        -rw-r–r– 1 pi users 6.2K Apr 23 2012 templates_export.php
        -rw-r–r– 1 pi users 5.7K Apr 23 2012 templates_import.php
        -rw-r–r– 1 pi users 20K Apr 23 2012 tree.php
        -rw-r–r– 1 pi users 44K Apr 23 2012 user_admin.php
        -rw-r–r– 1 pi users 65K Apr 23 2012 utilities.php

  12. Not sure if I am missing something here but I cannot even install apache! Get loads of unresolved dependencies from apt ๐Ÿ™

  13. Hey Kevin, the difference was subtle at first, but interesting question, you can see in the tutorial vi at 24:35ish I have you “normal” one displaying while viewing on mac osx in firefox after completing this install.

    what browser are you using to view? what version of cacti are you running? 0.8.8a??

  14. Hi there and thanks so much,

    I found when i did this install i had to remove the php.conf you created in your turorial before cacti would function without errors. It seems that php5 was already set to load. Overall great tuturial but i think me updating my packages probably caused the apache2 and mysql configuration to change a bit.

    1. Hey Rob,

      Sorry for the very late reply, what errors did you see as a result of php.conf?

  15. Great tutorial
    I got it all working except for the SNMP. When I do netstat it issnt in the list. What could be the problem and how do I fix it?
    I’m new to linux but like it so far.


    1. Hey dekemp,

      Sorry for the late reply. Gotta make sure the snmp daemon is running. What does ‘sudo service snmpd status’ say?

      Also make sure you have made the necessary configs to /etc/snmp/snmpd.conf

  16. Great tutorial, Thanks! I am completely new to linux and cacti. I successfully installed cacti and can open myserver/cacti. However, when I set ‘device to allow for the use of snmp and add the snmp processor and interface data queries’ their status did not update (still 0 items, 0 rows). Hence no graphs are shown.
    Also, I noticed that sometimes it says host is down. Please help!

    1. Sorry for the late reply…

      Sounds like you are getting no reply from the device you are trying to poll.

      Try snmpwalk from the pi cli:

      snmpwalk -v2c -c [community string] [hostname] [oid]

      Let me know if your still struggling

  17. Dear n00badmin,

    I like that tutorial, It is really help full. I am new to linux and cacti. However cacti worked only first time I logged in and change my pasword. I written password down. After restarting my raspberry I cannot get through log in web page. I get an error “Invalid User Name/Password Please Retype”. I am struggling to log in.
    Do you have any idea? Thank you in advance.

    1. sorry for input above. I read the cacti manual and I found this topic under FAQ. I used suggested commands to reset admin password:
      shell> mysql -u root -p cacti
      mysql> update user_auth set password=md5(โ€™adminโ€™) where username=โ€™adminโ€™;
      and it WORKS!

  18. Nice tutorial!
    BTW: Raspberry always use to struggle with a high CPU utilization while executing RRDtool. You can reduce that by using Boost.
    But be aware of a bug within the latest version: File permissions will be set incorrectly for the cached graphs.

    Keep up the good work!
    -browniebraun (cacti developer)

    1. Great Tip! I haven’t tested the limits of the pi with tonnes of devices or data sources but I’m sure boost will come in handy eventually!

  19. Thanks heaps for the tutorial – easy to follow and 100% accurate. Now I just need to figure out the best way to add my Synology NAS’s SNMP OIDs to cacti…

    Thanks again and keep up the good work!

  20. This tutorial was great and spot on.

    Once I’ve configured IpV6 on the Pi will the section you detailed in which you erased the IpV6 info work for me?

    Thank you for the tutorial.

  21. This line didn’t work correctly for me:
    apt-get install php5-mysql php5-snmp rrdtool snmp snmpd
    Had to do each one at a time:
    apt-get install php5-mysql
    apt-get install php5-snmp
    apt-get install rrdtool
    apt-get install snmp
    apt-get install snmpd

    Hope this helps someone ๐Ÿ™‚

    1. hmmmm were you root or did you use sudo? Are you sure there were no typos? Should have worked if typed correctly…

  22. HI, thanks for this great guide.
    I do it step by step and it works. Hope raspberry pi is powerfull enought to stay available long time.

  23. Hi,
    this guide worked fine for me right until just after the http://localhost/cacti part. It leads me through the first time setup just fine. After that, when prompted UN/PW (used admin/admin) it drops me back to localhost instead of something like localhost/cacti and displays only “It works! This is the default web page for this server…”
    Do you have any idea where to look? I’m quite a noob on linux, that’s why I’m here ๐Ÿ˜‰

    1. Nevermind, didn’t uncomment the line “extension_dir = /usr/lib/php5/20100525+lfs/” ๐Ÿ™
      But now, onwards to the next Problem: when I enter admin/admin it just reloads that exact same user login page.

  24. OK, part 3 incoming ๐Ÿ˜‰
    It just works if you don’t use netsurf on the Pi to configure it, but rather another PC… FINALLY!
    Thanks for the great Tutorial, really helps so much!

  25. Thanks for a great tutorial. It cuts the cost of monitoring a SOHO network by a factor of ten.

  26. Hi, after getting it to work on my pc and pi I have a slightly off topic question I hope someone here can answer.
    I’m having some trouble getting snmp to work on my router. Is it possible that it doesn’t have snmp and if it hasn’t can I get snmp on there? Or might there be a work around for cacti?
    My router is a WD mynet N750.
    Thanks in advance

    1. Hey Maurits,

      It is entirely possible the router does not support SNMP. Check the Support docs for the router to see if SNMP is supported.

  27. Similar to Piface’s issue above, I’m getting nothing on the web browser step. Connecting to the ip address (without /cacti) I get the Apache “It works!” message, so that part works, but just get a blank window when I add /cacti. No login prompt or anything.
    Also, the cpu usage meter in the bottom right of the screen is 90%, and understably in this situation, everything else is sluggish now.

    Thanks in advance for any assistance.

  28. Hi there!

    Thanks for the great tutorial. It helped me install cacti on a Raspberry Pi about a year ago and I’m monitoring the Pi with itself successfully ever since. However, now I want to use the Cacti on this Pi to monitor a second Pi. What are the minimum components that need to be installed from the presented sequence onto the second Pi (which is only being monitored by the first Pi, which runs Cacti)? So far I tried to install and configure only snmp and snmpd on the second Pi. I can add it as a host to the Cacti running on the first Pi, but it’s unable to run bash scripts as data input methods on it. Also, I can’t get info like memory usage from it. Basically I can’t get anything from it. My goal is to be able to obtain data in two ways from this second Pi: from some bashs scripts and standard SNMP-obtainable info like CPU usage, memory usage, etc. What else do I need to install/configure on this second Pi, except snmp and snmpd?


    1. I managed to get the SNMP-based graphs up and running. I’m only having trouble getting data for those which are based on data input methods which run bash scripts. On the first Pi, which is monitoring itself, this works because I specify the script paths relative to the Cacti path, like this: /scripts/ For the second Pi, on which Cacti is not installed, I tried specifying the script paths with absolute paths, like this: /soft/scripts/ Unfortunately it does not seem to work. If you know why, please let me know.
      Tank you!

      1. I wonder if this can have anything to do with the permissions of the scripts that I’m trying to run. I’ve set the permissions to 775, but it does not help. When Cacti tries to run a bash script on another Linux machine, what user does it use?

        1. Hey Andras,

          What you are trying is definitely doable.

          Is your script successfully retrieving the data you are after from the other pi when you run it manually?

          What I would suggest for best performance is that you run your bash script locally on the second pi, then scp the results to a file back on the pi running cacti.

          This will allow you to set up data input method that is a script that simply opens the file and presents the results to cacti….

          Otherwise you need to make sure that your shell script when called can reach the other pi, login, run the command…blah blah blah…which does work but can be prone to issues.

          Let me know how its going.

          1. Awesome!

            Yeah we run scripts against remote boxes via ssh at my day job. I have to say though, running the script locally on the remote box then having the remote box cronjob send the results to the main cacti box has been more reliable. Keep that in mind if you see some breaks in your graphs..

            Great work! Thanks for the updates!!

  29. Hi, what is the “correct” way to uninstall cacti and all associated packages? I don’t need it any more.

    1. Hey Patrick,

      Depends on how you installed it….if I assume you used apt-get…then you can try apt-get purge

  30. Hi,
    I’m looking at getting a pi soon and have it running cacti, the main need for it would be to monitor my Linkstation NAS (4x3TB HDD, CPU load/temp etc) and maybe network traffic from my router.
    I’ve got SSH access to the NAS itself, I’m not quite sure if there would be anything I would need to do on the NAS for cacti to poll it

    1. Hey Adam,

      You would need to check whether the NAS supports SNMP. If it does the vendor may have a MIB which outlines what stats you can get from the NAS.

      If SNMP is not supported you could monitor it via scripts. ie run a script on the NAS that checks any info available then sends it to cacti. (more advanced as you need to know some scripting and how to input scripts to cacti…but not impossible)

  31. I dont see any graphs, datas are pulled and when going to graph managment and turning on graph debug it shows this:

    RRDTool Command:
    /usr/bin/rrdtool graph – \
    –imgformat=PNG \
    –start=-86400 \
    –end=-300 \
    –title=’localhost – Traffic – eth0′ \
    –rigid \
    –base=1000 \
    –height=120 \
    –width=500 \
    –alt-autoscale-max \
    –lower-limit=’0′ \
    –vertical-label=’bits per second’ \
    –slope-mode \
    –font TITLE:10: \
    –font AXIS:7: \
    –font LEGEND:8: \
    –font UNIT:7: \
    DEF:a=”/var/www/cacti/rra/3/29.rrd”:’traffic_in’:AVERAGE \
    DEF:b=”/var/www/cacti/rra/3/29.rrd”:’traffic_out’:AVERAGE \
    CDEF:cdefa=’a,8,*’ \
    CDEF:cdefe=’b,8,*’ \
    AREA:cdefa#00CF00FF:”Inbound” \
    GPRINT:cdefa:LAST:” Current\:%8.2lf %s” \
    GPRINT:cdefa:AVERAGE:”Average\:%8.2lf %s” \
    GPRINT:cdefa:MAX:”Maximum\:%8.2lf %s\n” \
    LINE1:cdefe#002A97FF:”Outbound” \
    GPRINT:cdefe:LAST:”Current\:%8.2lf %s” \
    GPRINT:cdefe:AVERAGE:”Average\:%8.2lf %s” \
    GPRINT:cdefe:MAX:”Maximum\:%8.2lf %s\n”
    RRDTool Says:
    ERROR: opening ‘/var/www/cacti/rra/3/29.rrd’: No such file or directory

    rra directory is empty
    how to fix that?

  32. Got Cacti up and running. But not seeing any graphs.
    Seeing this in the logs.
    CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:’2006′, SQL:”REPLACE INTO settings (name,value) VALUES (‘stats_recache’,’RecacheTime:0.0 HostsRecached:0′)’

    CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:’2006′, SQL:”SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>’0000-00-00 00:00:00′”

    1. hmmm definite SQL errors. I would google the error and see if someone on has reported/fixed it…

  33. I am not getting any graphs. I made the changes to the php.ini file and still no graphs. Do I need to do anything after editing the php.ini files ?

    Thanks for such a great guide !

  34. Great tutorial. I have installed Cacti successfully but I have two problem.
    1. I can’t see any data in flow view in Url.
    2. Lost capture file under /var/netflow/flow/completed.

    I can see the capture file in command line.

  35. Log:

    7/01/2014 04:30:04 PM – SYSTEM STATS: Time:2.3106 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0

  36. Hi, Can you share how to install and configure cacti plugin called flowview. I would like to monitor the Cisco device using netflow.
    I can’t try it. Whenever I try it, I can’t see any data in flow view.

    Thanks in advance for your help.

    1. Topicars,

      My apologies for the extremely delayed response.

      Do you still require assistance with this?

  37. Hi,

    I Just wanted to say thank you.
    I really enjoyed the process & gained invaluable knowledge.
    Maximum respect!

    : )

  38. Hi,

    Thanks for the tutorial, had some issues with memory available when installing MySQL but seem to have got around those, now I get

    -bash: shell: command not found

    When trying to enter the

    shell> mysqladmin –user=root -p create cacti

    Any ideas?

    Kind regards,


      1. actually..first off are you root?

        if so what happens if you just type the command ‘mysqladmin’

        1. Hi, i got this same problem, when running
          shell> mysqladmin โ€“user=root -p create cacti
          i got this message
          -bash: shell: command not found

          Its not path issue, i can run mysqladmin from everywhere.
          btw im runing raspbian on pi2 using root.

  39. Thanks for taking the time and effort to write an excellent “How to” for the Cacti install. I followed your bouncing ball and succeeded in getting Cacti running. I, as a total novice, stumbled during my “cut and paste” when I included the Shell> part of the command, but soon figured it out.

    1. Oh hhahahahhah!

      hmmm. perhaps I should remove that to save others the possible stumble.

  40. Hi Just encountered the issue where the poller does not retrieve any new data, there error in the cacti log is : POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!

    This is a know issue with the 0.8.8.a version

    The fix is to rebuild the poller cache and once the rebuild is complete the poller works normally

  41. Hi many thanks for the tutorial.
    I had a lot of trouble to install it as my English is not so goed.
    And somethinks where different than you described.
    et the php modules didn’t came automatic with the installation.
    But at the end I was possible to monitor my Wago controler (PLC)
    You make my day ๐Ÿ™‚

    ps, monitor the rpi don’t work yet ๐Ÿ™‚

  42. Hi,

    I have followed this tutorial to the letter. Hi have everything installed but I’m not able to login in the CACTI web page.

    I’m able to login with the user cactiuser in the database and query on the cacti tables.

    When I enter for the first time it ask if it is a new installation, I sed yes, next, next, and as soon as asked for the password wasnt able to login

    Many thanks in advance for your help


    1. now i got cacti working, but it seem the crontab is not polling anything..
      */5 * * * * www-data php /var/www/html/cacti/poller.php > /dev/null 2>&1

      it seems new pi cant run that 5 min routines..

Leave a Reply

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