Generally, after the zabbix server and client are deployed, it is complicated to manually add hosts to the Host group if there are too many hosts. Today, we will introduce zabbix's automatic discovery function.
1. Before automatic configuration discovery, the server needs to modify the following configurations:
[[Email protected] ~] # Vim/usr/local/zabbix/etc/zabbix_server.conf fpinglocation =/usr/sbin/fping startsnmptrapper = 1 [email protected] ~] #/Etc/init. d/zabbix_server restart # restart the service
2. log on to the zabbix web page
2.1 click Configuration> Create discovery rule
650) This. length = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/7B/wKiom1RR7VDCrl2oAAOv-OKuAmk762.jpg "Title =" qq20151130154815.jpg "width =" 1036 "Height =" 350 "border =" 0 "hspace =" 0 "vspace =" 0 "style =" Width: 1036px; Height: 350px; "alt =" wKiom1RR7VDCrl2oAAOv-OKuAmk762.jpg "/>
650) This. length = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/7B/wKioL1RR7ozwDKP9AAKVFFlnleE438.jpg "Title =" qq20151130155157.jpg "width =" 1036 "Height =" 486 "border =" 0 "hspace =" 0 "vspace =" 0 "style =" Width: 1036px; Height: 486px; "alt =" wkiol1rr7ozwdkp9aakvfflnlee438.jpg "/>
IP Range 192.168.1.1-254
There are two methods for automatic discovery: smnp-based and Agent-Based. Because I have installed the agent on the client, the following describes how to use the agent.
OK, so that a discovery rule is ready. There are many methods to check the detected rules: zabbix
2.2 After the rule is created, the action is created.
As shown in, You must select "discovery" for "event source"
650) This. length = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/7B/wKiom1RR76DTNujRAASyAsr5iT4283.jpg "Title =" qq20151130155756.jpg "width =" 1036 "Height =" 428 "border =" 0 "hspace =" 0 "vspace =" 0 "style =" Width: 1036px; Height: 428px; "alt =" wkiom1rr76dtnujraasyasr5it4283.jpg "/>
Enter a name in the "Action" box, such as test.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/7B/wKiom1RR8W2xtSNNAAGe74Y4DDg887.jpg "style =" width: 500px; Height: 300px; "Title =" qq20151130160244.jpg "width =" 500 "Height =" 300 "border =" 0 "hspace =" 0 "vspace =" 0 "alt =" Hangzhou "/> 650) this. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/4D/7B/wKioL1RR8ceQpEH4AAIZL8SnGc0503.jpg "style =" width: 500px; Height: 300px; "Title =" qq20151130160543.jpg "width =" 500 "Height =" 300 "border =" 0 "hspace =" 0 "vspace =" 0 "alt =" wkiol1rr8ceqpeh4aaizl8sngc0503.jpg "/>
"Conditions" add "Discovery status = up", "operations" add user groups and connect to modules.
Add to host groups:Linux servers
|
|
Link to templates:Template OS Linux
|
|
OK, the action is complete.
Result: After the configured monitored host is found in the network segment 192.168.1.1-254, the host is automatically added to the Host group to connect to the set monitoring module (template OS Linux ).
In summary, automatic discovery is a major feature of zabbix. The discovery rules are flexible and can be customized. In combination with automatic discovery, automatic device online monitoring and other automated processes can be achieved.
This article from the "IT-Smile" blog, please be sure to keep this http://pynliu.blog.51cto.com/5027391/1569732
Zabbix automatic discovery and processing of specified actions