Tag: Use gadgets to detect if your site is running!
Now there are a lot of good open source monitoring tools: such as Zabbix,cacti,nagios. The function is very powerful, but sometimes want to detect a small function, build a monitoring is not. For example, personally, I do not like to use monitoring to detect whether the site is in normal operation, on the one hand worry about the loss of packets, or the server unexpectedly downtime, and so on, personal preferred to use some small tools to detect the normal operation of the site. Share a bit!
1, Telnet (more suitable for temporary detection)
Yum Install Telnet-y
Baidu Encyclopedia:
Http://baike.baidu.com/link?url=zECAHJux_DV5FFG8wBp8WBpgCVcHfne4q41TNxABJKnz22xNGbjK_d2Egl7_yt5OY8aNLlNdl1XRyYzljE_jCa
Telnet www.baidu.com 80
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/84/24/wKiom1eG-OjwqrlbAAAKaCDDQgk945.png-wh_500x0-wm_3 -wmp_4-s_1488265530.png "title=" 1.png "alt=" Wkiom1eg-ojwqrlbaaakacddqgk945.png-wh_50 "/>
This interface shows that the handshake was successful!
Note: Windows to turn on Telnet function Baidu Search can be, here is not detailed description.
2, Nmap (very powerful)
Yum Install Nmap-y
Baidu Encyclopedia:
http://baike.baidu.com/link?url=m4CyWoEThIRZZtDfDZmU0Ld-ZE_FhLSS6_FhNnXY9u2yG3WakMsMfr6q_sd8RJEnxdXTijtB9mYd2Qc284mr8a
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/84/24/wKiom1eG-ZfyhO6EAABahJ2xDVA037.png-wh_500x0-wm_3 -wmp_4-s_1005237723.png "title=" 1.png "alt=" Wkiom1eg-zfyho6eaabahj2xdva037.png-wh_50 "/>
It's better to write a shell script that combines a scheduled task to detect. The specific parameters are defined by themselves.
3, NC (particularly powerful )
Introduction: NetCat, the "Swiss Army Knife" reputation in the Web tools, has a version of Windows and Linux. Because it is short and functional, it is designed as a simple and reliable network tool that can transmit and write data via TCP or UDP protocol. At the same time, it is a network application debug parser, because it can create a variety of different types of network connections as needed.
Yum Install Nc-y
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/84/24/wKiom1eG-gvQFHgtAAAex6WgBSs223.png-wh_500x0-wm_3 -wmp_4-s_2872551074.png "title=" 1.png "alt=" Wkiom1eg-gvqfhgtaaaex6wgbss223.png-wh_50 "/>
It's better to write a shell script that combines a scheduled task to detect. The specific parameters are defined by themselves.
4. Curl
Yum Install Curl-y
Baidu Encyclopedia:
Http://baike.baidu.com/link?url=y3TuxwwOmJT6zWEILrl0yO8tBUlF6Agi4F9HsKj5Xci_5ncWBzpB4RdLdanGqceHqF064t_AUUnxAkra6z9DnK
Curl www.baidu.com
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/84/25/wKiom1eG_JDBebxfAACVgGukwJQ906.png-wh_500x0-wm_3 -wmp_4-s_3432236295.png "title=" 1.png "alt=" Wkiom1eg_jdbebxfaacvggukwjq906.png-wh_50 "/>
Get the page now!
5, SSH (Remote execution command)---Not recommended (of course, can also be remote with other tools)
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/84/25/wKiom1eG_IjSyp4RAABRcTECyF4919.png-wh_500x0-wm_3 -wmp_4-s_3681794746.png "title=" 2.png "alt=" Wkiom1eg_ijsyp4raabrctecyf4919.png-wh_50 "/>
Note: remote command via SSH is a bit overqualified, can be combined with their own actual use!
#6, automation-Great God Use
Ansible,saltstack,Puppet,python and so on!
Note: Automated deployment tools need to be very patient learning, combined with experience can be practical, and small environment is generally not used, of course, if interested can learn by themselves!
No matter what way, simple and practical is the hard truth!
This article from "Ningzhiyuan @it share" blog, declined reprint!
Use gadgets to detect if your site is working!