Zabbix Setup & Installation Troubleshooting

Some more help if you need it

Zabbix Setup & Troubleshooting.

Your Linux Server could operate on Microsoft Azure, Amazon AWS, VMWare, or undergo minor OS or component upgrades. If the guide doesn’t work, this additional assistance should resolve the issue. Feel free to email me with your progress, and if you encounter errors, provide details, screenshots, and a description via my contact form. 

MySQL New User TEST

sudo nano /var/lib/zabbix/.my.cnf

[client]
user=zabbixagentuser
password=’YOUR-CHOSEN-DB-PASSWORD

mysql -uroot -p

‘ENTER YOUR ROOT PASSWORD FOR YOUR DB

zabbixagentuser

YOUR-CHOSEN-DB-PASSWORD-ABOVE

create user ‘zabbixagentuser’@’%’ identified by ”YOUR-CHOSEN-DB-PASSWORD-ABOVE”;

grant replication client,process,show databases,show view on *.* to ‘zabbixagentuser’@’%’;

quit;

If the Server cant connect to itself

sudo nano /etc/zabbix/web/zabbix.conf.php

// Uncomment and set to desired values to override Zabbix hostname/IP and port.
$ZBX_SERVER = ‘localhost’;
$ZBX_SERVER_PORT = ‘10051’;
$ZBX_SERVER_NAME = ‘MyZabbixServerName01‘;

apt install zabbix-agent

Try Zabbix Agent 2 Instead

apt install zabbix-agent2 zabbix-agent2-plugin-*

systemctl restart zabbix-agent2

systemctl enable zabbix-agent2

sudo reboot

IPv6 Disable.

sudo nano /etc/sysctl.conf

#add lines
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

sudo sysctl -p #restart service

Agent showing as unavailable – Check dbname, user and db password here

sudo nano /etc/zabbix/zabbix_server.conf

sudo nano /var/lib/zabbix/.my.cnf

[client]
user=zabbixagentuser
password=YOUR-CHOSEN-DB-PASSWORD-ABOVE

mysql -uroot -p

Agent

zabbixagentuser

‘YOUR-CHOSEN-DB-PASSWORD-ABOVE

create user ‘zabbixagentuser’@’%’ identified by ”YOUR-CHOSEN-DB-PASSWORD-ABOVE”;

grant replication client,process,show databases,show view on *.* to ‘zabbixagentuser’@’%’;

quit;

DNS Hosts File

sudo nano /etc/hosts

127.0.0.1 localhost

192.168.1.1 MyZabbixServerName-01.domain.local myzabbixservername-01.domain.local MyZabbixServerName-01 myzabbixservername-01

192.168.1.2 MyZabbixServerName-02.domain.local myzabbixservername-02.domain.local MyZabbixServerName-02 myzabbixservername-02

Share the Post:

Related Posts

What Is Zabbix

What is Zabbix Monitoring Tool

Zabbix plays a vital role in enterprise solutions by providing comprehensive monitoring capabilities for various aspects of IT infrastructure. It is a crucial component in ensuring the smooth operation of networks, servers, applications, and services within large-scale organisational settings.

Read More