[Technical dry] Zabbix create a custom theme (theme)

Premise: zabbix system has been deployed.

1, find assets / styles zabbix directory on your system, create css file with the extension:

cp blue-theme.css custom-theme.css

2, modify the contents of custom-theme.css, since the test, I changed the background color of the navigation bar:
Comment out the original css code, and then modified to background-color: aqua
[Technical dry] Zabbix create a custom theme (theme)

3, find the include / classes / core zabbix directory on your system, add the following php code Z.php file:

vim Z.php

public static function getThemes() {
return arraymerge(parent::getThemes(), array(
'custom-theme' =>
('Custom theme')
));
}
[Technical dry] Zabbix create a custom theme (theme)

Note: If you want to add more custom themes, separated by a comma on the line, for example:
[Technical dry] Zabbix create a custom theme (theme)

4, select the newly added theme in zabbix web interface and view the results:
[Technical dry] Zabbix create a custom theme (theme)

Guess you like

Origin blog.51cto.com/14483703/2444977