first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
21
base/cacti/1.2.24/Dockerfile
Normal file
21
base/cacti/1.2.24/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM php:7.4-apache
|
||||
|
||||
LABEL maintainer="phithon <root@leavesongs.com>"
|
||||
|
||||
RUN set -ex \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends rrdtool snmp wget ca-certificates libsnmp-dev default-mysql-client \
|
||||
wait-for-it libjpeg62-turbo-dev libpng-dev libfreetype6-dev libgmp-dev libldap2-dev libicu-dev
|
||||
|
||||
RUN set -ex \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install pdo_mysql snmp gmp ldap sockets gd pcntl intl
|
||||
|
||||
RUN set -ex \
|
||||
&& wget -qO- https://files.cacti.net/cacti/linux/cacti-1.2.24.tar.gz | tar zx -C /var/www/html --strip-components 1
|
||||
|
||||
COPY config.php /var/www/html/include/config.php
|
||||
COPY cacti.ini /usr/local/etc/php/conf.d/cacti.ini
|
||||
|
||||
RUN set -ex \
|
||||
&& chown www-data:www-data -R /var/www/html
|
4
base/cacti/1.2.24/cacti.ini
Normal file
4
base/cacti/1.2.24/cacti.ini
Normal file
@@ -0,0 +1,4 @@
|
||||
display_errors=off
|
||||
memory_limit=512M
|
||||
date.timezone=UTC
|
||||
max_execution_time=120
|
79
base/cacti/1.2.24/config.php
Normal file
79
base/cacti/1.2.24/config.php
Normal file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/*
|
||||
+-------------------------------------------------------------------------+
|
||||
| Copyright (C) 2004-2020 The Cacti Group |
|
||||
| |
|
||||
| This program is free software; you can redistribute it and/or |
|
||||
| modify it under the terms of the GNU General Public License |
|
||||
| as published by the Free Software Foundation; either version 2 |
|
||||
| of the License, or (at your option) any later version. |
|
||||
| |
|
||||
| This program is distributed in the hope that it will be useful, |
|
||||
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||
| GNU General Public License for more details. |
|
||||
+-------------------------------------------------------------------------+
|
||||
| Cacti: The Complete RRDtool-based Graphing Solution |
|
||||
+-------------------------------------------------------------------------+
|
||||
| This code is designed, written, and maintained by the Cacti Group. See |
|
||||
| about.php and/or the AUTHORS file for specific developer information. |
|
||||
+-------------------------------------------------------------------------+
|
||||
| http://www.cacti.net/ |
|
||||
+-------------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
/*
|
||||
* Make sure these values reflect your actual database/host/user/password
|
||||
*/
|
||||
|
||||
$database_type = 'mysql';
|
||||
$database_default = 'cacti';
|
||||
$database_hostname = 'db';
|
||||
$database_username = 'root';
|
||||
$database_password = 'root';
|
||||
$database_port = '3306';
|
||||
$database_retries = 5;
|
||||
$database_ssl = false;
|
||||
$database_ssl_key = '';
|
||||
$database_ssl_cert = '';
|
||||
$database_ssl_ca = '';
|
||||
$database_persist = false;
|
||||
|
||||
/*
|
||||
* The poller_id of this system. set to `1` for the main cacti web server.
|
||||
* Otherwise, you this value should be the poller_id for the remote poller.
|
||||
*/
|
||||
|
||||
$poller_id = 1;
|
||||
|
||||
/*
|
||||
* Set the $url_path to point to the default URL of your cacti install.
|
||||
* For example if your cacti install as at `https://serverip/cacti/` this
|
||||
* would be set to `/cacti/`.
|
||||
*/
|
||||
|
||||
$url_path = '/';
|
||||
|
||||
/*
|
||||
* Default session name - session name must contain alpha characters
|
||||
*/
|
||||
|
||||
$cacti_session_name = 'Cacti';
|
||||
|
||||
/*
|
||||
* Default Cookie domain - The cookie domain to be used for Cacti
|
||||
*/
|
||||
|
||||
//$cacti_cookie_domain = 'cacti.net';
|
||||
|
||||
/*
|
||||
* Save sessions to a database for load balancing
|
||||
*/
|
||||
|
||||
$cacti_db_session = false;
|
||||
|
||||
/*
|
||||
* Disable log rotation settings for packagers
|
||||
*/
|
||||
|
||||
$disable_log_rotation = false;
|
Reference in New Issue
Block a user