前提:zabbix系統已部署好。php
一、在你的zabbix系統找到assets/styles目錄,建立css後綴的文件:css
二、修改custom-theme.css的內容,因爲是測試,我修改了導航欄的背景顏色:
註釋掉原來的css代碼,而後把background-color修改爲:aquaweb
三、在你的zabbix系統找到include/classes/core目錄,在Z.php文件中添加如下php代碼:vim
public static function getThemes() {
return arraymerge(parent::getThemes(), array(
'custom-theme' => ('Custom theme')
));
}ide
注意:若是想添加多個自定義主題,用逗號分隔就行,例如:測試
四、在zabbix的web界面選擇新添加的主題,並查看效果:blog