Skip to content

Commit

Permalink
Corrected SPINE compiling error on version 1.2.6+
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Cline committed Sep 6, 2019
1 parent a1bf185 commit 12ff70b
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 163 deletions.
9 changes: 8 additions & 1 deletion changlog.md → CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,14 @@
#### 1.1.0 - 03/25/2017
* Initial push

[CL1.2.0]: http://www.cacti.net/release_notes.php?version=1.2.0
[CL1.2.6]: http://www.cacti.net/release_notes.php?version=1.2.6
[CL1.2.5]: http://www.cacti.net/release_notes.php?version=1.2.5
[CL1.2.4]: http://www.cacti.net/release_notes.php?version=1.2.4
[CL1.2.3]: http://www.cacti.net/release_notes.php?version=1.2.3
[CL1.2.2]: http://www.cacti.net/release_notes.php?version=1.2.2
[CL1.2.1]: http://www.cacti.net/release_notes.php?version=1.2.1
[CL1.2.0]: http://www.cacti.net/release_notes.php?version=1.2.0
[CL1.2.0]: http://www.cacti.net/release_notes.php?version=1.2.0
[CL1.1.38]: http://www.cacti.net/release_notes.php?version=1.1.38
[CL1.1.37]: http://www.cacti.net/release_notes.php?version=1.1.37
[CL1.1.36]: http://www.cacti.net/release_notes.php?version=1.1.36
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ RUN \
php-gd openssl openldap mod_ssl php-pear net-snmp-libs php-pdo \
autoconf automake gcc gzip help2man libtool make net-snmp-devel \
m4 libmysqlclient-devel libmysqlclient openssl-devel dos2unix wget \
sendmail mariadb-devel && \

## --- CLEANUP ---
sendmail mariadb-devel which && \
yum clean all

## --- CRON ---
Expand Down
173 changes: 19 additions & 154 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,129 +188,26 @@ REPLACE INTO `%DB_NAME%`.`settings` (`name`, `value`) VALUES('poller_type', '2')
```

# Change Log
#### 1.2.6 - 09/06/2019
* Update Cacti and Spine from 1.2.0 to 1.2.6
* [changelog 1.2.5 -> 1.2.6][CL1.2.6]
* [changelog 1.2.4 -> 1.2.5][CL1.2.5]
* [changelog 1.2.3 -> 1.2.4][CL1.2.4]
* [changelog 1.2.2 -> 1.2.3][CL1.2.3]
* [changelog 1.2.1 -> 1.2.2][CL1.2.2]
* [changelog 1.2.0 -> 1.2.1][CL1.2.1]
* Removed 1.1.X changelog notes from README.md, this can be located in [CHANGELOG.md](https://github.com/scline/docker-cacti/blob/master/changelog.md)
* Close Issue [#49](https://github.com/scline/docker-cacti/issues/49) - New version of Spine don't have configure file
* Close Issue [#45](https://github.com/scline/docker-cacti/issues/45) - Directories backup and backups mixed up; thank you [shortbloke](https://github.com/shortbloke) for [PR #46](https://github.com/scline/docker-cacti/pull/46)
* Merge [PR #47](https://github.com/scline/docker-cacti/pull/47) and [PR #48](https://github.com/scline/docker-cacti/pull/48) - Add modify PHP env; thank you [joey741019](https://github.com/joey741019)

#### 1.2.0 - 01/06/2019
* Update Cacti and Spine from 1.1.38 to 1.2.0
* [changelog 1.1.38 -> 1.2.0][CL1.2.0]
* Add sendmail to dockerfile via yum due to cacti 1.2.0 requirements
* Created separate changlog file for future documentation cleanup
* Update PHP variable readme to include `max_execution_time` and `memory_limit` changes for 1.2.0
* Add and Hotfix the PHP variable `max_execution_time` for PHP_MAX_EXECUTION_TIME and `memory_limit` for PHP_MEMORY_LIMIT

#### 1.1.38 - 05/12/2018
* Update Cacti and Spine from 1.1.37 to 1.1.38
* [changelog 1.1.37 -> 1.1.38][CL1.1.38]
* Merge yum run commands in dockerfile to reduce stored space.

#### 1.1.37 - 04/4/2018
* Update Cacti and Spine from 1.1.34 to 1.1.37
* [changelog 1.1.36 -> 1.1.37][CL1.1.37]
* [changelog 1.1.35 -> 1.1.36][CL1.1.36]
* [changelog 1.1.34 -> 1.1.35][CL1.1.35]
* Close Issue [#36](https://github.com/scline/docker-cacti/issues/36) - Initialize DB fails if mysql running on non-standard port
* Close Issue [#38](https://github.com/scline/docker-cacti/issues/38) - "httpd: Could not reliably determine the server's fully qualified domain name" httpd errors
* Close Issue [#40](https://github.com/scline/docker-cacti/issues/40) - Remove documentation about automated backups since this is not implemented.


#### 1.1.34 - 02/8/2018
* Update Cacti and Spine from 1.1.31 to 1.1.34
* [changelog 1.1.33 -> 1.1.34][CL1.1.34]
* [changelog 1.1.32 -> 1.1.33][CL1.1.33]
* [changelog 1.1.31 -> 1.1.32][CL1.1.32]

#### 1.1.31 - 01/18/2018
* Update Cacti and Spine from 1.1.30 to 1.1.31
* [changelog 1.1.30 -> 1.1.31][CL1.1.31]

#### 1.1.30 - 01/03/2018
* Update Cacti and Spine from 1.1.28 to 1.1.30
* [changelog 1.1.29 -> 1.1.30][CL1.1.30]
* [changelog 1.1.28 -> 1.1.29][CL1.1.29]

#### 1.1.28u1 - 12/23/2017
* Removed pre-installed plugins (expecting users to add there own)
* Refactored the way Cacti is installed. This is now removed from Dockerfile and moved to start.sh
* Allows the volume mounting of '/cacti', before this would break cacti installation

#### 1.1.28 - 11/21/2017
* Update Cacti and Spine from 1.1.27 to 1.1.28
* [changelog 1.1.27 -> 1.1.28][CL1.1.28]

#### 1.1.27 - 11/07/2017
* Update Cacti and Spine from 1.1.24 to 1.1.27
* [changelog 1.1.26 -> 1.1.27][CL1.1.27]
* [changelog 1.1.25 -> 1.1.26][CL1.1.26]
* [changelog 1.1.24 -> 1.1.25][CL1.1.25]

#### 1.1.24 - 09/18/2017
* Update Cacti and Spine from 1.1.19 to 1.1.24
* [changelog 1.1.23 -> 1.1.24][CL1.1.24]
* [changelog 1.1.22 -> 1.1.23][CL1.1.23]
* [changelog 1.1.21 -> 1.1.22][CL1.1.22]
* [changelog 1.1.20 -> 1.1.21][CL1.1.21]
* [changelog 1.1.19 -> 1.1.20][CL1.1.20]

#### 1.1.19 - 08/21/2017
* Update Cacti and Spine from 1.1.12 to 1.1.19
* [changelog 1.1.18 -> 1.1.19][CL1.1.19]
* [changelog 1.1.17 -> 1.1.18][CL1.1.18]
* [changelog 1.1.16 -> 1.1.17][CL1.1.17]
* [changelog 1.1.15 -> 1.1.16][CL1.1.16]
* [changelog 1.1.14 -> 1.1.15][CL1.1.15]
* [changelog 1.1.13 -> 1.1.14][CL1.1.14]
* [changelog 1.1.12 -> 1.1.13][CL1.1.13]

#### 1.1.12 - 07/05/2017
* Update Cacti and Spine from 1.1.11 to 1.1.12 - [changelog link][CL1.1.12]
* Update upgrade.sh script to use `wget` instead of `curl` due to URL errors.

#### 1.1.11 - 07/04/2017
* Update Cacti and Spine from 1.1.10 to 1.1.11 - [changelog link][CL1.1.11]

#### 1.1.10 - 06/17/2017
* Update Cacti and Spine from 1.1.9 to 1.1.10 - [changelog link][CL1.1.10]

#### 1.1.9 - 06/08/2017
* Update Cacti and Spine from 1.1.5 to 1.1.9
* [changelog 1.1.8 -> 1.1.9][CL1.1.9]
* [changelog 1.1.7 -> 1.1.8][CL1.1.8]
* [changelog 1.1.6 -> 1.1.7][CL1.1.7]
* [changelog 1.1.5 -> 1.1.6][CL1.1.6]
* Update cacti plugins
* thold from 1.0.2 -> 1.0.3
* monitor from 2.0 -> 2.1
* syslog from 2.0 -> 2.1

#### 1.1.5 - 04/27/2017
* Update Cacti and Spine from 1.1.4 to 1.1.5 - [changelog link][CL1.1.5]

#### 1.1.4 - 04/24/2017
* Update Cacti and Spine from 1.1.3 to 1.1.4 - [changelog link][CL1.1.4]
* Update THOLD template with master due to function bug on cacti 1.1+

#### 1.1.3 - 04/15/2017
* Update Cacti and Spine from 1.1.2 to 1.1.3 - [changelog link][CL1.1.3]
* remove temp automation_api file fix since this has been solved in 1.1.3

#### 1.1.2 - 04/11/2017
* Added 1 Minute polling template
* Updated plugin THOLD 1.0.1 -> 1.0.2
* Updated CereusTransporter 0.65 -> 0.66
* Added F5, ESX, PerconaDB, and Linux host templates
##### --- 04/09/2017 ---
* Update crontab from apache user to /etc/crontab
* Apply https://github.com/CentOS/CentOS-Dockerfiles/issues/31 fix so cron works on Centos:7 container
##### --- 04/02/2017 ---
* Update Cacti and Spine from 1.1.1 to 1.1.2 - [changelog link][CL1.1.2]
* Restore from a cacti backup is now working via `restore.sh <backupfile>` command
* Minor cleanup of `backup.sh` script
* Upgrade cacti script created and tested using `upgrade.sh` script

#### 1.1.1 - 03/27/2017
* Update Cacti and Spine from 1.1.0 to 1.1.1 - [changelog link][CL1.1.1]
* GitHub ReadMe organization

#### 1.1.0 - 03/25/2017
* Initial push

# Known Issues/Fixes
* HTTPS is not setup to work, it may work just understand no testing has been done.
Expand All @@ -319,45 +216,13 @@ REPLACE INTO `%DB_NAME%`.`settings` (`name`, `value`) VALUES('poller_type', '2')
* Auto import remote pollers, currently you need to navigate to there GUI for a few clicks.
* Documentation cleanup.

[CL1.2.6]: http://www.cacti.net/release_notes.php?version=1.2.6
[CL1.2.5]: http://www.cacti.net/release_notes.php?version=1.2.5
[CL1.2.4]: http://www.cacti.net/release_notes.php?version=1.2.4
[CL1.2.3]: http://www.cacti.net/release_notes.php?version=1.2.3
[CL1.2.2]: http://www.cacti.net/release_notes.php?version=1.2.2
[CL1.2.1]: http://www.cacti.net/release_notes.php?version=1.2.1
[CL1.2.0]: http://www.cacti.net/release_notes.php?version=1.2.0
[CL1.1.38]: http://www.cacti.net/release_notes.php?version=1.1.38
[CL1.1.37]: http://www.cacti.net/release_notes.php?version=1.1.37
[CL1.1.36]: http://www.cacti.net/release_notes.php?version=1.1.36
[CL1.1.35]: http://www.cacti.net/release_notes.php?version=1.1.35
[CL1.1.34]: http://www.cacti.net/release_notes.php?version=1.1.34
[CL1.1.33]: http://www.cacti.net/release_notes.php?version=1.1.33
[CL1.1.32]: http://www.cacti.net/release_notes.php?version=1.1.32
[CL1.1.31]: http://www.cacti.net/release_notes.php?version=1.1.31
[CL1.1.30]: http://www.cacti.net/release_notes.php?version=1.1.30
[CL1.1.29]: http://www.cacti.net/release_notes.php?version=1.1.29
[CL1.1.28]: http://www.cacti.net/release_notes.php?version=1.1.28
[CL1.1.27]: http://www.cacti.net/release_notes.php?version=1.1.27
[CL1.1.26]: http://www.cacti.net/release_notes.php?version=1.1.26
[CL1.1.25]: http://www.cacti.net/release_notes.php?version=1.1.25
[CL1.1.24]: http://www.cacti.net/release_notes.php?version=1.1.24
[CL1.1.23]: http://www.cacti.net/release_notes.php?version=1.1.23
[CL1.1.22]: http://www.cacti.net/release_notes.php?version=1.1.22
[CL1.1.21]: http://www.cacti.net/release_notes.php?version=1.1.21
[CL1.1.20]: http://www.cacti.net/release_notes.php?version=1.1.20
[CL1.1.19]: http://www.cacti.net/release_notes.php?version=1.1.19
[CL1.1.18]: http://www.cacti.net/release_notes.php?version=1.1.18
[CL1.1.17]: http://www.cacti.net/release_notes.php?version=1.1.17
[CL1.1.16]: http://www.cacti.net/release_notes.php?version=1.1.16
[CL1.1.15]: http://www.cacti.net/release_notes.php?version=1.1.15
[CL1.1.14]: http://www.cacti.net/release_notes.php?version=1.1.14
[CL1.1.13]: http://www.cacti.net/release_notes.php?version=1.1.13
[CL1.1.12]: http://www.cacti.net/release_notes.php?version=1.1.12
[CL1.1.11]: http://www.cacti.net/release_notes.php?version=1.1.11
[CL1.1.10]: http://www.cacti.net/release_notes.php?version=1.1.10
[CL1.1.9]: http://www.cacti.net/release_notes.php?version=1.1.9
[CL1.1.8]: http://www.cacti.net/release_notes.php?version=1.1.8
[CL1.1.7]: http://www.cacti.net/release_notes.php?version=1.1.7
[CL1.1.6]: http://www.cacti.net/release_notes.php?version=1.1.6
[CL1.1.5]: http://www.cacti.net/release_notes.php?version=1.1.5
[CL1.1.4]: http://www.cacti.net/release_notes.php?version=1.1.4
[CL1.1.3]: http://www.cacti.net/release_notes_1_1_3.php
[CL1.1.2]: http://www.cacti.net/release_notes_1_1_2.php
[CL1.1.1]: http://www.cacti.net/release_notes_1_1_1.php
[cacti_download]: http://www.cacti.net/downloads
[spine_download]: http://www.cacti.net/downloads/spine
[arch]: https://github.com/scline/docker-cacti/tree/master/docker-compose
Expand Down
Binary file not shown.
Binary file removed cacti/cacti-spine-1.2.0.tar.gz
Binary file not shown.
Binary file added cacti/cacti-spine-1.2.6.tar.gz
Binary file not shown.
8 changes: 5 additions & 3 deletions docker-compose/cacti_testing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
version: '2'
services:
cacti:
image: .
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
Expand All @@ -15,8 +17,8 @@ services:
- INITIALIZE_DB=1
- TZ=America/Los_Angeles
volumes:
- /docker/cacti:/cacti
- /docker/backups:/backups
- ~/docker/cacti:/cacti
- ~/docker/backups:/backups
links:
- db
db:
Expand Down
1 change: 1 addition & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if [ ! -f /cacti/install.lock ]; then
echo "$(date +%F_%R) [New Install] Extracting and installing Spine files to /spine."
tar -xf /cacti_install/cacti-spine-*.tar.gz -C /tmp
cd /tmp/cacti-spine-* && \
./bootstrap && \
./configure --prefix=/spine && make && make install && \
chown root:root /spine/bin/spine && \
chmod +s /spine/bin/spine
Expand Down
5 changes: 3 additions & 2 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ wget -qO- $cacti_download_url | tar xzC /tmp/update/cacti

# download and uncompress spine
echo "$(date +%F_%R) [Upgrade] Downloading Spine from $spine_download_url"
wget -qO- /tmp/update $spine_download_url | tar xzC /tmp/update/spine
wget -qO- /tmp/update $spine_download_url | tar xzC /tmp/update/spine/

# cacti install
echo "$(date +%F_%R) [Upgrade] Installing new version of Cacti."
Expand All @@ -31,9 +31,10 @@ chown -R apache.apache /cacti/log/
chown -R apache.apache /cacti/scripts/
chown -R apache.apache /cacti/rra/

# compile new version of spine
# bootstrap, compile, and install spine
echo "$(date +%F_%R) [Upgrade] Compile + Installing new version of Spine."
cd /tmp/update/spine/* && \
./bootstrap && \
./configure --prefix=/spine && make && make install && \
chown root:root /spine/bin/spine && \
chmod +s /spine/bin/spine
Expand Down

0 comments on commit 12ff70b

Please sign in to comment.