http://www.jiunile.com/%E8%A2%ABcacti%E7%9B%91%E6%8E%A7%E4%B8%BB%E6%9C%BA%E9%9C%80%E8%A6%81%E8%BF%9B%E8%A1%8C%E7%9A%84%E4%B8%80%E4%BA%9B%E9%85%8D%E7%BD%AE.html
1.SNMP
停止:killall snmpd
添加用户:./net-snmp-config --create-snmpv3-user -ro -a 密码 -A MD5 用户名
启动:/usr/local/snmp/sbin/snmpd
进行测试:./snmpwalk -v3 -u 用户名 -l auth -a MD5 -A 密码 127.0.0.1 if
开放端口:iptables -A INPUT -i eth0 -p udp -s 授权的IP地址 --dport 161 -j ACCEPT
2.MySQL
GRANT PROCESS ON *.* TO 用户名@'监控主机IP' IDENTIFIED by '密码';
flush privileges;
开放端口:system-config-securitylevel-tui
3.Apache
vi /usr/local/apache2/conf/extra/jiankong.conf
Listen 88
ExtendedStatus On
<location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from 允许的IP地址
</location>
<VirtualHost IP:88>
DocumentRoot "/xtjg/vhosts/status"
ServerName IP:88
CustomLog "logs/status-access_log" custom_xupeng
<Directory "/xtjg/vhosts/status">
Options FollowSymLinks
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
开放端口: system-config-securitylevel-tui
4.Nginx
location /ns {
stub_status on;
access_log off;
allow 允许的IP地址;
deny all;
}