Log onto a server in school in Senso - log into ESXi
First create a new VM on the ESXi - Dont foget to turn on autostart
Call it Zabbix Proxy
It needs:
1 processor – 1 core
4GB Ram
50GB Hard drive
You will need the latest Ubuntu desktop ISO for 24.04.2 LTS – Make sure its the LTS.
Get from https://ubuntu.com/download/desktop - upload this to the datastore.
Select the ISO as a boot device and click connect – boot the new server
When booting from Ubuntu – select Try or install Ubuntu
Apart from selecting English UK keyboard layout – just next all the way through the install wizard – Select Install Ubuntu – interactive install – default – etc – until you get to Create Your Account
Create your name as intermadmin
Your computers name as three-digit name and Senso number – eg STC121
(Case is important – whenever you type this later always remember it is UPPER case)
Set password to Migra....xxx
Keep tick for Require my password - Select UK time zone – Install
Wait 5 mins.... Restart now when it appears – it should automatically eject the ISO – but just check in ESXi and press enter to reboot Ubuntu
(If you are unsure of ESXi – there is an additional PDF on creating a VM in ESXi)
Log into Ubuntu
Skip through the welcome screens – we don’t want Pro...
First thing is to give the server a static address – preferably xxx.xxx.xxx.249 but check if this is free first – if it isn't - use another IP high up in the range
You may need to make changes to the filtering depending on which ISP. See Appendix B
Start – Settings – Network - The gear icon under the heading Wired – IPv4 – Manual
Set the IP address – netmask – Gateway and DNS – make sure you use a second DNS – so if the server goes down it can still communicate
Also, in settings – go to Power – Change screen blank to Never
Now open Firefox and make sure you can see the internet – if not –see appendix B about opening the firewalls and filtering. Once you can see the internet – Click Start – Terminal
If you cannot see bbc.co.uk - do not continue – it will not work.
Type
sudo –s
- then put in the Migrat.. password you specified earlier
dpkg -i zabbix-release_latest_7.2+ubuntu24.04_all.deb
apt update
apt-get install mysql-server
- it will ask to install – click y
apt-get install zabbix-proxy-mysql zabbix-sql-scripts
- it will ask to install – click y
mysql -uroot -p
Password is 1nt….
create database zabbix_proxy character set utf8mb4 collate utf8mb4_bin;
create user intermit@localhost identified by "<TYPE 1n PASSWORD>";
- YOU NEED TO REPLACE <TYPE 1n PASSWORD> TO THE 1n...! PASSWORD
grant all privileges on zabbix_proxy.* to intermit@localhost;
set global log_bin_trust_function_creators = 1;
quit
cat /usr/share/zabbix/sql-scripts/mysql/proxy.sql | mysql --default-character-set=utf8mb4 -u intermit -p zabbix_proxy
Password is 1n…!
Be patient, this may take a while
mysql -uroot -p
Password is 1n…..
set global log_bin_trust_function_creators = 0;
quit
Now minimize the command window and open file explorer – in the top bar type /etc
Now open folder Zabbix – and right click on zabbix_proxy.conf - open with – Text Editor – and click the switch for Always use for this file type – Open
Now click open as administrator – Migra...
Now there is a few changes to make – first find # ProxyMode=0
On the line underneath copy this but without the # - so it should read
# ProxyMode=0
ProxyMode=0
Next find Server=127.0.0.1
Change this to
Server=zabbix.intermit.cloud
Now find Hostname=zabbix proxy - Change this to
Hostname= ----- The name you called the computer when you installed it
e.g. Hostname=STC121
Now find # DBHost=localhost
On the line underneath copy this but without the # - so it should read
# DBHost=localhost
DBHost=localhost
Now find DBUser=zabbix
Change it to DBUser=intermit
Now find # DBPassword=
On the line underneath copy this but without the # - so it should read
# DBPassword=
DBPassword=1n…… - YOU NEED TO CHANGE THIS TO THE PASSWORD
All done – Click the X in the top right – Save – enter the Migrat.. Password
go back to Terminal
ufw allow 10050/tcp
ufw allow 10051/tcp
systemctl restart zabbix-proxy
systemctl enable zabbix-proxy
Note – if you make any changes – you need to re run these two commands
TESTING
In terminal type
systemctl status zabbix-proxy
And it SHOULD look like this
⚫ zabbix-proxy.service - Zabbix Proxy
Loaded: loaded (/usr/lib/systemd/system/zabbix-proxy.service; enabled; preset: enabled)
Active: active (running) since Thu 2025-04-10 11:02:17 BST; 5min ago
Main PID: 9352 (zabbix_proxy)
Tasks: 1 (limit: 9440)
Memory: 3.6M (peak: 5.3M)
CPU: 37ms
CGroup: /system.slice/zabbix-proxy.service
L9352 /usr/sbin/zabbix_proxy -c /etc/zabbix/zabbix_proxy.conf
If not –something is wrong somewhere
Some troubleshooting is in the appendix
Now we need to test this is working !
Minimize the command window and open file explorer – in the top bar type /var
Now navigate to log – zabbix and open zabbix_proxy.log
Migrat.. Password
Client Setup
For each server to monitor
Download the latest client from Download Zabbix agents
Install this on the server
Next, Accept, Next, Next
Host name has to be unique – so for a K9SERVER put the three letters and senso number then hyphen – then server name e.g.
STC121-K9SERVER
CHT172-K9SERVER-APP
The Zabbix server IP/DNS is the proxy you have setup with the LOCAL IP
Leave the port
Change the server or proxy for active checks also to the local proxy IP address
Tick the last box – add agent location to the PATH
Next, Install, Finish
Synology
To add a Synology to Zabbix – Log into the Synology
Go to Control Panel – Terminal and SNMP – Click on SNMP tab – Click Enable SNMP Service – then SNMP v3 Service
In username and password – enter
Intermit – Migra...
Tick Enable SNMP privacy
Set the SNMP privacy password also to Migra..
Click Apply – this is done on the Synology.
At this point – email Steve with the proxyname of the Ubuntu box and also the name of the clients that you have setup.
For example
Proxy server = STC121
K9 Server = STC121-K9SERVER
K9 RDS = STC121-K9SERVER-RDS
Synology = STC121-Synology – 172.19.120.250 - I need the IP too
I will then add these and if you haven't already got one – I will email you your logins so you can access the dashboard and see your schools