[LINUX] I want to customize the appearance of zabbix

[0. What you want to do / Why do you do it](#What you want to do / Why do you do it) 1. Goal [2. Image preparation](#Image preparation) [3. Preparing the environment](#Preparing the environment) [4. Transfer images to Zabbix server](#Transfer images to Zabbix server) [5. Source code rewriting](# source code rewriting)

What you want to do and why you do it

I want to make zabbix look cute! There are times when you want to change the image, color, background, etc., right? I'm not a front-end engineer, but I understand the basics, so I'm playing around with it. As for why I do it, for me it is "change my mood !! Learn more about ZABBIX!". On the other hand, I think that some people have an Active / Standby configuration, so I think it will be easier to see which machine you are accessing immediately.

goal

This time I will change the image of ZABBIX to tamolab like the image I did! スクリーンショット 2020-08-22 11.12.48.png

Image preparation

Create an image. I am a PowerPoint believer, so I will create it with Powerpoint. I didn't care about the size, but I created it with 88 × 20 (tamlab.JPG). Once created, save it to your desktop. スクリーンショット 2020-08-22 11.00.41.png

Transfer images to Zabbix server

Transfer the image to the server.

data transfer


PC$ scp ~/Desktop/tamlab.png <zabbix server IP>:~/
#Hopefully it will be transferred as below
tamlab.png               100%   31KB   3.0MB/s   00:00
PC$ 

Image placement

Move the transferred image to the following location.

Data movement


zabbix-server$ sudo mv ~/tamlab.png /usr/share/zabbix/assets/img/ 

Source code rewriting

Go to the hierarchy below and check the file.

Hierarchical movement


zabbix-server$ cd /usr/share/zabbix/assets/styles
zabbix-server$ ls 
blue-theme.css  dark-theme.css  hc-dark.css  hc-light.css

blue-theme.css dark-theme.css hc-dark.css hc-light.css is linked to the following settings. For example, if you select the "Dark" theme in the account settings (GUI), dark-theme.css will be applied. スクリーンショット 2020-08-22 11.25.46.png

Let's edit the "Dark" theme. Edit the .logo.

/usr/share/zabbix/assets/styles/dark-theme.css


zabbix-server$ sudo vim /usr/share/zabbix/assets/styles/dark-theme.css
...
.logo {
  float: left;
  display: block;
  width: 95px;
  height: 50px;
  background: url(../img/tamlab.JPG) no-repeat 0 11px; }
  //background: url(../img/icon-sprite.svg) no-repeat 0 -903px; }
...

I commented out the original code and changed the reference image from ../img/icon-sprite.svg to ../img/tamlab.JPG. スクリーンショット 2020-08-22 11.42.41.png

the end. You can also customize it in various ways by playing with CSS!

Recommended Posts

I want to customize the appearance of zabbix
I want to grep the execution result of strace
I want to fully understand the basics of Bokeh
I want to increase the security of ssh connections
I want to use only the normalization process of SudachiPy
I want to get the operation information of yahoo route
I want to judge the authenticity of the elements of numpy array
Keras I want to get the output of any layer !!
I want to know the legend of the IT technology world
I want to pin Spyder to the taskbar
I want to output to the console coolly
I want to handle the rhyme part1
I want to handle the rhyme part3
I want to display the progress bar
I want to handle the rhyme part2
I want to handle the rhyme part5
I want to handle the rhyme part4
I want to get the name of the function / method being executed
I want to manually assign the training parameters of the [Pytorch] model
I want to read the html version of "OpenCV-Python Tutorials" OpenCV 3.1 version
I want to output the beginning of the next month with Python
I want to check the position of my face with OpenCV!
I want to know the population of each country in the world.
I don't want to admit it ... The dynamical representation of Neural Networks
I want to handle the rhyme part7 (BOW)
I tried to touch the API of ebay
(Python Selenium) I want to check the settings of the download destination of WebDriver
I tried to correct the keystone of the image
I want to batch convert the result of "string" .split () in Python
I want to explain the abstract class (ABCmeta) of Python in detail.
I want to sort a list in the order of other lists
I want to express my feelings with the lyrics of Mr. Children
I want to get League of Legends data ③
I want to get League of Legends data ②
I want to analyze the emotions of people who want to meet and tremble
I want to use the Qore SDK to predict the success of NBA players
I want to leave an arbitrary command in the command history of Shell
I want to stop the automatic deletion of the tmp area with RHEL7
I want to get League of Legends data ①
Python: I want to measure the processing time of a function neatly
I want to use the activation function Mish
I want to display the progress in Python!
I tried to predict the price of ETF
I tried to vectorize the lyrics of Hinatazaka46!
I want to get the path of the directory where the running file is stored.
I want to visualize the transfer status of the 2020 J League, what should I do?
The story of IPv6 address that I want to keep at a minimum
I want to use Python in the environment of pyenv + pipenv on Windows 10
I want to use PyTorch to generate something like the lyrics of Japari Park
I want to set a life cycle in the task definition of ECS
I want to add silence to the beginning of a wav file for 1 second
I want to store the result of% time, %% time, etc. in an object (variable)
I want to see the file name from DataLoader
I want to scroll the Django shift table, but ...
I want to inherit to the back with python dataclass
I want to install a package of Php Redis
I want to write in Python! (3) Utilize the mock
I tried to visualize the spacha information of VTuber
I tried to erase the negative part of Meros
I want to handle the rhyme part6 (organize once)
I want to automate ssh using the expect command!