[技術乾貨] Zabbix建立自定義主題(theme)

前提:zabbix系統已部署好。php

一、在你的zabbix系統找到assets/styles目錄,建立css後綴的文件:css

cp blue-theme.css custom-theme.css

二、修改custom-theme.css的內容,因爲是測試,我修改了導航欄的背景顏色:
註釋掉原來的css代碼,而後把background-color修改爲:aqua
[技術乾貨] Zabbix建立自定義主題(theme)web

三、在你的zabbix系統找到include/classes/core目錄,在Z.php文件中添加如下php代碼:vim

vim Z.php

public static function getThemes() {
return arraymerge(parent::getThemes(), array(
'custom-theme' =>
('Custom theme')
));
}
[技術乾貨] Zabbix建立自定義主題(theme)ide

注意:若是想添加多個自定義主題,用逗號分隔就行,例如:
[技術乾貨] Zabbix建立自定義主題(theme)測試

四、在zabbix的web界面選擇新添加的主題,並查看效果:
[技術乾貨] Zabbix建立自定義主題(theme)blog

相關文章
相關標籤/搜索