From 7957f5edea0ddcaa625c625530f6debd124076cb Mon Sep 17 00:00:00 2001 From: Thibaut Notteboom Date: Sun, 3 Jun 2018 15:25:43 +0100 Subject: network/cacti: Updated for version 1.1.38. Signed-off-by: David Spencer --- network/cacti/README | 2 +- network/cacti/README.SBo | 81 ++++++++++++++++++++++++++++++++++++++++++ network/cacti/cacti.SlackBuild | 2 +- network/cacti/cacti.info | 6 ++-- 4 files changed, 86 insertions(+), 5 deletions(-) create mode 100644 network/cacti/README.SBo (limited to 'network/cacti') diff --git a/network/cacti/README b/network/cacti/README index 9483927d92..53ff5b7059 100644 --- a/network/cacti/README +++ b/network/cacti/README @@ -20,4 +20,4 @@ Change these at build time if preferred: httpd, php, and mariadb (as included in Slackware) must also be configured properly and running. Check the included documentation to setup your -MariaDB database and users. +MariaDB database and users. See also README.SBo. diff --git a/network/cacti/README.SBo b/network/cacti/README.SBo new file mode 100644 index 0000000000..d864b2f9c0 --- /dev/null +++ b/network/cacti/README.SBo @@ -0,0 +1,81 @@ +## mysql + +$ cat /etc/my.cnf.d/server.cnf +[...] +[mysqld] +collation-server = utf8_unicode_ci +init-connect='SET NAMES utf8' +character-set-server = utf8 +innodb_buffer_pool_size = 1G +[...] + +$ mysql_install_db --user=mysql + +$ chmod +x /etc/rc.d/rc.mysqld + +$ sh /etc/rc.d/rc.mysqld start + +$ /usr/bin/mysql_secure_installation + +$ cat ~/.my.cnf +[client] +password=somepassword + +$ mysql +> CREATE DATABASE cacti; +> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'cactiuser'; + +$ mysql -D cacti mysql -D mysql GRANT SELECT ON mysql.time_zone_name TO 'cactiuser'@'localhost'; + +##The Cacti Database has not been initialized. Please initilize it before continuing. +## +##To initilize the Cacti database, issue the following commands either as root or using a valid account. +## +##mysqladmin -uroot -p create cacti +## +##mysql -uroot -p -e "grant all on cacti.* to 'someuser'@'localhost' identified by 'somepassword'" +## +##mysql -uroot -p -e "grant select on mysql.time_zone_name to 'someuser'@'localhost' identified by 'somepassword'" +## +##mysql -uroot -p cacti < /pathcacti/cacti.sql +## +##Where /pathcacti/ is the path to your Cacti install location. +## +##Change someuser and somepassword to match your site preferences. The defaults are cactiuser for both user and password. +## +##NOTE: When installing a remote poller, the config.php file must be writable by the Web Server account, and must include valid connection information to the main Cacti server. The file should be changed to read only after the install is completed. +## + + +## php + +$ cat /etc/php.ini +[...] +date.timezone = Europe/Paris +[...] + + + +## httpd + +cat $ /etc/httpd/httpd.conf +[...] +ServerName www.example.com:80 +[...] +DirectoryIndex index.html index.php +[...] +Include /etc/httpd/mod_php.conf +[...] + +$ chmod 755 /etc/rc.d/rc.httpd +$ /etc/rc.d/rc.httpd start + + + +## cacti + +$ vim config.php diff --git a/network/cacti/cacti.SlackBuild b/network/cacti/cacti.SlackBuild index 8e135e3cc7..4bea90fd4c 100644 --- a/network/cacti/cacti.SlackBuild +++ b/network/cacti/cacti.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=cacti -VERSION=${VERSION:-1.1.28} +VERSION=${VERSION:-1.1.38} ARCH=noarch BUILD=${BUILD:-1} TAG=${TAG:-_SBo} diff --git a/network/cacti/cacti.info b/network/cacti/cacti.info index e089fec067..852dfa9c1e 100644 --- a/network/cacti/cacti.info +++ b/network/cacti/cacti.info @@ -1,8 +1,8 @@ PRGNAM="cacti" -VERSION="1.1.28" +VERSION="1.1.38" HOMEPAGE="https://www.cacti.net/" -DOWNLOAD="https://www.cacti.net/downloads/cacti-1.1.28.tar.gz" -MD5SUM="8ad64ec03da234a207bcb50e97ad8cc9" +DOWNLOAD="https://www.cacti.net/downloads/cacti-1.1.38.tar.gz" +MD5SUM="a1ffe414280ec6518de7f0f16a5960c5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="rrdtool" -- cgit v1.2.3