1. Several key keys of the monitoring port:
checks if this port is in listen state. 0 - it is not, 1 - it is in listen state. tcp |
Net.tcp.port[<ip>,port] |
Check, if it is possible to make TCP connection to the port number. 0-cannot Connect, 1-can Connect. IP address is optional. If IP is missing, 127.0.0.1 is used. EXAMPLE:NET.TCP.PORT[,80] Check to see if the TCP port is connected properly. |
Net.tcp.service[service,<ip>,<port>] |
Check if service is available. 0-service is off, 1-service is running. If IP is missing 127.0.0.1 is used. If port number is missing, the default service, port is used. EXAMPLE:NET.TCP.SERVICE[FTP,,45]. To check if the service is available, theFTP service can use the ftp template directly |
|
|
|
Checks if this port was in the LISTEN state. 0-it is isn't, 1-it is in LISTEN state. Monitoring UDP whether the port is listening (not supported Windows )
|
Description: Zabbix comes with a separate service detection template, such as the Templates App FTP service, which is used by the ket.tcp.service[ftp] this key to monitor.
2. Create a set of templates specifically for port monitoring
Monitor 80-port templates, create a new group TCP port
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/53/A8/wKiom1RtO3KiM52fAAIa4EOpREk518.jpg "style=" float: none; "title=" Image 1.png "alt=" Wkiom1rto3kim52faaia4eoprek518.jpg "/>
3. Add Item to Template
Add an item that monitors whether the 80 port is in the listen state, the key used is net.tcp.listen[]
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/A6/wKioL1RtO-rRA3-OAADYffaHm2o532.jpg "style=" float: none; "title=" Image 2.png "alt=" Wkiol1rto-rra3-oaadyffahm2o532.jpg "/>
4. Add a second item
This item uses a key of net.tcp.port[] to check if the TCP port is connected properly
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/A8/wKiom1RtO3LDCm7hAADZ8g5mhuk030.jpg "style=" float: none; "title=" Image 3.png "alt=" Wkiom1rto3ldcm7haadz8g5mhuk030.jpg "/>
5. Add a third item
This item uses a key of net.tcp.service[] to monitor whether the service is available, and does not specify that the port will check the default port of the service
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/A6/wKioL1RtO-qBh-eBAAELdWuL-qg596.jpg "style=" float: none; "title=" Image 4.png "alt=" Wkiol1rto-qbh-ebaaeldwul-qg596.jpg "/>
6. Add a fourth item
This item uses a key of net.tcp.service[] to monitor the connection performance of the service (port), note the following data type selection float
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/A6/wKioL1RtO-rgXarxAAEFWrXXJwQ114.jpg "style=" float: none; "title=" Image 5.png "alt=" Wkiol1rto-rgxarxaaefwrxxjwq114.jpg "/>
7. Create a trigger for the first item
The first item is to monitor whether Port 80 is in the Listen state, return 0 for No, and return 1 to indicate
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/A8/wKiom1RtO3LRsYVLAAEBdWis2Rg853.jpg "style=" float: none; "title=" Image 6.png "alt=" Wkiom1rto3lrsyvlaaebdwis2rg853.jpg "/>
8. Create an image in the template and display 4 items in the image
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/53/A6/wKioL1RtO-vgBYmQAAMQyKwASlw811.jpg "style=" float: none; "title=" Image 7.png "alt=" Wkiol1rto-vgbymqaamqykwaslw811.jpg "/>
9. Link the template to the monitoring host
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/53/A8/wKiom1RtO3PDUEYTAAFX58pGqwY696.jpg "style=" float: none; "title=" Image 8.png "alt=" Wkiom1rto3pdueytaafx58pgqwy696.jpg "/>
10, the host HV01 display monitoring results
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/A6/wKioL1RtO-uDK_KVAAPc2i-wIP8174.jpg "style=" float: none; "title=" Image 9.png "alt=" Wkiol1rto-udk_kvaapc2i-wip8174.jpg "/>
11, the host HV03 display monitoring results
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/A8/wKiom1RtO3SywhsrAAPrqvYFUXk571.jpg "style=" float: none; "title=" Image 10.png "alt=" Wkiom1rto3sywhsraaprqvyfuxk571.jpg "/>
Description: Through the above two graphs can see four items of the difference and role
12, the host HV03 monitoring image
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/A6/wKioL1RtO-ygDAO6AAScfb_npnI963.jpg "style=" float: none; "title=" Image 11.png "alt=" Wkiol1rto-ygdao6aascfb_npni963.jpg "/>
Description: Reflecting the status and value of four ports monitoring items, performance reflects the 80 port connection performance of the HV03 server, the smaller the better.
This article is from the "Moon Ching Xing Fei" blog, please be sure to keep this source http://ywzhou.blog.51cto.com/2785388/1579917
Zabbix Monitoring (vii): Manually monitoring the Windows port status