BSD Ports

net-mgmt/cacti 1.2.31 FreeBSD

Web-driven graphing interface for RRDTool

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
1a398312bf
License
GPLv2+
Categories
net-mgmt, www
Package size
35543.0 KiB, 99540.8 KiB installed

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.

In the other systems

SystemPortVersion
FreeBSDnet-mgmt/cacti1.2.31
DragonFlynet-mgmt/cacti1.2.30
HardenedBSDnet-mgmt/cacti1.2.31
GhostBSDnet-mgmt/cacti1.2.31

Install

Binary package:

pkg install cacti-php82

From the ports tree:

cd /usr/ports/net-mgmt/cacti/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	cacti-php82>0:net-mgmt/cacti

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.2.311.2.311.2.231.2.30-
FreeBSD:14:quarterly1.2.311.2.31n/a1.2.30-
FreeBSD:15:latest1.2.311.2.31n/a1.2.301.2.30
FreeBSD:15:quarterly1.2.311.2.31n/an/an/a
FreeBSD:16:latest1.2.311.2.31n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 2

The full lists below include those, and their dependencies in turn.

Build dependencies 23
Run dependencies 84

No port depends on this one.

Configuration

No options to configure.

USES
cpe gettext mysql php:flavors,web shebangfix
Service scripts
none
Flavors
cacti-php83-1.2.31, cacti-php84-1.2.31, cacti-php85-1.2.31, cacti-php86-1.2.31

Message after installing

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.

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

Files

pkg-plist 5098
  • %%CACTIDIR%%/.htaccess.dist
  • %%CACTIDIR%%/CHANGELOG
  • %%CACTIDIR%%/CLAUDE.md
  • %%CACTIDIR%%/LICENSE
  • %%CACTIDIR%%/README.md
  • %%CACTIDIR%%/about.php
  • %%CACTIDIR%%/aggregate_graphs.php
  • %%CACTIDIR%%/aggregate_templates.php
  • %%CACTIDIR%%/auth_changepassword.php
  • %%CACTIDIR%%/auth_login.php
  • %%CACTIDIR%%/auth_profile.php
  • %%CACTIDIR%%/automation_devices.php
  • %%CACTIDIR%%/automation_graph_rules.php
  • %%CACTIDIR%%/automation_networks.php
  • %%CACTIDIR%%/automation_snmp.php
  • %%CACTIDIR%%/automation_templates.php
  • %%CACTIDIR%%/automation_tree_rules.php
  • %%CACTIDIR%%/cache/boost/.htaccess
  • %%CACTIDIR%%/cache/boost/index.php
  • %%CACTIDIR%%/cache/index.php
  • %%CACTIDIR%%/cache/mibcache/.htaccess
  • %%CACTIDIR%%/cache/mibcache/index.php
  • %%CACTIDIR%%/cache/realtime/.htaccess
  • %%CACTIDIR%%/cache/realtime/index.php
  • %%CACTIDIR%%/cache/spikekill/.htaccess
  • %%CACTIDIR%%/cache/spikekill/index.php
  • %%CACTIDIR%%/cacti.sql
  • %%CACTIDIR%%/cactid.php
  • %%CACTIDIR%%/cdef.php
  • %%CACTIDIR%%/cli/.htaccess
  • %%CACTIDIR%%/cli/add_data_query.php
  • %%CACTIDIR%%/cli/add_datasource.php
  • %%CACTIDIR%%/cli/add_device.php
  • %%CACTIDIR%%/cli/add_graph_template.php
  • %%CACTIDIR%%/cli/add_graphs.php
  • %%CACTIDIR%%/cli/add_perms.php
  • %%CACTIDIR%%/cli/add_tree.php
  • %%CACTIDIR%%/cli/analyze_database.php
  • %%CACTIDIR%%/cli/apply_automation_rules.php
  • %%CACTIDIR%%/cli/audit_database.php
  • %%CACTIDIR%%/cli/batchgapfix.php
  • %%CACTIDIR%%/cli/change_device.php
  • %%CACTIDIR%%/cli/convert_tables.php
  • %%CACTIDIR%%/cli/copy_user.php
  • %%CACTIDIR%%/cli/float_rrdfiles.php
  • %%CACTIDIR%%/cli/fix_mediumint.php
  • %%CACTIDIR%%/cli/host_update_template.php
  • %%CACTIDIR%%/cli/import_package.php
  • %%CACTIDIR%%/cli/import_template.php
  • %%CACTIDIR%%/cli/index.php
  • %%CACTIDIR%%/cli/input_whitelist.php
  • %%CACTIDIR%%/cli/install_cacti.php
  • %%CACTIDIR%%/cli/md5sum.php
  • %%CACTIDIR%%/cli/plugin_manage.php
  • %%CACTIDIR%%/cli/poller_data_sources_reapply_names.php
  • %%CACTIDIR%%/cli/poller_graphs_reapply_names.php
  • %%CACTIDIR%%/cli/poller_output_empty.php
  • %%CACTIDIR%%/cli/poller_reindex_hosts.php
  • %%CACTIDIR%%/cli/poller_replicate.php
  • %%CACTIDIR%%/cli/push_out_hosts.php
  • %%CACTIDIR%%/cli/rebuild_poller_cache.php
  • %%CACTIDIR%%/cli/refresh_csrf.php
  • %%CACTIDIR%%/cli/remove_broken_graphs.php
  • %%CACTIDIR%%/cli/remove_device.php
  • %%CACTIDIR%%/cli/remove_graphs.php
  • %%CACTIDIR%%/cli/removespikes.php
  • %%CACTIDIR%%/cli/reorder_data_query.php
  • %%CACTIDIR%%/cli/repair_database.php
  • %%CACTIDIR%%/cli/repair_graphs.php
  • %%CACTIDIR%%/cli/repair_templates.php
  • %%CACTIDIR%%/cli/splice_rrd.php
  • %%CACTIDIR%%/cli/sqltable_to_php.php
  • %%CACTIDIR%%/cli/structure_rra_paths.php
  • %%CACTIDIR%%/cli/update_heartbeat.php
  • %%CACTIDIR%%/cli/upgrade_database.php
  • %%CACTIDIR%%/clog.php
  • %%CACTIDIR%%/clog_user.php
  • %%CACTIDIR%%/cmd.php
  • %%CACTIDIR%%/cmd_realtime.php
  • %%CACTIDIR%%/color.php
  • %%CACTIDIR%%/color_templates.php
  • %%CACTIDIR%%/color_templates_items.php
  • %%CACTIDIR%%/composer.json
  • %%CACTIDIR%%/contrib/.htaccess
  • %%CACTIDIR%%/contrib/README.md
  • %%CACTIDIR%%/contrib/index.php
  • %%CACTIDIR%%/csp_report.php
  • %%CACTIDIR%%/data_debug.php
  • %%CACTIDIR%%/data_input.php
  • %%CACTIDIR%%/data_queries.php
  • %%CACTIDIR%%/data_source_profiles.php
  • %%CACTIDIR%%/data_sources.php
  • %%CACTIDIR%%/data_templates.php
  • %%CACTIDIR%%/docs/Aggregate-Templates.html
  • %%CACTIDIR%%/docs/Aggregates.html
  • %%CACTIDIR%%/docs/Automation-Networks.html
  • %%CACTIDIR%%/docs/Boost.html
  • %%CACTIDIR%%/docs/CDEFs.html
  • %%CACTIDIR%%/docs/Cacti-Github.css
  • %%CACTIDIR%%/docs/Cacti-Log.html

The first 100 are listed.

distinfo 1
FileSizeSHA256
cacti-1.2.31.tar.gz4.7602329e+07d17dc538a69471032984b7b1f8b5e7906e061d09cf91bc80e1d75b2e736b22f7
Master sites 2
  • http://www.cacti.net/downloads/
  • ftp://ftpmirror.uk/freebsd-ports/cacti/

Commit history 1

DateCommitCreditsLog message
1a398312bf Rodrigo Osorio net-mgmt/cacti: update 1.2.30 -> 1.2.31
Changelog: https://github.com/Cacti/cacti/releases/tag/release%2F1.2.31 Major changes: - Fix 33 CVEs, see list bellow - Fix 49 issues - 9 features PR: 296105 Reported by: Dani I <[email protected]> Security: CVE-2026-39894 Security: CVE-2026-40082 Security: CVE-2026-40941 Security: CVE-2026-39897 Security: CVE-2026-39900 Security: CVE-2026-46531 Security: CVE-2026-44481 Security: CVE-2026-39952 Security: CVE-2026-39893 Security: CVE-2026-22802 Security: CVE-2026-40080 Security: CVE-2026-40078 Security: CVE-2026-39949 Security: CVE-2026-40081 Security: CVE-2026-39948 Security: CVE-2026-39902 Security: CVE-2026-39898 Security: CVE-2026-41884 Security: CVE-2026-39955 Security: CVE-2026-39896 Security: CVE-2026-39950 Security: CVE-2026-40083 Security: CVE-2026-40084 …