* docs: [1.2.x] refresh the manual front page The front page opened with version notes before saying what Cacti is, used headings as sentences in the credits, and its table of contents listed seven sections while the page has ten. Open with a short description and a getting-started sequence, link the website and forums, give the credits real headings, and list every section in the table of contents in page order. Record Jeff Pasnak under In Memoriam with a link to the 1.2.31 release announcement. Correct label typos and wrap long entries with reference links. Existing section anchors are unchanged, and every page is still linked. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * docs: [1.2.x] fix typos, unrendered headings and forum links A check of every page linked from the front page found misspellings in eleven pages, three Mactrack headings written without a space after the hashes, which render as plain text, and two forum links still using http. Correct the spellings, add the missing space so the headings render, and point the forum links at https, where they already redirect. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * docs: [1.2.x] align the plugin pages with the plugin READMEs The supported plugins list and the Syslog and Mactrack pages had drifted from the README and INFO files in the plugin repositories. Update the descriptions that the READMEs contradict: Monitor's Thold requirement, the Router Configs transfer methods, the ReportIt release and Cacti versions, the WMI collection methods and its development status, and NUT support in Apcupsd. Add the Syslog requirements, the upgrade procedure, the dedicated database settings and the remote collector settings, and correct the database grant and a misplaced code fence. Add the Mactrack requirements and a short section on history partitioning and ignored ports that links to the README. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * docs: [1.2.x] correct grammar, spelling and broken Markdown A read of every page linked from the front page found grammar and spelling errors throughout, and Markdown that does not render as intended. Correct grammar, spelling, punctuation and product-name capitalization in 95 pages without changing headings, code blocks, link targets or the meaning of the text. Repair the Markdown defects: a code fence in the SSH tunnel how-to that never closed, malformed bold markers in the user management and device defaults pages, a release notes table with no blank line before it, split rows in the tree sorting table, and LDAP list items missing their markers. Correct three interface labels quoted with typos. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * docs: [1.2.x] correct statements that differ from the 1.2.x source Reviewers of the linked pages flagged statements that looked wrong. Each was compared with the Cacti 1.2.x source at 1523aa04b, and only those the source or the page itself settles are changed. Correct interface labels and option names (Index Count Changed, Permissive, Not Selected, Utilities, the BCC description, the gear icon for plugin install), the default Maximum Value of U for a new data source item, the sysDescr object name, the PHP floor wording in the requirements table, the Mactrack wildcard character and the snmptrapd -On option. Repair cross-references, example values that disagree with their commands, two table captions, a split list and several sentences with missing words. Statements the source does not settle are left as written. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
15 KiB
Frequently Asked Questions
Using Cacti
Q: How do I create traffic graphs?
A: Before you can create traffic graphs, Cacti must have working SNMP support. One way to do this is to compile PHP with SNMP support built in; many times you can install the 'php-snmp' package to do this. The second option is to have Cacti call the snmpget and snmpwalk binaries from your ucd-snmp or net-snmp installation. You can use the about page to determine whether you are using "built-in" or "external" SNMP support.
Now that you have working SNMP support, follow these steps.
-
Click Devices on Cacti's menu.
-
Click Add to add a new device.
-
Type a description, hostname, management IP, and SNMP community. Make sure to select "Generic SNMP Device" under Device Template and click Create.
-
Click Create Graphs for this Device at the top of the page.
-
You should see one or more interfaces listed under the Data Query [Get SNMP Interfaces] box. Place a check next to each interface that you want to graph. Below the box, select the type of graph that you want to create (bits, bytes, summation, etc).
-
Click Create, and Create again on the following screen to create your graphs.
General
Q: When I visit the Cacti Monitoring Website, I see garbage instead of a login prompt.
A: Starting with Cacti 1.2.x, the first thing you should always see is a login prompt asking for your admin credentials before the installation wizard will be displayed. However, if you fail to see the login prompt, you may be presented with text that looks like:
<?php
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
| as published by the Free Software Foundation; either version 2 |
| of the License, or (at your option) any later version. |
If this happens, it usually means that you have not enabled the PHP module to
work with your web server software. This can be as simple as running a2enmod
on Ubuntu, or having to manually create a configuration for nginx under another
flavor of Linux. For specific help on enabling PHP, search the internet using
your favorite search engine with keywords such as:
How do I enable PHP under ...
Replacing the three dots with your operating system and web server software should reveal many results on how to do this. The specific steps are outside of the scope of Cacti's FAQ documentation, though there are several How To installation documents included that may also help.
Q: I have forgotten my 'admin' password to Cacti; how do I reset it?
A: To reset the admin account password back to the default of 'admin', connect to your Cacti database at the command line.
shell> mysql -u root -p cacti
Now execute the following SQL:
MySQL> update user_auth set password=md5('admin') where username='admin';
Monitoring
Q: I am polling thousands of items and poller.php takes more than 5 minutes to run.
A: Give Spine, the fast replacement for poller.php, a try. Unlike poller.php, Spine is written in C and makes use of threads. On a typical installation, it is not uncommon for Spine to poll about 50000 items in less than 10 seconds. Spine supports up to several threads per poller process and can also poll a single host with more than a single thread.
If using Spine alone does not help, look to both the amount of memory and CPU threads available on your Cacti server. You should generally not use more than 2 times the number of CPU threads as you have Spine threads. Remember, every Spine thread has to also talk to the database, so having more CPU threads on your Cacti server has a direct impact on performance. If you make the thread setting too high, it will actually decrease performance. So, be careful.
Q: I changed x, and now some of my graphs are not updating.
A: First, check your Poller Cache to see if the poller entries for the Data
Sources in question are still found there. Then, if you find that they are
missing, you can either resave the Device in question, if it's a single device,
or Repopulate the Poller cache if it impacts multiple Devices. If you have a
large installation with thousands or tens of thousands of devices you should use
the CLI script rebuild_poller_cache.php to perform this action.
Often times, if you have changed a Template, bad things can happen. So, it's always advisable to have a backup of your Graph and Data Templates as well as any Script or XML files you used to create the Templates. Another good practice is to perform database backups daily just in case of either an unintended change, or a disaster.
Q: I am using Redhat 8.0 and SNMP is not working.
A: Redhat 8.0 comes with a broken php-snmp package. Updating your 'php-snmp' and 'net-snmp' packages to their latest versions should fix this problem.
Q: How do I configure net-snmp so it will work with Cacti?
A: Run snmpconf -g basic_setup and follow the prompts. Also check that the
file being used by snmpd is the correct config file. For Redhat Linux, snmpconf
creates the /etc/snmpd.conf, but snmpd uses /etc/snmpd/snmpd.conf.
If this doesn't work, a very simple config file is:
# contact
syslocation Something
syscontact "root@someone.com"
# auth
rocommunity public
# disk monitoring
disk /
# Don't monitor NFS
skipNFSInHostResources true
# Allow for real big disk volumes
realStorageUnits 0
After you have made the changes to the net-snmp configuration file, you should restart the service using the following command:
systemctl enable snmpd
systemctl restart snmpd
Though there are many more advanced settings available in net-snmp, it is generally recommended to keep a simpler configuration unless your information security policies require more stringent settings.
Q: I've installed Cacti, and scheduled a network discovery, but nothing is happening. Where should I go to see the issue?
A: You should click the Log tab at the top of the page. When you get to the Log tab, you should search for an entry "SYSTEM STATS:". If you do not find that entry, it means that your Cacti Data Collector, otherwise known as the Cacti Poller, is not running.
This can happen if you have neglected to create either a CRON entry for the
Cacti Poller, or register and start the cactid service available in the
latest Cacti. If you find that the CRON entry is there, you should look at your
system's CRON log for entries like permission denied. Sometimes the user
accounts you have selected to run the CRON are not permitted to do so. We
strongly recommend that you use the cactid service with Cacti 1.x though and
avoid CRON based Data Collection.
Graphs
Q: I just installed Cacti and all of my graphs appear as broken images.
A: For you to actually get graph images, poller.php must run at least once
so it can create .rrd files in Cacti's 'rra/' directory. Double check that you
configured your /etc/crontab file or the cactid service to execute
poller.php at the desired frequency, normally either every 1 or 5 minutes. Also
make sure that the user poller.php runs as has permission to create new files in
Cacti's 'rra/' directory. In the modern Cacti, both the Web Server account and
Cacti's Poller account must have write access.
If all of your settings appear correct, try running poller.php manually by cd'ing to Cacti's directory and typing:
shell> php poller.php
If you have files in your 'rra/' directory, but your graphs still appear as broken images, you should enable graph debug mode to see exactly why the graphs are not rendering. To do this, go into Cacti, select Graph Management from the menu, select any graph listed, and select Turn On Graph Debug Mode.
Q: My graphs render, but they do not contain any data.
A: More often than not, this problem's cause is permissions. For instance, if you run poller.php manually as root for testing, any .rrd files that it creates will be owned by root. Now when poller.php runs from cron, it will not be able to update these .rrd files because they are owned by root. You can double check the owner of your .rrd files by running the following command in your Cacti directory:
shell> ls -al rra/
If only some of your graphs are not updating correctly, double check the Maximum Value field for all data sources used by these graphs. If the value being fed to the .rrd file exceeds its Maximum Value, RRDtool will insert an Unknown and you will see no data on the graph.
Q: A lot of my graphs contain long ifAlias names, but they are being truncated to 15 characters.
A: Cacti does this by default to better control graph title formatting. You can change this limit by going to Cacti Settings on the Cacti menu, selecting the Visual tab, and changing the value for Data Source Field Length.
Q: One of my devices rebooted and now I have a huge spike on my graph!
A: This occurs because the reboot causes SNMP counters to reset, which can cause a rather large spike on the graph when RRDtool tries to determine the change between the new small counter value and the large previous value. One way to combat this issue is to specify realistic maximum values for your data sources. RRDtool will ignore any value that is larger than the maximum value.
If you already have a spike on one or more of your graphs, there is a really useful Perl script that will remove them for you.
Q: I have a remote poller that is timing out but SNMP timing to the devices is fine.
A: Check that the network connection between the Remote poller and Main poller is working OK. If the link has very high latency, this can cause the polling times to increase as the data being transferred from the remote poller will be slowed, causing the poll not to finish in time.
Q: RRDtool Says: ERROR: unknown option '--slope-mode' or RRDtool Says: ERROR: Garbage ':39:24 To 2005/10/22 16:39:24\c' after command: COMMENT:From 2005/10/21 16:39:24 To 2005/10/22 16:39:24\c
A: This occurs because the version of RRDtool that you are running does not match the RRDtool version Cacti is configured to use. Double check your Cacti Settings and make sure that the RRDtool version matches what version of RRDtool you are running.
Windows Related
Q: I get a "Fatal error: Cannot redeclare title_trim()" error message from Cacti.
A: Contrary to previous versions of Cacti, you must not put Cacti in your
PHP include path. Check your php.ini file to make sure there is not something
like include_path = C:/Apache2/htdocs/cacti.
Common Problems
I see "MySQL server has gone away" in cacti log and cacti does not work as expected
Check the following in MySQL/MariaDB
SHOW GLOBAL VARIABLES LIKE 'max_connections';
SHOW GLOBAL STATUS LIKE 'max_used_connections';
If they are close, increase the max_connections in the server.cnf (mysql.cnf, my.cnf) and restart MariaDB/MySQL.
Cron is out of sync with the Poller Interval
WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is
'15' seconds, with a maximum of a '60' second Cron, but 300.9 seconds have
passed since the last poll!
This warning message may be recorded in the Cacti logs if you have a mismatch between the cron file that runs the poller.php and the settings within Cacti itself. Browse to Console > Configuration > Settings > Poller (tab) and check that the Cron Interval is defined as either 1 minute or 5 minutes.
If the cron interval is 5 minutes, then the schedule within the cron configuration file (normally /etc/cron.d/cacti) should be set to:
*/5 * * * *
For 1 minute intervals, this should be:
* * * * *
Poller Runtime exceeded
POLLER: Poller[0] Maximum runtime of xxx seconds exceeded.
This error indicates that Cacti was unable to finish the polling cycle in time. This can be for a few reasons.
- You are using spine and have not entered the correct MySQL credentials in spine.conf
- You do not have an adequate process setting for cmd.php or thread/process count for spine
- Network related issue, either a network outage or a network slowdown
- System related trouble CPU/memory exhaustion
- Insufficient MySQL connections resulting in spine failing
RRDtool reports Unknown Error
Sometimes, RRDtool can be rather unhelpful and display the simple error within the graph image of "Unknown Error". When this occurs, the best course of action would be to grab the command that Cacti uses and see if any more information is given at the command line level.
To do this, edit a graph that has the issue, select Turn On Graph Debug and a new section should appear beneath the graph. This should show both the command and what output we received from the tool.
RRDtool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-60' \
--pango-markup \
--title='localhost - CPU Usage' \
--vertical-label='percent' \
--slope-mode \
--base=1000 \
--height=200 \
--width=700 \
--tabwidth '40' \
--rigid \
--alt-autoscale-max \
--lower-limit='0' \
COMMENT:"From 2019/10/19 12\:37\:00 To 2019/10/20 12\:36\:00\c" \
COMMENT:" \n" \
--color BACK#F3F3F3 \
--color CANVAS#FDFDFD \
--color SHADEA#CBCBCB \
--color SHADEB#999999 \
--color FONT#000000 \
--color AXIS#2C4D43 \
--color ARROW#2C4D43 \
--color FRAME#2C4D43 \
--border 1 --font TITLE:11:'Arial' \
--font AXIS:8:'Arial' \
--font LEGEND:8:'Courier' \
--font UNIT:8:'Arial' \
--font WATERMARK:6:'Arial' \
--slope-mode \
--watermark 'Generated by Cacti' \
DEF:a='/usr/share/cacti/site/rra/127_0_0_1_5min_cpu_40.rrd':'5min_cpu':MAX \
AREA:a#FF0000FF:'CPU Usage' \
GPRINT:a:LAST:'Current\:%8.0lf' \
GPRINT:a:AVERAGE:'Average\:%8.0lf' \
GPRINT:a:MAX:'Maximum\:%8.0lf\n'
RRDtool Says:
OK
If the output above isn't helpful, simply copy the command section and then run
it as the user which the website runs as. For Linux, you can do this by either
su - <user> and then running the command, or sudo -u <user> <command> to
stay as your current user but run the command as the website user.
For Windows, the following command will allow you to spawn a command prompt as the website user, from which you can then run the above command to see the output.
runas /user:<machine or domain>\<user> cmd.exe
The newly created command prompt should show the user name if you have entered the correct password.
Copyright (c) 2004-2026 The Cacti Group