+ PKG_PATH=/data/packages/SmartOS/upstream/trunk/All + /opt/tools/sbin/pkg_add -K /var/opt/pkg/.pkgdb help2man-1.49.3 libtool-base-2.4.7nb1 cwrappers-20220403 checkperms-1.12 cacti-1.2.11nb25 mariadb-client-11.4.7 net-snmp-5.9.4nb2 gettext-lib-0.22.5: copying /opt/pkg/share/examples/gettext/locale.alias to /opt/pkg/lib/locale/locale.alias pkg_add: package `cwrappers-20220403' already recorded as installed openssl-3.5.1: /etc/opt/pkg/openssl/openssl.cnf already exists xmlcatmgr-2.2nb1: /etc/opt/pkg/sgml/catalog already exists xmlcatmgr-2.2nb1: /etc/opt/pkg/xml/catalog already exists xmlcatmgr-2.2nb1: copying /opt/pkg/share/examples/xmlcatmgr/catalog.share.sgml to /opt/pkg/share/sgml/catalog xmlcatmgr-2.2nb1: copying /opt/pkg/share/examples/xmlcatmgr/catalog.share.xml to /opt/pkg/share/xml/catalog php82-8.2.29: /etc/opt/pkg/php/8.2/php.ini already exists php82-zlib-8.2.29nb3: copying /opt/pkg/share/examples/php/8.2/zlib.ini to /etc/opt/pkg/php/8.2/php.d/zlib.ini php82-mbstring-8.2.29nb1: /etc/opt/pkg/php/8.2/php.d/mbstring.ini already exists php82-pdo-8.2.29nb1: /etc/opt/pkg/php/8.2/php.d/pdo.ini already exists php82-pdo_mysql-8.2.29nb3: /etc/opt/pkg/php/8.2/php.d/pdo_mysql.ini already exists =========================================================================== This package has SMF support. You may use svcadm(1M) to 'enable', 'disable' or 'restart' services. To enable the instance(s) for this package, run: /usr/sbin/svcadm enable svc:/pkgsrc/snmp:default /usr/sbin/svcadm enable svc:/pkgsrc/snmp:snmptrapd Use svcs(1) to check on service status. See smf(5) for more information. svccfg: Could not connect to repository server: repository server unavailable. =========================================================================== php82-snmp-8.2.29nb3: copying /opt/pkg/share/examples/php/8.2/snmp.ini to /etc/opt/pkg/php/8.2/php.d/snmp.ini php82-sockets-8.2.29nb1: copying /opt/pkg/share/examples/php/8.2/sockets.ini to /etc/opt/pkg/php/8.2/php.d/sockets.ini php82-gmp-8.2.29nb1: copying /opt/pkg/share/examples/php/8.2/gmp.ini to /etc/opt/pkg/php/8.2/php.d/gmp.ini php82-posix-8.2.29nb1: copying /opt/pkg/share/examples/php/8.2/posix.ini to /etc/opt/pkg/php/8.2/php.d/posix.ini openldap-client-2.6.10: /etc/opt/pkg/openldap/ldap.conf already exists php82-ldap-8.2.29nb3: /etc/opt/pkg/php/8.2/php.d/ldap.ini already exists php82-gettext-8.2.29nb1: copying /opt/pkg/share/examples/php/8.2/gettext.ini to /etc/opt/pkg/php/8.2/php.d/gettext.ini apache-2.4.64: Creating group ``www'' apache-2.4.64: Creating user ``www'' apache-2.4.64: /etc/opt/pkg/httpd/httpd-autoindex.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-dav.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-default.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-info.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-languages.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-manual.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-mpm.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-multilang-errordoc.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-ssl.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-userdir.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd-vhosts.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/httpd.conf already exists apache-2.4.64: /etc/opt/pkg/httpd/magic already exists apache-2.4.64: /etc/opt/pkg/httpd/mime.types already exists =========================================================================== This package has SMF support. You may use svcadm(1M) to 'enable', 'disable' or 'restart' services. To enable the instance(s) for this package, run: /usr/sbin/svcadm enable svc:/pkgsrc/apache:default Use svcs(1) to check on service status. See smf(5) for more information. svccfg: Could not connect to repository server: repository server unavailable. =========================================================================== dejavu-ttf-2.37: /etc/opt/pkg/fontconfig/conf.d/20-unhint-small-dejavu-sans-mono.conf already exists dejavu-ttf-2.37: /etc/opt/pkg/fontconfig/conf.d/20-unhint-small-dejavu-sans.conf already exists dejavu-ttf-2.37: /etc/opt/pkg/fontconfig/conf.d/20-unhint-small-dejavu-serif.conf already exists dejavu-ttf-2.37: /etc/opt/pkg/fontconfig/conf.d/57-dejavu-sans-mono.conf already exists dejavu-ttf-2.37: /etc/opt/pkg/fontconfig/conf.d/57-dejavu-sans.conf already exists dejavu-ttf-2.37: /etc/opt/pkg/fontconfig/conf.d/57-dejavu-serif.conf already exists dejavu-ttf-2.37: updating font database in /opt/pkg/share/fonts/X11/TTF (ttf) dejavu-ttf-2.37: updating font database in /opt/pkg/share/fonts/X11/TTF (x11) fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/10-hinting-full.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/10-scale-bitmap-fonts.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/10-sub-pixel-none.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/10-yes-antialias.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/11-lcdfilter-default.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/11-lcdfilter-none.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/20-unhint-small-vera.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/30-metric-aliases.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/30-pkgsrc-aliases.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/40-nonlatin.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/45-generic.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/45-latin.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/48-spacing.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/49-sansserif.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/50-user.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/51-local.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/60-generic.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/60-latin.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/65-fonts-persian.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/65-nonlatin.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/69-unifont.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/70-no-bitmap-webfonts.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/80-delicious.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/90-synthetic.conf already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/conf.d/README already exists fontconfig-2.15.0: /etc/opt/pkg/fontconfig/fonts.conf already exists No schema files found: doing nothing. rrdtool-1.9.0nb7: Creating group ``rrdcached'' UX: groupadd: rrdcached name too long. rrdtool-1.9.0nb7: Creating user ``rrdcached'' UX: /usr/sbin/useradd: rrdcached name too long. UX: /usr/sbin/useradd: rrdcached name too long. cacti-1.2.11nb25: Creating group ``cacti'' cacti-1.2.11nb25: Creating user ``cacti'' cacti-1.2.11nb25: copying /opt/pkg/share/examples/cacti/httpd-cacti.conf to /etc/opt/pkg/httpd/httpd-cacti.conf cacti-1.2.11nb25: copying /opt/pkg/share/cacti/rra/.htaccess to /var/opt/pkg/db/cacti-rra/.htaccess cacti-1.2.11nb25: copying /opt/pkg/share/cacti/log/.htaccess to /var/opt/pkg/log/cacti/.htaccess cacti-1.2.11nb25: copying /opt/pkg/share/examples/cacti/config.php to /opt/pkg/share/cacti/include/config.php pkg_add: package `net-snmp-5.9.4nb2' was already installed as dependency, now marked as installed manually =========================================================================== $NetBSD: MESSAGE,v 1.2 2025/02/08 02:59:45 taca Exp $ To process PHP scripts, you will need a PHP-enabled HTTP server. You may either configure the HTTP server to use the PHP CGI binary located in /opt/pkg/libexec/cgi-bin/php82 or you may install a PHP module for your HTTP server, e.g. www/ap-php. =========================================================================== =========================================================================== $NetBSD: MESSAGE,v 1.1.1.1 2002/10/24 08:29:33 jlam Exp $ If you do not have an existing snmpd.conf configuration file, you may generate one using snmpconf(1), e.g.: /opt/pkg/bin/snmpconf -g basic_setup The resulting config file should be placed in: /etc/opt/pkg/snmpd.conf =========================================================================== =========================================================================== $NetBSD: MESSAGE,v 1.2 2014/02/22 17:28:34 ryoon Exp $ After apache-2.4.3, --enable-mpms-shared='event worker prefork' is passed to configure script, then these multi-process model is built and you can select the model in configuraton file. The mod_cgi.so module conflicts with non-prefork multi-process model, and mod_cgi.so module is not built anymore. You can use mod_cgid.so module instead. =========================================================================== =========================================================================== $NetBSD: MESSAGE,v 1.7 2019/04/29 16:09:05 hauke Exp $ To get cacti up and running, you have to complete these steps: - Install & Configure MySQL database server. Add a 'cacti' database and 'cactiuser' user to MySQL and create the cacti database layout (/opt/pkg/share/cacti/cacti.sql) to MySQL: mysql> CREATE DATABASE cacti; mysql> GRANT ALL PRIVILEGES ON cacti.* TO 'cactiuser'@'localhost' -> IDENTIFIED BY 'cactiuser'; mysql> GRANT SELECT ON mysql.time_zone_name TO 'cactiuser'@'localhost'; mysql> FLUSH PRIVILEGES; mysql> USE cacti; mysql> SOURCE /opt/pkg/share/cacti/cacti.sql; If you haven't already imported your MySQL timezone data, you need to run mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql The Cacti Setup Assistant will ask you to set or adjust database parameters in my.cnf. - Install & Configure an Apache webserver. Append this to Apache webserver's "httpd.conf", and restart the server. Include etc/httpd/httpd-cacti.conf - For older PHP installations that do not support /etc/opt/pkg/php.d/, you will need to manually add these lines to enable php extensions required by cacti in /etc/opt/pkg/php.ini extension=gmp.so extension=ldap.so extension=gettext.so extension=pdo.so extension=pdo_mysql.so extension=snmp.so extension=sockets.so extension=zlib.so extension=mbstring.so extension=posix.so You will want to adjust the following parameters in php.ini memory_limit = 400M (minimum) max_execution_time = 60 (seconds, minimum) date.timezone - Add the following lines to cacti's crontab # Invoke poller.php to collect SNMP statistics. */5 * * * * /opt/pkg/bin/cacti-poller and make sure /opt/pkg/bin is in PATH. Please read the documentation under /opt/pkg/share/cacti/docs/ for more information about configuring and starting cacti. If you have updated from a version older than 0.8.8h, note that the rrd and log directories are now under /var/opt/pkg. Old logs and database files need to be moved manually, and you have to update the log path in "Console:Settings:Paths:Logging". Note: During the web setup of v1.2.3, you may get stuck on the page "Critical Binary Locations" because of a missing "Cacti Log Path" entry. Even after entering the proper /var/opt/pkg/log/cacti/cacti.log, installation may not continue. In this case, using a different browser may help, see . ===========================================================================