=> Building net-mgmt/percona-monitoring-plugins Started : Thursday, 19 APR 2018 at 04:12:21 UTC Platform: 5.3-DEVELOPMENT DragonFly v5.3.0.81.g32506c-DEVELOPMENT #29: Tue Apr 10 08:49:52 PDT 2018 marino@pkgbox64.dragonflybsd.org:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64 -------------------------------------------------- -- Environment -------------------------------------------------- UNAME_r=5.0-SYNTH UNAME_m=x86_64 UNAME_p=x86_64 UNAME_v=DragonFly 5.0-SYNTH UNAME_s=DragonFly PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SSL_NO_VERIFY_PEER=1 TERM=dumb PKG_CACHEDIR=/var/cache/pkg8 PKG_DBDIR=/var/db/pkg8 PORTSDIR=/xports LANG=C HOME=/root USER=root -------------------------------------------------- -- Options -------------------------------------------------- ===> The following configuration options are available for percona-monitoring-plugins-1.1.3_4: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings -------------------------------------------------- -- CONFIGURE_ENV -------------------------------------------------- ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl PERL_USE_UNSAFE_INC=1 PYTHON="/usr/local/bin/python2.7" XDG_DATA_HOME=/construction/net-mgmt/percona-monitoring-plugins XDG_CONFIG_HOME=/construction/net-mgmt/percona-monitoring-plugins HOME=/construction/net-mgmt/percona-monitoring-plugins TMPDIR="/tmp" PATH=/construction/net-mgmt/percona-monitoring-plugins/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CCVER=gcc50 -------------------------------------------------- -- CONFIGURE_ARGS -------------------------------------------------- -------------------------------------------------- -- MAKE_ENV -------------------------------------------------- PERL_USE_UNSAFE_INC=1 XDG_DATA_HOME=/construction/net-mgmt/percona-monitoring-plugins XDG_CONFIG_HOME=/construction/net-mgmt/percona-monitoring-plugins HOME=/construction/net-mgmt/percona-monitoring-plugins TMPDIR="/tmp" PATH=/construction/net-mgmt/percona-monitoring-plugins/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES CCVER=gcc50 PREFIX=/usr/local LOCALBASE=/usr/local LIBDIR="/usr/lib" NOPROFILE=1 CC="cc" CFLAGS="-pipe -O2 -fno-strict-aliasing" CPP="cpp" CPPFLAGS="" LDFLAGS="" LIBS="" CXX="c++" CXXFLAGS=" -pipe -O2 -fno-strict-aliasing" MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" -------------------------------------------------- -- MAKE_ARGS -------------------------------------------------- DESTDIR=/construction/net-mgmt/percona-monitoring-plugins/stage -------------------------------------------------- -- PLIST_SUB -------------------------------------------------- PORTDOCS="" PORTEXAMPLES="" PHP_EXT_DIR=20131226 PYTHON_INCLUDEDIR=include/python2.7 PYTHON_LIBDIR=lib/python2.7 PYTHON_PLATFORM=dragonfly5 PYTHON_PYOEXTENSION=pyo PYTHON_SITELIBDIR=lib/python2.7/site-packages PYTHON_SUFFIX=27 PYTHON_VER=2.7 PYTHON_VERSION=python2.7 PYTHON2="" PYTHON3="@comment " OSREL=5.0 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib PERL_VERSION=5.26.1 PERL_VER=5.26 PERL5_MAN1=lib/perl5/site_perl/man/man1 PERL5_MAN3=lib/perl5/site_perl/man/man3 SITE_PERL=lib/perl5/site_perl SITE_ARCH=lib/perl5/site_perl/mach/5.26 PROFILE="@comment " DOCSDIR="share/doc/percona-monitoring-plugins" EXAMPLESDIR="share/examples/percona-monitoring-plugins" DATADIR="share/percona-monitoring-plugins" WWWDIR="www/percona-monitoring-plugins" ETCDIR="etc/percona-monitoring-plugins" -------------------------------------------------- -- SUB_LIST -------------------------------------------------- PHP_EXT_DIR=20131226 PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/percona-monitoring-plugins DOCSDIR=/usr/local/share/doc/percona-monitoring-plugins EXAMPLESDIR=/usr/local/share/examples/percona-monitoring-plugins WWWDIR=/usr/local/www/percona-monitoring-plugins ETCDIR=/usr/local/etc/percona-monitoring-plugins -------------------------------------------------- -- /etc/make.conf -------------------------------------------------- SYNTHPROFILE=Release-5.0 USE_PACKAGE_DEPENDS_ONLY=yes PACKAGE_BUILDING=yes BATCH=yes PKG_CREATE_VERBOSE=yes PORTSDIR=/xports DISTDIR=/distfiles WRKDIRPREFIX=/construction PORT_DBDIR=/options PACKAGES=/packages MAKE_JOBS_NUMBER_LIMIT=5 LICENSES_ACCEPTED= NONE HAVE_COMPAT_IA32_KERN= CONFIGURE_MAX_CMD_LEN=262144 _SMP_CPUS=8 UID=0 ARCH=x86_64 OPSYS=DragonFly DFLYVERSION=500000 OSVERSION=9999999 OSREL=5.0 _OSRELEASE=5.0-SYNTH -------------------------------------------------------------------------------- -- Phase: check-sanity -------------------------------------------------------------------------------- ===> License GPLv2 accepted by the user -------------------------------------------------------------------------------- -- Phase: pkg-depends -------------------------------------------------------------------------------- ===> percona-monitoring-plugins-1.1.3_4 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.10.5.txz Installing pkg-1.10.5... Extracting pkg-1.10.5: .......... done ===> percona-monitoring-plugins-1.1.3_4 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of percona-monitoring-plugins-1.1.3_4 -------------------------------------------------------------------------------- -- Phase: fetch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: fetch -------------------------------------------------------------------------------- ===> License GPLv2 accepted by the user ===> Fetching all distfiles required by percona-monitoring-plugins-1.1.3_4 for building -------------------------------------------------------------------------------- -- Phase: checksum -------------------------------------------------------------------------------- ===> License GPLv2 accepted by the user ===> Fetching all distfiles required by percona-monitoring-plugins-1.1.3_4 for building => SHA256 Checksum OK for percona-monitoring-plugins-1.1.3.tar.gz. -------------------------------------------------------------------------------- -- Phase: extract-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: extract -------------------------------------------------------------------------------- ===> License GPLv2 accepted by the user ===> Fetching all distfiles required by percona-monitoring-plugins-1.1.3_4 for building ===> Extracting for percona-monitoring-plugins-1.1.3_4 => SHA256 Checksum OK for percona-monitoring-plugins-1.1.3.tar.gz. -------------------------------------------------------------------------------- -- Phase: patch-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: patch -------------------------------------------------------------------------------- ===> Patching for percona-monitoring-plugins-1.1.3_4 -------------------------------------------------------------------------------- -- Phase: build-depends -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: lib-depends -------------------------------------------------------------------------------- ===> percona-monitoring-plugins-1.1.3_4 depends on shared library: libmysqlclient.so.18 - not found ===> Installing existing package /packages/All/mysql56-client-5.6.39_1.txz Installing mysql56-client-5.6.39_1... `-- Installing libedit-3.1.20170329_2,1... | `-- Installing ncurses-6.0.0s20171223_1... | `-- Extracting ncurses-6.0.0s20171223_1: .......... done `-- Extracting libedit-3.1.20170329_2,1: .......... done `-- Installing libevent-2.1.8_1... | `-- Installing libressl-2.6.4... | `-- Extracting libressl-2.6.4: .......... done `-- Extracting libevent-2.1.8_1: .......... done `-- Installing liblz4-1.8.1.2,1... `-- Extracting liblz4-1.8.1.2,1: .......... done `-- Installing perl5-5.26.1... `-- Extracting perl5-5.26.1: .......... done Extracting mysql56-client-5.6.39_1: .......... done Message from perl5-5.26.1: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. Message from mysql56-client-5.6.39_1: * * * * * * * * * * * * * * * * * * * * * * * * Please be aware the database client is vulnerable to CVE-2015-3152 - SSL Downgrade aka "BACKRONYM". You may find more information at the following URL: http://www.vuxml.org/freebsd/36bd352d-299b-11e5-86ff-14dae9d210b8.html Although this database client is not listed as "affected", it is vulnerable and will not be receiving a patch. Please take note of this when deploying this software. * * * * * * * * * * * * * * * * * * * * * * * * ===> percona-monitoring-plugins-1.1.3_4 depends on shared library: libmysqlclient.so.18 - found (/usr/local/lib/mysql/libmysqlclient.so.18) ===> Returning to build of percona-monitoring-plugins-1.1.3_4 -------------------------------------------------------------------------------- -- Phase: configure -------------------------------------------------------------------------------- ===> Configuring for percona-monitoring-plugins-1.1.3_4 -------------------------------------------------------------------------------- -- Phase: build -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Phase: run-depends -------------------------------------------------------------------------------- ===> percona-monitoring-plugins-1.1.3_4 depends on package: cacti>=0 - not found ===> Installing existing package /packages/All/cacti-1.1.36.txz Installing cacti-1.1.36... `-- Installing php56-5.6.34_2... | `-- Installing libxml2-2.9.7... | `-- Extracting libxml2-2.9.7: .......... done | `-- Installing pcre-8.40_1... | `-- Extracting pcre-8.40_1: .......... done `-- Extracting php56-5.6.34_2: .......... done `-- Installing php56-ctype-5.6.34_2... `-- Extracting php56-ctype-5.6.34_2: ....... done `-- Installing php56-filter-5.6.34_2... `-- Extracting php56-filter-5.6.34_2: ........ done `-- Installing php56-gd-5.6.34_1... | `-- Installing freetype2-2.9_1... | `-- Extracting freetype2-2.9_1: .......... done | `-- Installing jpeg-turbo-1.5.3... | `-- Extracting jpeg-turbo-1.5.3: .......... done | `-- Installing libX11-1.6.5,1... | | `-- Installing kbproto-1.0.7... | | `-- Extracting kbproto-1.0.7: .......... done | | `-- Installing libXau-1.0.8_3... | | `-- Installing xproto-7.0.31... | | `-- Extracting xproto-7.0.31: .......... done | | `-- Extracting libXau-1.0.8_3: .......... done | | `-- Installing libXdmcp-1.1.2... | | `-- Extracting libXdmcp-1.1.2: ......... done | | `-- Installing libxcb-1.12_2... | | `-- Installing libpthread-stubs-0.4... | | `-- Extracting libpthread-stubs-0.4: .... done | | `-- Extracting libxcb-1.12_2: .......... done | `-- Extracting libX11-1.6.5,1: .......... done | `-- Installing libXpm-3.5.12... | | `-- Installing gettext-runtime-0.19.8.1_1... | | `-- Installing indexinfo-0.3.1... | | `-- Extracting indexinfo-0.3.1: .... done | | `-- Extracting gettext-runtime-0.19.8.1_1: .......... done | | `-- Installing libXext-1.3.3_1,1... | | `-- Installing xextproto-7.3.0... | | `-- Extracting xextproto-7.3.0: .......... done | | `-- Extracting libXext-1.3.3_1,1: .......... done | | `-- Installing libXt-1.1.5,1... | | `-- Installing libSM-1.2.2_3,1... | | | `-- Installing libICE-1.0.9_1,1... | | | `-- Extracting libICE-1.0.9_1,1: .......... done | | `-- Extracting libSM-1.2.2_3,1: .......... done | | `-- Extracting libXt-1.1.5,1: .......... done | `-- Extracting libXpm-3.5.12: .......... done | `-- Installing png-1.6.34... | `-- Extracting png-1.6.34: .......... done | `-- Installing t1lib-5.1.2_4,1... | | `-- Installing libXaw-1.0.13,2... | | `-- Installing libXmu-1.1.2_3,1... | | `-- Extracting libXmu-1.1.2_3,1: .......... done | | `-- Installing libXp-1.0.3,1... | | | `-- Installing printproto-1.0.5... | | | `-- Extracting printproto-1.0.5: .... done | | `-- Extracting libXp-1.0.3,1: .......... done | | `-- Extracting libXaw-1.0.13,2: .......... done | `-- Extracting t1lib-5.1.2_4,1: .......... done `-- Extracting php56-gd-5.6.34_1: .......... done `-- Installing php56-gettext-5.6.34_2... `-- Extracting php56-gettext-5.6.34_2: ....... done `-- Installing php56-gmp-5.6.34_2... | `-- Installing gmp-6.1.2... | `-- Extracting gmp-6.1.2: .......... done `-- Extracting php56-gmp-5.6.34_2: ....... done `-- Installing php56-hash-5.6.34_2... `-- Extracting php56-hash-5.6.34_2: .......... done `-- Installing php56-json-5.6.34_2... `-- Extracting php56-json-5.6.34_2: ........ done `-- Installing php56-ldap-5.6.34_2... | `-- Installing openldap-client-2.4.46... | `-- Extracting openldap-client-2.4.46: .......... done `-- Extracting php56-ldap-5.6.34_2: ....... done `-- Installing php56-mbstring-5.6.34_2... | `-- Installing oniguruma-6.8.1... | `-- Extracting oniguruma-6.8.1: .......... done `-- Extracting php56-mbstring-5.6.34_2: .......... done `-- Installing php56-openssl-5.6.34_2... `-- Extracting php56-openssl-5.6.34_2: ....... done `-- Installing php56-pdo-5.6.34_2... `-- Extracting php56-pdo-5.6.34_2: .......... done `-- Installing php56-pdo_mysql-5.6.34_2... | `-- Installing php56-mysql-5.6.34_2... | `-- Extracting php56-mysql-5.6.34_2: ......... done `-- Extracting php56-pdo_mysql-5.6.34_2: ......... done `-- Installing php56-posix-5.6.34_2... `-- Extracting php56-posix-5.6.34_2: ....... done `-- Installing php56-session-5.6.34_2... `-- Extracting php56-session-5.6.34_2: .......... done `-- Installing php56-simplexml-5.6.34_2... `-- Extracting php56-simplexml-5.6.34_2: ......... done `-- Installing php56-snmp-5.6.34_2... | `-- Installing net-snmp-5.7.3_18... | `-- Extracting net-snmp-5.7.3_18: .......... done `-- Extracting php56-snmp-5.6.34_2: ....... done `-- Installing php56-sockets-5.6.34_2... `-- Extracting php56-sockets-5.6.34_2: .......... done `-- Installing php56-xml-5.6.34_2... `-- Extracting php56-xml-5.6.34_2: ........ done `-- Installing php56-zlib-5.6.34_2... `-- Extracting php56-zlib-5.6.34_2: ....... done `-- Installing rrdtool-1.7.0_2... | `-- Installing cairo-1.14.8_1,2... | | `-- Installing dri2proto-2.8... | | `-- Extracting dri2proto-2.8: .... done | | `-- Installing fontconfig-2.12.1_3,1... | | `-- Installing expat-2.2.5... | | `-- Extracting expat-2.2.5: .......... done | | `-- Extracting fontconfig-2.12.1_3,1: .......... done Running fc-cache to build fontconfig cache... /usr/local/share/fonts: skipping, no such directory /usr/local/lib/X11/fonts: skipping, no such directory /var/db/fontconfig: cleaning cache directory fc-cache: succeeded | | `-- Installing glib-2.50.3_1,1... | | `-- Installing libffi-3.2.1_2... | | `-- Extracting libffi-3.2.1_2: .......... done | | `-- Installing libiconv-1.14_11... | | `-- Extracting libiconv-1.14_11: .......... done | | `-- Installing python27-2.7.14_1... | | | `-- Installing readline-7.0.3_1... | | | `-- Extracting readline-7.0.3_1: .......... done | | `-- Extracting python27-2.7.14_1: .......... done | | `-- Extracting glib-2.50.3_1,1: .......... done No schema files found: doing nothing. | | `-- Installing glproto-1.4.17... | | `-- Extracting glproto-1.4.17: ...... done | | `-- Installing libXrender-0.9.10... | | `-- Installing renderproto-0.11.1... | | `-- Extracting renderproto-0.11.1: .... done | | `-- Extracting libXrender-0.9.10: .......... done | | `-- Installing mesa-libs-17.3.1... | | `-- Installing libXdamage-1.1.4_3... | | | `-- Installing damageproto-1.2.1... | | | `-- Extracting damageproto-1.2.1: .... done | | | `-- Installing libXfixes-5.0.3... | | | `-- Installing fixesproto-5.0... | | | `-- Extracting fixesproto-5.0: .... done | | | `-- Extracting libXfixes-5.0.3: .......... done | | `-- Extracting libXdamage-1.1.4_3: ...... done | | `-- Installing libXxf86vm-1.1.4_1... | | | `-- Installing xf86vidmodeproto-2.3.1... | | | `-- Extracting xf86vidmodeproto-2.3.1: .... done | | `-- Extracting libXxf86vm-1.1.4_1: .......... done | | `-- Installing libdrm-2.4.89,1... | | | `-- Installing libpciaccess-0.13.5... | | | `-- Installing pciids-20180219... | | | `-- Extracting pciids-20180219: ..... done | | | `-- Extracting libpciaccess-0.13.5: ...... done | | `-- Extracting libdrm-2.4.89,1: .......... done | | `-- Installing libelf-0.8.13_3... | | `-- Extracting libelf-0.8.13_3: .......... done | | `-- Installing libxshmfence-1.2_2... | | `-- Extracting libxshmfence-1.2_2: ......... done | | `-- Extracting mesa-libs-17.3.1: .......... done | | `-- Installing pixman-0.34.0... | | `-- Extracting pixman-0.34.0: .......... done | | `-- Installing xcb-util-renderutil-0.3.9_1... | | `-- Installing xcb-util-0.4.0_2,1... | | `-- Extracting xcb-util-0.4.0_2,1: .......... done | | `-- Extracting xcb-util-renderutil-0.3.9_1: ...... done | `-- Extracting cairo-1.14.8_1,2: .......... done | `-- Installing dejavu-2.37... | | `-- Installing mkfontdir-1.0.7... | | `-- Installing mkfontscale-1.1.2... | | | `-- Installing libfontenc-1.1.3_1... | | | `-- Extracting libfontenc-1.1.3_1: ......... done | | `-- Extracting mkfontscale-1.1.2: .. done | | `-- Extracting mkfontdir-1.0.7: .. done | `-- Extracting dejavu-2.37: .......... done | `-- Installing pango-1.42.0... | | `-- Installing encodings-1.0.4_4,1... | | `-- Installing font-util-1.3.1... | | `-- Extracting font-util-1.3.1: .......... done | | `-- Extracting encodings-1.0.4_4,1: .......... done | | `-- Installing fribidi-0.19.7... | | `-- Extracting fribidi-0.19.7: .......... done | | `-- Installing harfbuzz-1.7.6... | | `-- Installing graphite2-1.3.11... | | `-- Extracting graphite2-1.3.11: .......... done | | `-- Extracting harfbuzz-1.7.6: .......... done | | `-- Installing libXft-2.3.2_1... | | `-- Extracting libXft-2.3.2_1: .......... done | | `-- Installing xorg-fonts-truetype-7.7_1... | | `-- Installing font-bh-ttf-1.0.3_3... | | `-- Extracting font-bh-ttf-1.0.3_3: .......... done | | `-- Installing font-misc-ethiopic-1.0.3_3... | | `-- Extracting font-misc-ethiopic-1.0.3_3: ... done | | `-- Installing font-misc-meltho-1.0.3_3... | | `-- Extracting font-misc-meltho-1.0.3_3: .......... done | `-- Extracting pango-1.42.0: .......... done `-- Extracting rrdtool-1.7.0_2: .......... done ===> Creating groups. Creating group 'cacti' with gid '107'. ===> Creating users Creating user 'cacti' with uid '107'. Extracting cacti-1.1.36: .......... done Message from freetype2-2.9_1: The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as the default, emulating a modern version of ClearType. This change inevitably leads to different rendering results, and you might change port's options to adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment variable). The environment variable "FREETYPE_PROPERTIES" can be used to control the driver properties. Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \ cff:no-stem-darkening=1 \ autofitter:warping=1 This allows to select, say, the subpixel hinting mode at runtime for a given application. The controllable properties are listed in the section "Controlling FreeType Modules" in the reference's table of contents (/usr/local/share/doc/freetype2/reference/ft2-toc.html, if documentation was installed). Message from openldap-client-2.4.46: ************************************************************ The OpenLDAP client package has been successfully installed. Edit /usr/local/etc/openldap/ldap.conf to change the system-wide client defaults. Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at http://www.OpenLDAP.org/faq/index.cgi?file=3 for more information. ************************************************************ Message from net-snmp-5.7.3_18: **** This port installs snmpd, header files and libraries but does not start snmpd by default. If you want to auto-start snmpd and snmptrapd:, add the following to /etc/rc.conf: snmpd_enable="YES" snmpd_flags="-a" snmpd_conffile="/usr/local/share/snmp/snmpd.conf /etc/snmpd.conf" snmptrapd_enable="YES" snmptrapd_flags="-a -p /var/run/snmptrapd.pid" **** You may also specify the following make variables: NET_SNMP_SYS_CONTACT="zi@FreeBSD.org" NET_SNMP_SYS_LOCATION="USA" DEFAULT_SNMP_VERSION=3 NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio" NET_SNMP_LOGFILE=/var/log/snmpd.log NET_SNMP_PERSISTENTDIR=/var/net-snmp to define default values (or to override the defaults). To avoid being prompted during the configuration process, you should (minimally) define the first two variables. (NET_SNMP_SYS_*) You may also define the following to avoid all interactive configuration: BATCH="yes" Message from python27-2.7.14_1: =========================================================================== Note that some standard Python modules are provided as separate ports as they require additional dependencies. They are available as: bsddb databases/py-bsddb gdbm databases/py-gdbm sqlite3 databases/py-sqlite3 tkinter x11-toolkits/py-tkinter =========================================================================== Message from dejavu-2.37: Make sure that the freetype module is loaded. If it is not, add the following line to the "Modules" section of your X Windows configuration file: Load "freetype" Add the following line to the "Files" section of X Windows configuration file: FontPath "/usr/local/share/fonts/dejavu/" Note: your X Windows configuration file is typically /etc/X11/XF86Config if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org. Message from cacti-1.1.36: ======================================================================= 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) SetHandler application/x-httpd-php SetHandler application/x-httpd-php-source DirectoryIndex index.php DocumentRoot "/usr/local/share/cacti" Alias /cacti "/usr/local/share/cacti/" Alias /Cacti "/usr/local/share/cacti/" Require all granted AllowOverride None Order Allow,deny Allow from all 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. ======================================================================= ===> percona-monitoring-plugins-1.1.3_4 depends on package: cacti>=0 - found ===> Returning to build of percona-monitoring-plugins-1.1.3_4 ===> percona-monitoring-plugins-1.1.3_4 depends on package: p5-DBD-mysql>=0 - not found ===> Installing existing package /packages/All/p5-DBD-mysql-4.046.txz Installing p5-DBD-mysql-4.046... `-- Installing p5-DBI-1.641... `-- Extracting p5-DBI-1.641: .......... done Extracting p5-DBD-mysql-4.046: .......... done ===> percona-monitoring-plugins-1.1.3_4 depends on package: p5-DBD-mysql>=0 - found ===> Returning to build of percona-monitoring-plugins-1.1.3_4 ===> percona-monitoring-plugins-1.1.3_4 depends on executable: bash - not found ===> Installing existing package /packages/All/bash-4.4.19.txz Installing bash-4.4.19... Extracting bash-4.4.19: .......... done ===> percona-monitoring-plugins-1.1.3_4 depends on executable: bash - found ===> Returning to build of percona-monitoring-plugins-1.1.3_4 ===> percona-monitoring-plugins-1.1.3_4 depends on executable: wget - not found ===> Installing existing package /packages/All/wget-1.19.4_2.txz Installing wget-1.19.4_2... `-- Installing libidn2-2.0.4... | `-- Installing libunistring-0.9.9... | `-- Extracting libunistring-0.9.9: .......... done `-- Extracting libidn2-2.0.4: .......... done Extracting wget-1.19.4_2: .......... done ===> percona-monitoring-plugins-1.1.3_4 depends on executable: wget - found ===> Returning to build of percona-monitoring-plugins-1.1.3_4 ===> percona-monitoring-plugins-1.1.3_4 depends on file: /usr/local/include/php/main/php.h - found ===> percona-monitoring-plugins-1.1.3_4 depends on file: /usr/local/bin/python2.7 - found ===> percona-monitoring-plugins-1.1.3_4 depends on package: perl5>=5.26<5.27 - found -------------------------------------------------------------------------------- -- Phase: stage -------------------------------------------------------------------------------- ===> Staging for percona-monitoring-plugins-1.1.3_4 ===> Generating temporary packing list /bin/mkdir -p /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/share/cacti/scripts /bin/mkdir -p /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/share/percona-monitoring-plugins cd /construction/net-mgmt/percona-monitoring-plugins/percona-monitoring-plugins-1.1.3 && /bin/pax -r -w cacti/definitions /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/share/percona-monitoring-plugins cd /construction/net-mgmt/percona-monitoring-plugins/percona-monitoring-plugins-1.1.3 && /bin/pax -r -w cacti/misc /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/share/percona-monitoring-plugins cd /construction/net-mgmt/percona-monitoring-plugins/percona-monitoring-plugins-1.1.3 && /bin/pax -r -w cacti/templates /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/share/percona-monitoring-plugins install -m 0644 /construction/net-mgmt/percona-monitoring-plugins/percona-monitoring-plugins-1.1.3/cacti/scripts/ss_get_by_ssh.php /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/share/cacti/scripts/ss_get_by_ssh.php install -m 0644 /construction/net-mgmt/percona-monitoring-plugins/percona-monitoring-plugins-1.1.3/cacti/scripts/ss_get_mysql_stats.php /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/share/cacti/scripts/ss_get_mysql_stats.php install -m 555 /construction/net-mgmt/percona-monitoring-plugins/percona-monitoring-plugins-1.1.3/cacti/bin/* /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/bin install -m 555 /construction/net-mgmt/percona-monitoring-plugins/percona-monitoring-plugins-1.1.3/nagios/bin/* /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/bin /bin/mkdir -p /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/share/doc/percona-monitoring-plugins install -m 0644 /construction/net-mgmt/percona-monitoring-plugins/percona-monitoring-plugins-1.1.3/Changelog /construction/net-mgmt/percona-monitoring-plugins/stage/usr/local/share/doc/percona-monitoring-plugins/Changelog ====> Compressing man pages (compress-man) -------------------------------------------------------------------------------- -- Phase: package -------------------------------------------------------------------------------- ===> Building package for percona-monitoring-plugins-1.1.3_4 file sizes/checksums [47]: . done packing files [47]: . done packing directories [0]: . done -------------------------------------------------- -- Termination -------------------------------------------------- Finished: Thursday, 19 APR 2018 at 04:12:52 UTC Duration: 00:00:30