Client monitoring:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "alt=" * "style=" Background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;/> The three ways to monitor clients described earlier in this demo:
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "alt=" * "style=" Background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;"/> Way One: snmp650) this.width=650; src= "/e/ U261/themes/default/images/spacer.gif "alt=" * "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") No-repeat center;border:1px solid #ddd; "/>
Service-Side ip:192.168.100.133
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "alt=" * "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;"/> client ip:192.168.100.132
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/2E/E6/wKiom1OdnqjiZZbtAABK9h608a4856.jpg "title=" 1.jpg " alt= "Wkiom1odnqjizzbtaabk9h608a4856.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/2E/E7/wKioL1OdnorBj6qkAABWhwtNzSM025.jpg "title=" 1.jpg " alt= "Wkiol1odnorbj6qkaabwhwtnzsm025.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/2E/E7/wKioL1OdnpmwCfJ_AAA3266vAQo296.jpg "title=" 1.jpg " alt= "Wkiol1odnpmwcfj_aaa3266vaqo296.jpg"/>
Restart Client snmpd
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "alt=" * "style=" Background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;"/> The server-side SNMP command gets the associated value of the client 650) this.width=650, "src="/e/u261/themes/default/images/spacer.gif "alt=" * "style=" Background:url ("/E/U261/LANG/ZH-CN /images/localimage.png ") no-repeat center;border:1px solid #ddd;"/>
For example, this gets the load value for the client for 1 minutes and 5 minutes for 15 minutes
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/2E/E6/wKiom1OdnzOCqQchAAEQvwkrhIM663.jpg "title=" 1.jpg " alt= "Wkiom1odnzocqqchaaeqvwkrhim663.jpg"/>
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "alt=" * "style=" Background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;"/>650) this.width=650; "Src="/e/u261/themes /default/images/spacer.gif "alt=" * "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "/> on this basis, we can use the Nagios plugin
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/2E/E6/wKiom1Odn0mzgtrOAACLq2VI85Q780.jpg "title=" 1.jpg " alt= "Wkiom1odn0mzgtroaaclq2vi85q780.jpg"/>
Way Two: Nrpe ( take the test disk command here for example )
this method, in order to pass the argument, we have added the previous compile argument ; So we can do the parameters on the server side,
Like what:
Modify the client's nrpe.conf
Open Allow pass parameters
Vim/usr/local/nagios/etc/nrpe.cfgdont_blame_nrpe=1
edit file, allow server
Vim/ usr /local/ Nagios / etc / nrpe.cfg
Allowed_hosts=192.168.100.190command[check_disk]=/usr/local/nagios/libexec/check_disk-w $ARG 1$-C $ARG 2$-P $ARG 3$
Start Nrpe
/usr/local/Nagios/bin/Nrpe- C/usr/local/Nagios/etc/nrpe.cfg- D
On the server side test:
[email protected]libexec]$. Check_nrpe - H 192.168.100.134-c Check_disk -A "20%" "10% " "/Boot"
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/2E/E7/wKioL1Odn5zhhYqPAADWL6DrLAc420.jpg "title=" 1.jpg " alt= "Wkiol1odn5zhhyqpaadwl6drlac420.jpg"/>
We can see that at the service side, we control our target requirements at random.
Way Three: SSH
Write your own script to get it;
Mode four: Write a Agent . socket acquisition;
The main method of access is the above four ways
This article is from the "LEO_SARY_LANSGG" blog, make sure to keep this source http://lansgg.blog.51cto.com/5675165/1426719