Zabbix monitoring the number of Windows TCP connections

Source: Internet
Author: User

Windows:

There are two ways to monitor the number of connections to Windows TCP, one is to take advantage of Performance Monitor, and the other is to write a script.

To view Performance Monitor on Windows server2008:

650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M02/96/D9/wKiom1kmPnLzC2iiAAJjT_YHQis554.jpg "style=" float : none; "title=" Sogou May 25, 17 1003_12.jpg "alt=" Wkiom1kmpnlzc2iiaajjt_yhqis554.jpg "/>

650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M02/96/DA/wKioL1kmPnnT41UsAAJ-pfncuZw740.jpg "style=" float : none; "title=" Sogou May 25, 17 1004_13.jpg "alt=" Wkiol1kmpnnt41usaaj-pfncuzw740.jpg "/>

650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/96/D9/wKiom1kmPn2jFf0fAAGmH6tQbSY739.jpg "style=" float : none; "title=" Sogou May 25, 17 1007_14.jpg "alt=" Wkiom1kmpn2jff0faagmh6tqbsy739.jpg "/>

650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/96/D9/wKiom1kmPoWQcVJxAALQJuFaiDw205.jpg "style=" float : none; "title=" Sogou May 25, 17 1009_15.jpg "alt=" Wkiom1kmpowqcvjxaalqjufaidw205.jpg "/>


Use these to do Zabbix monitoring items:

650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M01/96/DA/wKioL1kmPomjWtH-AAF8YihW1kQ782.jpg "style=" float : none; "title=" Sogou May 25, 17 1010_16.jpg "alt=" Wkiol1kmpomjwth-aaf8yihw1kq782.jpg "/>



Add a monitoring item to the Zabbix page. Note that key is obtained from the above.

perf_counter["\tcpv4\connections established"]perf_counter["\tcpv4\connections Active"]

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/96/DB/wKioL1kmQTmBl80pAAFJ4WuqKEg085.jpg "title=" Sogou May 25, 17 1027_17.jpg "alt=" Wkiol1kmqtmbl80paafj4wuqkeg085.jpg "/>




Using scripting to monitor the number of Windows TCP connections, this is a more comprehensive, personal tendency to monitor with scripts.

The command to manually obtain the number of TCP connections on Windows is:

Netstat-an | Findstr TCP | Find/c "Time_wait" Netstat-an | Find/c "Time_wait" #这两条命令效果是一样的

Edit the zabbix_agent.conf configuration file for the Zabbix agent side:

Unsafeuserparameters=1userparameter=tcp.status[*],netstat-an | FIND/C "$"


Restart Zabbix-agent:


Import template, template I have done, in the attachment, import can be used.


This article from "Wang Jiadong elder brother" blog, declined reprint!

Zabbix monitoring the number of Windows TCP connections

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.