If you're reading this article, you probably already know that Zabbix is one of the premier open source systems monitoring applications out there. They recently released version 7.0, but masochists like me have been running 7.0 betas and for quite a few months prior. The Zabbix web interface - one of my primary motivations for using the software - is pretty kick ass, allowing you to build custom dashboards and do most all of the management-related tasks. However, at some point in the 7.0-pre release cycle, they decided to change the label orientation, as shown in this screenshot:
If you're familiar with the interface, you'll notice it immediately - the labels are all vertical instead of horizontal. Granted, it's a minor cosmetic annoyance, but it's also a super easy fix. Here's how:
- SSH to your Zabbix server system.
- Change to the Zabbix
include
directory:cd /usr/share/zabbix/include
- Make a backup copy of
defines.inc.php
:cp defines.inc.php /root/zabbix_defines.inc.php_backup
- Edit
defines.inc.php
with the editor of your choice (vim, of course!):- Search for the line that reads:
-
define('ZBX_STYLE_TEXT_VERTICAL', 'text-vertical');
- To search in vim command mode, type:
/ZBX_STYLE_TEXT_VERTICAL
It will be near line 2180, depending on Zabbix version.
-
- Edit the line to read as follows:
define('ZBX_STYLE_TEXT_VERTICAL', '');
- Search for the line that reads:
- Save the file and restart Zabbix server:
:wq
systemctl restart zabbix-server
- Double-check Zabbix's status:
systemctl status zabbix-server
- Reload the Zabbix server dashboard in your browser. Your tags should now be restored to their former horizontal glory:
As I mentioned earlier, this one is a very minor change and an easy fix to boot, but hopefully some of my fellow Zabbix admins will find it as useful as I did. As always, if you have any questions, don't hesitate to reach out: matt@thesoloadmin.com.