Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

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
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Ethan
Ethan
2 years ago

Good day,

How does one increase the cacheSize in zabbix?|

Regards

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

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