Skip to content

Commit 373e135

Browse files
authored
Updates
1 parent 278ed7c commit 373e135

4 files changed

Lines changed: 80 additions & 37 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to EngineScript will be documented in this file.
44

55
Changes are organized by date, with the most recent changes listed first.
66

7+
## 2025-10-23
8+
9+
### 🖥️ DIGITALOCEAN MONITORING ENHANCEMENT
10+
11+
- **DigitalOcean Metrics Agent Support**: Added optional support for enhanced server monitoring
12+
713
## 2025-10-21
814

915
### 🔄 CACHE MANAGEMENT IMPROVEMENTS

config/home/enginescript-install-options.txt

Lines changed: 43 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,61 +10,33 @@
1010
#| At console, type: es.config
1111
#| At console, type /home/EngineScript/enginescript-install-options.txt
1212

13+
1314
###################
1415
# Install Options #
1516
###################
1617
# 0 = disabled
1718
# 1 = enabled
1819

19-
# EngineScript Install Debug Mode
20+
## EngineScript Install Debug Mode ##
2021
# Prompts the user to continue or exit after each portion of the install script has run.
2122
# Debug mode will print any errors that each install script encounters.
2223
# Regardless of whether debug mode is enabled, EngineScript will generate a complete log of the script errors will be located at touch /var/log/EngineScript/install-error-log.log
2324
# Run command es.debug to generate a complete server and error log. This is useful when submitting a GitHub issue.
2425
DEBUG_INSTALL=0
2526

26-
# Admin Subdomain (Recommended)
27+
## Admin Subdomain (Recommended) ##
2728
# This will add an admin subdomain (example: admin.wordpresstesting.com) to your site, allowing you to access your server's admin control panel directly from any site installed on your server. You can also access it directly via your server's IP address.
2829
ADMIN_SUBDOMAIN=1
2930

30-
# phpMyAdmin (Recommended)
31+
## phpMyAdmin (Recommended) ##
3132
# Access MySQL databases and make changes to them. An essential tool.
3233
INSTALL_PHPMYADMIN=1
3334

34-
# Adminer
35+
## Adminer ##
3536
# Adminer is a phpMyAdmin alternative.
3637
INSTALL_ADMINER=0
3738

38-
########################
39-
# EngineScript Updates #
40-
########################
41-
# 0 = disabled
42-
# 1 = enabled
43-
44-
# EngineScript Daily Updates (Recommended)
45-
# Adds a cronjob that pulls the latest EngineScript release and updates your installation to that version.
46-
ENGINESCRIPT_AUTO_UPDATE=1
47-
48-
# EngineScript Emergency Updates (Recommended)
49-
# Recommended if you allow EngineScript to auto-update. In the event that a change is pushed live that breaks servers, this emergency-only script will run to attempt a self-heal.
50-
# This script runs hourly, but will not contain any code unless there is a code issue that warrants emergency measures be taken.
51-
ENGINESCRIPT_AUTO_EMERGENCY_UPDATES=1
52-
53-
# EngineScript Test Mode
54-
# When enabled, install and update scripts will use the update-software-versions branch instead of the master branch.
55-
# This allows testing of experimental features and software version updates before they are released to production.
56-
# WARNING: Test mode may install unstable software versions. Use only for testing purposes.
57-
# 0 = Use master branch (stable/production)
58-
# 1 = Use update-software-versions branch (development/testing)
59-
TEST_MODE=0
60-
61-
############################
62-
# Expanded Server Features #
63-
############################
64-
# 0 = disabled
65-
# 1 = enabled
66-
67-
## HIGH_SECURITY_SSL ##
39+
## High Security SSL ##
6840
# Controls the SSL certificate keylength for all new domains.
6941
# 0 = Normal security (EC-256, 256-bit ECDSA certificate, fast and secure for most sites)
7042
# 1 = High security (EC-384, 384-bit ECDSA certificate, stronger encryption, slightly slower, recommended for high-security environments)
@@ -86,19 +58,20 @@ INSTALL_EXPANDED_PHP=0
8658
# Set to 0 to remove PHP 8.3 after upgrading to PHP 8.4 (recommended)
8759
INSTALL_PHP83=0
8860

61+
## Automatic Lossless Image Optimization ##
8962
# Automatically perform lossless compression on all images on each domain.
9063
# This script will remember which files have previously been compressed on the server, but will not be able to know if this was performed on a site from another server.
9164
# Do not enable this feature if you have an image compression plugin or do lossless compression on images prior to uploading them to your site.
9265
AUTOMATIC_LOSSLESS_IMAGE_OPTIMIZATION=0
9366

94-
# Install EngineScript Custom Plugins
67+
## Install EngineScript Custom Plugins ##
9568
# When enabled, EngineScript will install its two custom plugins during site creation:
9669
# 1. Simple WP Optimizer - Basic WordPress performance optimizations (header cleanup, etc.)
9770
# 2. Simple Site Exporter - Makes it easy to export sites to new EngineScript servers
9871
# Note: This does NOT affect other recommended plugins (Nginx Helper, Redis, etc.)
9972
INSTALL_ENGINESCRIPT_PLUGINS=1
10073

101-
# Install Extra WordPress Plugins
74+
## Install Extra WordPress Plugins ##
10275
# When enabled, EngineScript will install additional recommended WordPress plugins during site creation:
10376
# action-scheduler, app-for-cf, autodescription, performance-lab, php-compatibility-checker, theme-check, wp-crontrol, wp-mail-smtp
10477
# These are optional but recommended for enhanced functionality, debugging, and development
@@ -117,6 +90,38 @@ SHOW_ENGINESCRIPT_HEADER=0
11790
# Recommended: 0 (unless on DigitalOcean)
11891
INSTALL_DIGITALOCEAN_REMOTE_CONSOLE=0
11992

93+
## DigitalOcean Metrics Agent ##
94+
# Install DigitalOcean's Metrics Agent for enhanced server monitoring
95+
# This enables detailed CPU, memory, disk, and bandwidth metrics in the DigitalOcean control panel
96+
# Only useful if your server is hosted on DigitalOcean
97+
# Recommended: 0 (unless on DigitalOcean)
98+
INSTALL_DIGITALOCEAN_METRICS_AGENT=0
99+
100+
101+
########################
102+
# EngineScript Updates #
103+
########################
104+
# 0 = disabled
105+
# 1 = enabled
106+
107+
# EngineScript Daily Updates (Recommended)
108+
# Adds a cronjob that pulls the latest EngineScript release and updates your installation to that version.
109+
ENGINESCRIPT_AUTO_UPDATE=1
110+
111+
# EngineScript Emergency Updates (Recommended)
112+
# Recommended if you allow EngineScript to auto-update. In the event that a change is pushed live that breaks servers, this emergency-only script will run to attempt a self-heal.
113+
# This script runs hourly, but will not contain any code unless there is a code issue that warrants emergency measures be taken.
114+
ENGINESCRIPT_AUTO_EMERGENCY_UPDATES=1
115+
116+
# EngineScript Test Mode
117+
# When enabled, install and update scripts will use the update-software-versions branch instead of the master branch.
118+
# This allows testing of experimental features and software version updates before they are released to production.
119+
# WARNING: Test mode may install unstable software versions. Use only for testing purposes.
120+
# 0 = Use master branch (stable/production)
121+
# 1 = Use update-software-versions branch (development/testing)
122+
TEST_MODE=0
123+
124+
120125
##################
121126
# Backup Options #
122127
##################
@@ -150,6 +155,7 @@ WEEKLY_S3_WPCONTENT_BACKUP=0
150155
# https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html
151156
S3_BUCKET_NAME="PLACEHOLDER"
152157

158+
153159
############
154160
# API KEYS #
155161
############
@@ -182,6 +188,7 @@ UPTIMEROBOT_API_KEY="PLACEHOLDER"
182188
# Create your token at https://wpscan.com/api
183189
WPSCANAPI="PLACEHOLDER"
184190

191+
185192
####################
186193
# User Credentials #
187194
####################

scripts/install/enginescript-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ if [[ "${INSTALL_DIGITALOCEAN_REMOTE_CONSOLE}" = "1" ]]; then
384384
then
385385
echo "DigitalOcean Remote Console script has already run."
386386
else
387-
/usr/local/bin/enginescript/scripts/install/system-misc/digitalocean-console-install.sh 2>> /tmp/enginescript_install_errors.log
387+
/usr/local/bin/enginescript/scripts/install/system-misc/digitalocean-software-install.sh 2>> /tmp/enginescript_install_errors.log
388388
echo "DO_CONSOLE=1" >> /var/log/EngineScript/install-log.log
389389
fi
390390
print_last_errors

scripts/install/system-misc/digitalocean-console-install.sh renamed to scripts/install/system-misc/digitalocean-software-install.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,33 @@ echo "============================================================="
4848
echo "DigitalOcean Remote Console Installation Complete"
4949
echo "============================================================="
5050
echo ""
51+
52+
# Check if DigitalOcean Metrics Agent installation is enabled
53+
if [[ "${INSTALL_DIGITALOCEAN_METRICS_AGENT}" == "1" ]]; then
54+
echo "============================================================="
55+
echo "Installing DigitalOcean Metrics Agent"
56+
echo "============================================================="
57+
echo ""
58+
59+
# Download and execute DigitalOcean's official metrics agent installation script
60+
echo "Downloading and installing DigitalOcean Metrics Agent..."
61+
if curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash; then
62+
echo "✅ DigitalOcean Metrics Agent installed successfully"
63+
echo ""
64+
echo "Enhanced server metrics are now available in your DigitalOcean control panel."
65+
echo ""
66+
else
67+
echo "❌ Failed to install DigitalOcean Metrics Agent"
68+
echo "This is not critical and does not affect server functionality."
69+
echo ""
70+
fi
71+
72+
echo "============================================================="
73+
echo "DigitalOcean Metrics Agent Installation Complete"
74+
echo "============================================================="
75+
echo ""
76+
else
77+
echo "DigitalOcean Metrics Agent installation is disabled in configuration."
78+
echo "Skipping metrics agent installation..."
79+
echo ""
80+
fi

0 commit comments

Comments
 (0)