notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine

Newsfeed changes

The news feed page[s] were not laid out well. Two pages, disjointed information, hard to figure out how to use the optional parameters...

Thankfully, someone told me.

The new page is ready for your review. Please compare these two:

You may also be interested in the Github issue.
Port details
cacti Web-driven graphing interface for RRDTool
1.2.30 net-mgmt on this many watch lists=31 search for ports that depend on this port An older version of this port was marked as vulnerable. Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.2.30Version of this port present on the latest quarterly branch.
Maintainer: rodrigo@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2007-06-18 11:14:07
Last Update: 2025-03-30 11:42:49
Commit Hash: ef4e36d
People watching this port, also watch:: net-snmp, libxml2, gettext, expat, gmake
Also Listed In: www
License: GPLv2+
WWW:
https://www.cacti.net/
Description:
Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering. There is also SNMP support for those used to creating traffic graphs with MRTG.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
Dependency lines:
  • cacti${PHP_PKGNAMESUFFIX}>0:net-mgmt/cacti
To install the port:
cd /usr/ports/net-mgmt/cacti/ && make install clean
To add the package, run one of these commands:
  • pkg install net-mgmt/cacti
  • pkg install cacti-php83
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: cacti-php83
Package flavors (<flavor>: <package>)
  • php83: cacti-php83
  • php81: cacti-php81
  • php82: cacti-php82
  • php84: cacti-php84
distinfo:
TIMESTAMP = 1743332042 SHA256 (cacti-1.2.30.tar.gz) = c24a121db3fcdd5c87cde3284ecc89c11e6a8f2042b0cd36f4a6e0d5fa402b83 SIZE (cacti-1.2.30.tar.gz) = 46853242

Packages (timestamps in pop-ups are UTC):
cacti
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--1.2.16-----
FreeBSD:13:quarterly1.2.291.2.29-1.2.291.2.29-1.2.23_11.2.23_1
FreeBSD:14:latest--1.2.23----1.2.23_1
FreeBSD:14:quarterly1.2.29--1.2.291.2.29-1.2.23_11.2.23_1
FreeBSD:15:latest--n/a-n/a-1.2.23_11.2.26
 
cacti-php81
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest1.2.291.2.29-1.2.291.2.30---
FreeBSD:13:quarterly--------
FreeBSD:14:latest1.2.291.2.29-1.2.291.2.30---
FreeBSD:14:quarterly-1.2.30------
FreeBSD:15:latest1.2.291.2.29n/a1.2.29n/a---
 
cacti-php82
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest1.2.291.2.29-1.2.291.2.30---
FreeBSD:13:quarterly--------
FreeBSD:14:latest1.2.291.2.29-1.2.291.2.30---
FreeBSD:14:quarterly-1.2.30------
FreeBSD:15:latest1.2.291.2.29n/a1.2.29n/a---
 
cacti-php83
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest1.2.291.2.29-1.2.291.2.30---
FreeBSD:13:quarterly--------
FreeBSD:14:latest1.2.291.2.29-1.2.291.2.30---
FreeBSD:14:quarterly-1.2.30------
FreeBSD:15:latest1.2.291.2.29n/a1.2.29n/a---
 
cacti-php84
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest1.2.291.2.29-1.2.291.2.30---
FreeBSD:13:quarterly--------
FreeBSD:14:latest1.2.291.2.29-1.2.291.2.30---
FreeBSD:14:quarterly-1.2.30------
FreeBSD:15:latest1.2.291.2.29n/a1.2.29n/a---
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Runtime dependencies:
  1. rrdtool : databases/rrdtool
  2. php.h : lang/php83
  3. ctype.so : textproc/php83-ctype
  4. filter.so : security/php83-filter
  5. gd.so : graphics/php83-gd
  6. gettext.so : devel/php83-gettext
  7. gmp.so : math/php83-gmp
  8. intl.so : devel/php83-intl
  9. ldap.so : net/php83-ldap
  10. mbstring.so : converters/php83-mbstring
  11. pcntl.so : devel/php83-pcntl
  12. pdo.so : databases/php83-pdo
  13. pdo_mysql.so : databases/php83-pdo_mysql
  14. posix.so : sysutils/php83-posix
  15. session.so : www/php83-session
  16. simplexml.so : textproc/php83-simplexml
  17. sockets.so : net/php83-sockets
  18. snmp.so : net-mgmt/php83-snmp
  19. xml.so : textproc/php83-xml
  20. zlib.so : archivers/php83-zlib
Library dependencies:
  1. libmysqlclient.so.21 : databases/mysql80-client
This port is required by:
for Run

Deleted ports which required this port:

Expand this list of 2 deleted ports
  1. net-mgmt/better-cacti-templates*
  2. net-mgmt/percona-monitoring-plugins*
  3. Collapse this list of deleted ports.
* - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...

Configuration Options:
No options to configure
Options name:
net-mgmt_cacti
USES:
cpe mysql php:flavors,web shebangfix
pkg-message:
For install:
Cacti is now installed. If you install it for the first time, you may have to follow this steps to make it work correctly: 1. Create the MySQL database, a cacti user, and initialize: a) CREATE DATABASE `cacti`; b) Create a mysql user/password for cacti: CREATE USER 'cacti'@'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; c) Add GRANTS: GRANT ALL ON `cacti`.* TO 'cacti'@'localhost'; GRANT SELECT ON `mysql`.`time_zone_name` TO 'cacti'@'localhost'; FLUSH PRIVILEGES; d) Import the default cacti database: mysql --database=cacti -ucacti -p < /usr/local/share/cacti/cacti.sql If you haven't already imported your MySQL timezone data, you need to do this: mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql NOTE: * Cacti does not LOCK TABLES. 2. Edit /usr/local/share/cacti/include/config.php from the template config.php.orig. PHP requires the time zone to be explicitly set rather that rely on the system time zone, otherwise poller complains. I added the following line to my config.php: date_default_timezone_set('America/Los_Angeles'); 3. Add the following line to cron for cacti: */5 * * * * /usr/local/bin/php /usr/local/share/cacti/poller.php > /dev/null 2>&1 4. Example Apache 2.4 configuration: (This assumes that you have installed a working PHP Apache install, e.g. with mod_php) <FilesMatch "\.php$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> DirectoryIndex index.php DocumentRoot "/usr/local/share/cacti" Alias /cacti "/usr/local/share/cacti/" Alias /Cacti "/usr/local/share/cacti/" <Directory "/usr/local/share/cacti"> Require all granted AllowOverride None Order Allow,deny Allow from all </Directory> 5. Open a Cacti login page in your web browser and follow the install instructions. If you update cacti, open a login page and an updating process will start automatically. NOTEs as of 10Aug2014: 1) Cacti now better supports hier(7) a) Cacti log files are now found under /var/log/cacti where you can manage them using newsyslog. b) Cacti RRD files are now found under /var/db/cacti/rra. If you have an existing Cacti installation these paths are also found in Cacti's SQL database and MUST be updated. These two SQL commands should do the trick: UPDATE settings SET value='/var/log/cacti/log' \ WHERE name='path_cactilog'; UPDATE poller_item SET rrd_path=\ REPLACE(rrd_path,'/usr/local/share/cacti/rra','/var/db/cacti/rra') \ WHERE rrd_path REGEXP '^/usr/local/share/cacti/rra'; 2) The PERL paths in the Cacti PERL scripts have been updated to /usr/local/bin. Other Erratas: 1) Mount linprocfs in /compat/linux/proc will allow most scripts to work. 2) This package does not install a MySQL server in case you wish to use an external MySQL server. Install a package such as mysql57-server if you require a local server.
If upgrading from < 1.2.4:
Starting with version 1.2.4 the option SNMPBIN is no longer required and has therefore been removed. Now you can enable PHP integrated support via the "$php_snmp_support" variable in config.php
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. ftp://ftpmirror.uk/freebsd-ports/cacti/
  2. http://www.cacti.net/downloads/
Collapse this list.

Number of commits found: 113 (showing only 13 on this page)

«  1 | 2 

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.8.7e3
03 Nov 2009 14:32:01
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Forced commit to describe patches from developers I've added:
 * cli_add_graph.patch - Fixes command line syntax help in cli/add_graph.php

 * snmp_invalid_response.patch - Properly rejects invalid responses from snmp

 * template_duplication.patch - Addresses issue when templates are duplicated
   and then exported. A new command line utility has been added to repair
   any corrupted templates.

Requested by:   linimon
0.8.7e3
03 Nov 2009 13:48:03
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Patches from developers
0.8.7e
29 Jun 2009 15:50:26
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Update to 0.8.7e:
     * Reduced issues unexpected SNMP agents results
     * Fixed issue with SNMPv3 passwords and Firefox Browser
     * Fixed a long standing bug where changes to graph trees
       would not show up immediately
0.8.7d
16 Feb 2009 16:43:39
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Update to 0.8.7d
0.8.7b.2_2
22 Aug 2008 11:34:47
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Add two vendor's patches

* Undefined Variable When SNMP=NONE:
  Fixes an PHP undefined variable error from occurring when SNMP is set
  the 'none' for a device.

* Patch to Correct for a Uninitialized Settings Array When Using Superlinks
  Plugin:
  When certain Cacti Plugins, such as Superlinks are used, the httpd
  error log can become overrun with reset() and each() array warnings.
  This patch will eliminate those errors.
0.8.7b_2
24 Jun 2008 12:34:56
Original commit files touched by this commit This port version is marked as vulnerable.
rafan search for other commits by this committer
- Chase rrdtool 1.3.0 update, bump PORTREVISION

PR:             ports/124749
Submitted by:   Zhen REN <bg1tpt at gmail.com> (maintainer of rrdtool)
0.8.7b_1
14 Apr 2008 08:59:00
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Fix a typo in pkg-message
0.8.7b_1
27 Mar 2008 10:58:30
Original commit files touched by this commit This port version is marked as vulnerable.
kuriyama search for other commits by this committer
- Chase shlib version of net-mgmt/net-snmp.
- Bump PORTREVISIONs.
0.8.7b
12 Feb 2008 13:06:11
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Update to 0.8.7b
0.8.7a
16 Dec 2007 18:39:38
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Update to 0.8.7a.
  Please note, the version has some issues that require you do some actions
  after update. Read UPDATING file for details.
0.8.6j.4_2
19 Nov 2007 13:03:11
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Add a vendor security patch: fix potential SQL injection

Approved by:    portmgr (erwin)
0.8.6j.3_2
05 Jul 2007 06:19:49
Original commit files touched by this commit This port version is marked as vulnerable.
edwin search for other commits by this committer
First steps in a big migration:

    Move net/rrdtool to databases/rrdtool.

    It's an itch which needs to be scratched: net/rrdtool came from
    net/mrtg, which was a good location for it. net/mrtg has later
    been moved to net-mgmt/mrtg. net/rrdtool is "Round Robin Database
    Tools", therefor it's better if it moves to databases/rrdtool.
    Same with net/rrdtool10.

PR:             ports/112942
Submitted by:   Edwin Groothuis <edwin@mavetju.org>
0.8.6j.3_2
18 Jun 2007 11:09:46
Original commit files touched by this commit This port version is marked as vulnerable.
sem search for other commits by this committer
- Move net/cacti to net-mgmt category
- Fix format of previous line in MOVED (pointyhat to pav)

PR:             ports/113495
Submitted by:   edwin

Number of commits found: 113 (showing only 13 on this page)

«  1 | 2