Anti-counterfeiting code: Learning without thinking is blind, thinking and not learning is dangerous
Test disk alert scripts with Xshell
1. Open a centOS6.5 virtual machine and change the network adapter to bridge mode.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/88/68/wKioL1f3D17h77UQAACdB3_h76o470.jpg-wh_500x0-wm_3 -wmp_4-s_1516094923.jpg "title=" 0588d52e-864e-4a31-9764-178c2f4bb870.jpg "alt=" wkiol1f3d17h77uqaacdb3_ H76o470.jpg-wh_50 "/>
2, can normal internet.
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/88/68/wKioL1f3D5XAbe3dAAH_VB9vYuE879.png-wh_500x0-wm_3 -wmp_4-s_421285543.png "title=" R@x[}8a$p8[roj$k0{i6wm3.png "alt=" Wkiol1f3d5xabe3daah_vb9vyue879.png-wh_50 "/>
3, using Xshell (powerful security terminal simulation software, can be used in the Windows interface to access the remote systems of the server, so as to better achieve remote control purposes) connected to CentOS.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/88/6B/wKiom1f3EP7TMrHXAAB0p-0FH6c793.png-wh_500x0-wm_3 -wmp_4-s_791210428.png "title=" Bje (2xpu85$ot33v}[(~zam.png "alt=" Wkiom1f3ep7tmrhxaab0p-0fh6c793.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/88/68/wKioL1f3EQ2zU5D1AAASvPcqst4752.png-wh_500x0-wm_3 -wmp_4-s_2976013553.png "title=" ' R5 ' rnyeb}7m[@VV @}_5y) i.png "alt=" Wkiol1f3eq2zu5d1aaasvpcqst4752.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/88/6B/wKiom1f3ER2RzDTEAAAtJINi-HY535.png-wh_500x0-wm_3 -wmp_4-s_729760462.png "title=" {dmu@3@ @EOUI0X $AM 7$skl1.png "alt=" Wkiom1f3er2rzdteaaatjini-hy535.png-wh_50 "/>
After the connection is successful, synchronize, the effect is as follows
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/88/68/wKioL1f3EYKTpXSWAAKCtSNLiqM842.jpg-wh_500x0-wm_3 -wmp_4-s_928028834.jpg "title=" 04x8) gze5qs0r8tad5w_n$r.jpg "alt=" Wkiol1f3eyktpxswaakctsnliqm842.jpg-wh_50 "/>
4, import the disk alarm script to start testing (here the test set is to reach 8% alarm)
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/88/6B/wKiom1f3EbbBgKrXAAAYN0Qxx-Q613.png-wh_500x0-wm_3 -wmp_4-s_3244594443.png "title=" L0BF "0N) o8%22wx ' daowz5.png" alt= "Wkiom1f3ebbbgkrxaaayn0qxx-q613.png-wh_50"/>
5, execute the script, has received an alarm message
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/88/68/wKioL1f3EmfjNTcTAAHki1Wnlw4779.jpg-wh_500x0-wm_3 -wmp_4-s_1291100191.jpg "title=" 9U) QK) @Z8 @845yucg06yvhl.jpg "alt=" Wkiol1f3emfjntctaahki1wnlw4779.jpg-wh_50 "/>
6, open the QQ mailbox, check the mail, follow the prompts to do the corresponding settings
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/88/68/wKioL1f3EnvSWm-SAADze6YaSGs257.jpg-wh_500x0-wm_3 -wmp_4-s_4076233888.jpg "title=" f]vh72]cewi[2gpg%x22pqf.jpg "alt=" Wkiol1f3envswm-saadze6yasgs257.jpg-wh_50 "/>
Thank you for watching, hope to help you sincerely!
This article from "A Candle" blog, declined reprint!
Shell scripts for disk alarms