(13) zabbix_linux add a defined item monitor item
Background:
1 , zabbix3.4.4 Server Setup completed
Ideas:
1 , monitored to allow custom monitoring items and create custom monitoring items
2 , test whether the data is displayed properly by Zabbix server side with zabbix_get command
3 , creating monitoring items and triggers from the web side
4 , this content is for reference only, in order to learn to use later.
one, the monitored side configuration file
1 , set in profile zabbix_agentd.conf to allow adding custom monitoring items, remove the previous #, and then write the correct path,
2 , restart the client service
Note: Use pkill-9 First, then perform the start service
[Email protected] etc]# pkill-9 ZABBIX_AGENTD
[Email protected] etc]#
/usr/local/zabbix-3.4.3/sbin/zabbix_agentd-c/usr/local/zabbix-3.4.3/etc/zabbix_agentd.conf
3 , creating custom monitoring items
Create a. conf file in a custom monitoring item directory, this test creates a few users who now log on to the system,
Go to Catalog
[Email protected] zabbix_agentd.conf.d]# pwd
/usr/local/zabbix-3.4.3/etc/zabbix_agentd.conf.d
#vi login.conf
USERPARAMETER=LOGIN-USER,WHO|WC – L
Note: Login-user is a name, followed by a command, the command can be tested on its own before the equal sign is fixed
Second,Zabbixserver-side testing
1 , test with Zabbix_get
Note: If the test encounters a problem, refer to the Zabbix_get test error handling document
The test was successful.
Third,Web-side creation of monitoring items
1 , Select Host, click Monitoring items, create monitoring items
Name, write the key value, the same as the custom name:
Click Update to be able to.
2 , creating triggers
This omission step, direct, this trigger write 3 times, can be customized.
7 , create a graphic
This time omitted, direct, the monitoring item own choice to be possible.
8 , view effects
Find the monitoring item that you just created under which host, click Graphics
Monitor success.
Summary: Note the modification of the client configuration file and the restart of the service.
(13) Zabbix_linux add a defined item monitor item