In front of the Zabbix installation, this section we say Zabbix use
First open the Zabbix-web side, we create a monitoring host, the last section we have added Node2 agent pointed to the server side
1. Open the Web side, configure--host--Create the host, click on the following add
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/8C/DB/wKioL1h8O1ODiUf6AACmGN3rkjE637.jpg "title=" 111. JPG "style=" float:left; "alt=" wkiol1h8o1odiuf6aacmgn3rkje637.jpg "/>650" this.width=650; "src=" https:// S2.51cto.com/wyfs02/m00/8c/db/wkiol1h8o1ocp5hwaabjy87fsac993.jpg "style=" Float:none; "title=" 222.jpg "alt=" Wkiol1h8o1ocp5hwaabjy87fsac993.jpg "/>
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/8C/DF/wKiom1h8PgyxVMz2AAAv3nniOkM450.jpg "title=" 111. JPG "alt=" wkiom1h8pgyxvmz2aaav3nniokm450.jpg "/>
2. Customize the monitoring items items,
Edit the agent configuration file,/etc/zabbix/zabbix_agentd.conf. Configure Userparameter, restart Agent
Userparameter usage for Userparameter=key,command key is unique, in items used to
I'm here to customize the number of people monitoring login shells
Userparameter=onlineuser,who |wc-l
On the server side to detect if you can get to key, if there is no zabbix_get, then perform yum install Zabbix-get
[Email protected] ~]# zabbix_get-s 172.16.1.101-k onlineuser
1
Open the monitoring item on the NODE2---Create a monitoring item, and then click Add
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/8C/E0/wKiom1h8RYOjqZdKAAC-GTBRQHQ599.jpg "title=" 111. JPG "alt=" wkiom1h8ryojqzdkaac-gtbrqhq599.jpg "/>
You can see one more monitoring item.
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/8C/E0/wKiom1h8ReGxZ7HkAAAVzof2a5E942.jpg "title=" 111. JPG "alt=" wkiom1h8regxz7hkaaavzof2a5e942.jpg "/> Open graphics on Node2-Create graphics, click Add when finished
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/8C/DC/wKioL1h8RmyjoKo-AABnwlTX2Jk338.jpg "title=" 111. JPG "alt=" wkiol1h8rmyjoko-aabnwltx2jk338.jpg "/> can see one more graphic
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/8C/DC/wKioL1h8Rp2QSwaiAAAQiMon368315.jpg "title=" 111. JPG "alt=" wkiol1h8rp2qswaiaaaqimon368315.jpg "/> Open trigger on node2-Create TRIGGER, click Add when done
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/8C/E0/wKiom1h8RyGg9qssAABR5dDalFE282.jpg "title=" 111. JPG "alt=" wkiom1h8rygg9qssaabr5ddalfe282.jpg "/>
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/8C/E0/wKiom1h8R5my8b8TAAA69pjmMuE517.jpg "title=" 111. JPG "alt=" wkiom1h8r5my8b8taaa69pjmmue517.jpg "/>
, one more trigger.
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8C/DC/wKioL1h8R-fQQwyAAAAW4aKh5RE269.jpg "title=" 111. JPG "alt=" wkiol1h8r-fqqwyaaaaw4akh5re269.jpg "/>
Above we have added the application set-monitoring item-trigger-graph, if they are combined, is actually a template
Open Monitoring-Graphics, select group demo, host Node2, graphics node2. Onlineuser View the graphic we just added
I'm logged in to multiple shells here, to trigger an alarm below
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/8C/E0/wKiom1h8SQSgf3duAACl4cc5dOM335.jpg "title=" 111. JPG "alt=" wkiom1h8sqsgf3duaacl4cc5dom335.jpg "/>
Turn on Monitor-trigger, view the trigger that we set has been triggered
650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/8C/DC/wKioL1h8SUrQecd6AAAgnRUMJck705.jpg "title=" 111. JPG "alt=" wkiol1h8surqecd6aaagnrumjck705.jpg "/>
Use of zabbix3.2 with custom templates