Troubleshooting in Zabbix
Sometimes Zabbix can be a real pain to troubleshoot if you don't know where to look. Here are some pointers:
- Since Zabbix 2.4 you will now see why your item has failed when you hover your mouse over the red box. This can help you a lot.
- Don't forget that Zabbix logs everything for agent proxy and server under the
/var/log/zabbix/
file. If something fails, this is probably the second place to look at. - SELinux can mess with your installation too. For example, ping can be blocked by SELinux returning the wrong value as if your host is not reachable. Don't forget that since RHEL 6.5, there are SELinux policies for the agent that can be set as follows:
setsebool -P zabbix_can_network on
- Even if you have set the Boolean, there can be other issues with SELinux. To investigate this you could run:
sealert -a /var/log/audit/audit.log
SELinux will tell you what it has blocked and why, and it will also try to tell you how to undo this. Most of the time this will...