First, active mode and passive mode
active or passive is relative to the client
Passive mode, the server will actively connect to the client to obtain monitoring project data, the client passively accept the connection, and to pass the monitoring information to the server
Active mode, the client will proactively report the monitoring data to the service side, the server is only responsible for receiving.
when the number of clients is very large, it is recommended to use active mode, which can reduce the pressure on the service side.
Server has a public network IP, theclient only intranet IP, but can connect the network, this scenario is suitable for active mode
Second, add monitoring host
Add host group first davery-test
Add the host, the host name and the visible name are all written davery-01
Group Selection davery_test
IP address fill in client IP 192.168.1.106
Once added, you will see that the client ip192.168.1.106 is being monitored.
Several concepts: application sets, monitoring items, triggers, graphics, Autodiscover,web monitoring
Third, add a custom template
A common template can be customized to add monitoring items to new hosts
Custom Davery Templates
The following appears when you add
Copy Some of the monitoring items (such as CPU, memory, etc.) from the other self-contained templates into the davery template
defining triggers
Add a graphic
Auto Discovery, find Template OS Linux, Click Auto Discovery on the right, refer to mounted filesystem discovery and Network interface Discovery Defining rules
You can export, import templates directly, and then delete unwanted objects
Add and refresh, but you can't delete some unwanted monitoring
Once again enter the Davery, connect the template, click Cancel Connection on it, free to delete unwanted monitoring
Delete Order needs to delete the application first
Iv. handling garbled characters in graphics
when set to Chinese, the Chinese text of the Zabbix graphic will display a small box
This is because there are no Chinese fonts in the Zabbix font library and need to borrow one from Windows.
vim/usr/share/zabbix/include/defines.inc.php// Search
The path it defines is "fonts", it is a relative path, the absolute path is /usr/share/zabbix/fonts,
Ls/usr/share/zabbix/fonts
Ls-l/etc/alternatives/zabbix-web-font
/usr/share/fonts/dejavu/dejavusans.ttf
And the font file is "Zbx_graph_font_name" defined by the soft connection "Graphfont", it is a file, the absolute path is/usr/share/zabbix/fonts/graphfont
To connect the soft connect ' graphfont ' to a connection with Chinese, you can
The Windows font path is "C:\Windows\Fonts\" and"simfang.ttf"is found( In fact, that is the imitation Simplified ), first copy it to the desktop, and then upload to the linux /usr/share/zabbix/fonts/ , and renamed Graphfont.ttf
Copy one of them to the desktop
Uploading to Linux using xftp
cd/usr/share/zabbix/fonts/
Shortcut key Ctrl+alt+f
The file Simli.ttf as shown below is the Chinese font.
Make a soft connection to see Graphfont.ttf pointing to Simli. TTF.
Ln-s Simli. TTF Graphfont.ttf
Ls-l
Back to Zabbix refresh can see the Chinese
Five, automatic discovery
Linux centosvmware Active mode and passive mode, add monitoring host, add custom template, handle garbled in graphics, auto discovery