被cacti监控主机需要进行的一些配置

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;
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值