Zabbix Troubleshooting Guide

Zabbix Server Troubleshooting Info

  • Log Location in Linux – /var/log/zabbix/
  • Zabbix Server Configuration file – /etc/zabbix

Zabbix Agent Troubleshooting Info

  • Log Location in Linux – /var/log/zabbix/
  • Log Location in Windows – C:\Program Files\Zabbix Agent
  • Zabbix Agent Configuration file – C:\Program Files\Zabbix Agent

Useful commands for Zabbix Troubleshooting


# Check Database details
$ mysql -h localhost -u zabbix -p -P 3306 -s <<< 'show databases;'

# Check the Zabbix server Database is populated completly or not
$ zcat /usr/share/doc/zabbix-server-mysql-*/create.sql.gz | mysql -uzabbix -pZpcBMdhntW9X7eEw zabbix

# If you succeed then continue with table listing: Check Database Tables
$ mysql -h localhost -u zabbix -p -P 3306 -s <<< 'use zabbix; show tables;'

# Check passwordless connection to database. 
$ mysql -h localhost -u zabbix -p -P 3306 -s <<< 'show grants;'

# Please show what zabbix packages you have installed
$ dpkg-query -l | grep zabbix

# Check if log file has generated some content and it is clear from any errors or warnings:
$ cat /var/log/zabbix_server.log
$ cat /var/log/zabbix/zabbix_server.log

# Start Stop zabbix-server Commands
$ systemctl stop zabbix-server
$ systemctl start zabbix-server

Zabbix Firewall Commands

Zabbix agent listens on port 10050. If you have a UFW firewall or firewalld running, consider opening the port as follows.

----------- On UFW Firewall ----------- 
$ sudo ufw allow 10050/tcp
$ sudo ufw reload

----------- On Firewalld ----------- 
$ sudo firewall-cmd --add-port=10050/tcp --permanent
$ sudo firewall-cmd --reload
Rajesh Kumar
Follow me
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Ethan
Ethan
1 year ago

Good day,

How does one increase the cacheSize in zabbix?|

Regards

1
0
Would love your thoughts, please comment.x
()
x