Jump to content

Ubuntu 20.04 LTS:
 

Ubuntu 20.04.4 LTS Minimal Install; Include Updates

sudo apt install -y openssh-server

optional:

sudo apt install -y mc

Check for updates:

sudo apt update -y

Initial System Configuration:
hard-code IP address, disable IPv6; Set Update Preferences

reboot

sudo shutdown -r now

 

This is a good place to take a snapshot in a virtualized environment

 

LAMP Stack:

 

References:

Digital Ocean

 

Apache:

sudo apt install -y apache2

 

DataBase: MariaDB or MySQL:

    1. Install MySQL OR the Open-Source MariaDB:
        MySQL:

sudo apt install -y mysql-server


       OR MariaDB:
        Using MariaDB instead of MySQL:

sudo apt install -y apt install mariadb-server

        Do Not run mysql_secure_installation as it is broken
        
    2. Create dbadmin Administrative user with a password

       

sudo mysql
CREATE USER 'dbadmin'@'localhost' IDENTIFIED WITH mysql_native_password BY '<dBadmin_pwd>';
GRANT ALL ON *.* TO 'dbadmin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit

    (Back to LAMP Installation)

 

PHP:

apt install -y php libapache2-mod-php php-mysql

Did NOT create a vHost

Test PHP:

sudo nano /var/www/html/info.php
        <?php
        phpinfo();

    Open: http://<host_ip>/info.php to verify PHP is working with Apache
    Delete the test file:

rm /var/www/html/info.php

 

This is a good place to take a snapshot in a virtualized environment

 

phpMyAdmin:

 

References:

Digital Ocean

sudo apt update -y
sudo apt upgrade -y
sudo apt install -y phpmyadmin php-mbstring php-zip php-gd php-json php-curl

Configure phpmyadmin:

    Selected apache2
    Selected to Configure database for phpmyadmin
    MySQL App Password: <db_admin_pwd>

Enable mbstring:

sudo phpenmod mbstring

   
NOTE: DO NOT Configure Password Access for the MySQL Root Account

Test Connection to: http://<host_ip>/phpmyadmin/

    uid:    dbadmin
    pwd:    <db_admin_pwd>

 

This is a good place to take a snapshot in a virtualized environment

 

Zabbix Installation and Base Configuration
 

We need Zabbix v5 to be able to use the NVidia GPU Templates but the Zabbix Packages supplied with Ubuntu 20.04 are Zabbix version 4 and though v5 is provided with Ubuntu 22.04 there are issues getting it running possibly due to the use of PHPv8

 

References:

Digital Ocean
Zabbix: Debian Install from Packages
Zabbix: Ubuntu 20.04 Install

 

Install Zabbix repository:

sudo wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb
sudo dpkg -i zabbix-release_5.0-1+focal_all.deb
sudo apt update

   
Install Zabbix server, frontend, agent:

 

Import initial schema and data:

sudo zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p <zabbix_admin_pwd>

 

Configure the database for Zabbix server:

sudo nano /etc/zabbix/zabbix_server.conf
DBPassword=<db_admin_pwd>  (DO NOT enclose Password in Quotes)

 

Configure PHP for Zabbix frontend:

sudo nano /etc/zabbix/apache.conf
php_value date.timezone America/Toronto (adjust to your locale)

 

Start Zabbix Server and Agent Processes:

sudo systemctl restart zabbix-server zabbix-agent apache2
sudo systemctl enable zabbix-server zabbix-agent apache2

 

Front-End Configuration:

 

References:

Zabbix Front-End

Open: http://<host_ip>/zabbix/

Config DB connection:

Type:    MySQL
Host:    localhost
Port:    0
Name:    zabbix
user:    zabbix
pwd:    <zabbix_admin_pwd>

Hit next until you get to the summary. If all goes well everything should be OK and you should be prompted to save the php Config file and you'll end up at the Login Screen

    uid:    Admin (note Capital "A")
    pwd:    zabbix

 

Add Local Agent to Monitored Hosts:

 

Install the agent:
    sudo apt install zabbix-agent

Configure the agent:
References:

Computing for Geeks

 

Start the agent:

sudo systemctl start zabbix-agent

Set it to start it on boot:

sudo systemctl enable zabbix-agent

Add it to the Server:


NVidia Monitoring Template:
 

Add the git package:

sudo apt install -y git make

Create a Projects area:

sudo mkdir /root/projects
sudo cd /root/projects

Clone the template from github

sudo git clone https://github.com/plambe/zabbix-nvidia-smi-multi-gpu

Install the Template:

sudo cd /root/projects/zabbix-nvidia-smi-multi-gpu
sudo make install

Open Templates in the Configuration Pane and select "Import"

Select the zbx_nvidia-smi-multi-gpu.xml file

FaH BOINC HfM

Bifrost - 6 GPU Folding Rig  Linux Folding HOWTO Folding Remote Access Folding GPU Profiling ToU Scheduling UPS

Systems:

desktop: Lian-Li O11 Air Mini; Asus ProArt x670 WiFi; Ryzen 9 7950x; EVGA 240 CLC; 4 x 32GB DDR5-5600; 2 x Samsung 980 Pro 500GB PCIe3 NVMe; 2 x 8TB NAS; AMD FirePro W4100; MSI 4070 Ti Super Ventus 2; Corsair SF750

nas1: Fractal Node 804; SuperMicro X10sl7-f; Xeon e3-1231v3; 4 x 8GB DDR3-1666 ECC; 2 x 250GB Samsung EVO Pro SSD; 7 x 4TB Seagate NAS; Corsair HX650i

nas2: Synology DS-123j; 2 x 6TB WD Red Plus NAS

nas3: Synology DS-224+; 2 x 12TB Seagate NAS

dcn01: Fractal Meshify S2; Gigabyte Aorus ax570 Master; Ryzen 9 5900x; Noctua NH-D15; 4 x 16GB DDR4-3200; 512GB NVMe; 2 x Zotac AMP 4070ti; Corsair RM750Mx

dcn02: Fractal Meshify S2; Gigabyte ax570 Pro WiFi; Ryzen 9 3950x; Noctua NH-D15; 2 x 16GB DDR4-3200; 128GB NVMe; 2 x Zotac AMP 4070ti; Corsair RM750x

dcn03: Fractal Meshify C; Gigabyte Aorus z370 Gaming 5; i9-9900k; BeQuiet! PureRock 2 Black; 2 x 8GB DDR4-2400; 128GB SATA m.2; MSI 4070 Ti Super Gaming X; MSI 4070 Ti Super Ventus 2; Corsair TX650m

dcn05: Fractal Define S; Gigabyte Aorus b450m; Ryzen 7 2700; AMD Wraith; 2 x 8GB DDR 4-3200; 128GB SATA NVMe; Gigabyte Gaming RTX 4080 Super; Corsair TX750m

dcn06: Fractal Focus G Mini; Gigabyte Aorus b450m; Ryzen 7 2700; AMD Wraith; 2 x 8GB DDR 4-3200; 128GB SSD; Gigabyte Gaming RTX 4080 Super; Corsair CX650m

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×