How To Install and Configure Zabbix Agent on Ubuntu 18.04

This KB explores How To Install and Configure Zabbix on Ubuntu 18.04

Navigate to

Find the release from the current version.

# dpkg -i zabbix-agent_4.2.0~alpha1-1+bionic_amd64.deb
apt update
# service zabbix-agent start

Smartmon tools Windows

Some Smartmon tools

Zabbix Problem Alert: Service “sppsvc” (Software Protection) is not running (startup type automatic delayed)

When installing windows servers, there are constant alerts for:

Service “sppsvc” (Software Protection) is not running (startup type automatic delayed)
Service “RemoteRegistry” (Remote Registry) is not running (startup type automatic)
Service “MapsBroker” (Downloaded Maps Manager) is not running (startup type automatic delayed)
Service “IaasVmProvider” (IaasVmProvider) is not running (startup type automatic)
Service “WbioSrvc” (Windows Biometric Service) is not running (startup type automatic)
Service “VSS” (Volume Shadow Copy) is not running (startup type automatic)

Check Configuraton > Hosts > Server Name > Click on Discovery inline with server namre > Mounted filesystem discovery. Find “Keep lost resources period:. Change from 31d to 0d.


this has to do with the “Specifically to the Keep lost resources period” (in days) parameter.

If an entity is discovered by LLD, and then is either: removed; lost; or excluded by a filter, it is still kept in Zabbix for the duration of time defined by the Keep Lost Resources parameter (default is 30 days).

So, the changes were recognized in the next LLD cycle (1 hour), but the filtered entity was then considered “lost”, so would be kept for an additional 30 days. If I had waited that long, it would have finally disappeared.

Fortunately you can set that parameter to “0” and it will disappear after the next LLD cycle. Best not to leave that setting at “0” though, so reset back to “30” after LLD.

Zabbix Agent on Debian

Install Zabbix Agent

First, log into Zabbix agent instance and add the Zabbix repository with the following command:
Change version number for your zabbix version.

# wget
# sudo dpkg -i zabbix-release_3.0-2+stretch_all.deb
# sudo apt-get update -y

Install the Zabbix agent by just running the following command:

# sudo apt-get install zabbix-agent -y

Once the Zabbix agent is installed, you will need to configure Zabbix agent to communicate with Zabbix server. You can do this by editing the Zabbix agent configuration file:

# sudo nano /etc/zabbix/zabbix_agentd.conf

Change the file as shown below:

    #Zabbix Server IP Address / Hostname


    #Zabbix Agent Hostname


Save and close the file when you are finished, then restart the Zabbix agent service and enable it to start on boot time with the following command:

# sudo systemctl restart zabbix-agent
# sudo systemctl enable zabbix-agent


Install Zabbix Agent on Windows 2016 Avoid Windows Agent – Error 1053

How to Install Zabbix Agent on Windows 2016 and avoid the: Windows error service could not be started. Error 1053: The service did not respond to the start or control request in a timely fashion.

Download –¬†

If you have the agent service installed incorrectly now, you can remove it by running “zabbix_agentd.exe –uninstall”.

cd c:\zabbix
zabbix_agentd.exe --uninstall

New Install

  1. Create directory C:\zabbix and place zabbix_agentd.exe and files there.
  2. Edit the file and set the values:

Server = IP address of your Zabbix server
# ListenPort = 10050 Leave it commented as is if you don’t change the defaults
ServerActive = IP of your Zabbix server
Hostname = computer that will be monitored as listed in the zabbix server hosts setup

3. Open command prompt and execute:

C:\zabbix\zabbix_agentd.exe --config C:\zabbix\ --install
zabbix_agentd.exe [5584]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [5584]: event source [Zabbix Agent] installed successfully

4. Start Windows service.

If you receive an error – Windows Agent – Error 1053 – that the service could not be started, run the uninstall above and restart the installation and make sure the files are in the correct directory and the config file changes match what you need.

Please find more info here:

Adding a firewall rule in Windows.

Go to Windows Firewall. Add new rule. Choose port, TCP, Specific Local Ports. Add port 10050.

Monitor MySql with Zabbix

How to configure the zabbix on the agent side to allow mysql data to populate in zabbix. Ssh to the server you want to monitor – the one with the zabbix agent installed on. Check that your zabbix_agent config file is including the path “/etc/zabbix/zabbix_agentd.d/”:

# nano /etc/zabbix/zabbix_agentd.conf

Look towards the the end of file:


Check where your zabbix_mysql config is:

# locate userparameter_mysql

Copy to he following directory:

cp /usr/share/doc/zabbix-agent-4.4.5/userparameter_mysql.conf /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf

Open the config file:

# nano /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf

Looks for this type of info…

UserParameter=mysql.status[*],echo "show global status where Variable_name='$1';" | HOME=/var/lib/zabbix mysql -N | awk '{print $$2}'

If you’ll find it for example: HOME=/var/lib/zabbix then create that directory if it does not exist:

# mkdir /var/lib/zabbix

change to that directory and create/edit .my.cnf file:

# cd /var/lib/zabbix
# nano .my.cnf

add the following (assuming you have a user zabbix added with a password. Or, you can use any user as long as they have permissions:



Then save.

Restart mysql:

#systemctl restart mariadb.service

Restart zabbix agent:

#systemctl restart zabbix-agent.service

Now go to Monitoring – Latest Data to view mysql data.

Other Resources:

Install Zabbix agent on Ubuntu

For Ubuntu 16.04 LTS:

$ wget
$ sudo dpkg -i zabbix-release_3.0-1+xenial_all.deb
$ sudo apt update

For Ubuntu 14.04 LTS:

$ wget
$ sudo dpkg -i zabbix-release_3.0-1+trusty_all.deb
$ sudo apt-get update

Install Zabbix Agent

$ sudo apt-get install zabbix-agent

Edit Zabbix Agent Configuration

 $ sudo nano /etc/zabbix/zabbix_agentd.conf

After adding zabbix server ip in configuration file, now restart agent service using below command.

# /etc/init.d/zabbix-agent restart

To start and stop zabbix-agent service anytime use following commands.

# /etc/init.d/zabbix-agent start
# /etc/init.d/zabbix-agent stop