linux安装cacti监控文档
配置snmp:vim /etc/snmp/snmpd.conf更改 1、com2sec notConfigUserdefault public 改为:com2sec notConfigUser 127.0.0.1 public 2、accessnotConfigGroup "" any noauth exactsystemviewnone none 改为:accessnotConfigGroup "" any noauth exactallnonenone 3、#view all included.1 80 将前面的 # 注释 去掉。保存退出 :wqservice snmpd restarttar zxvf rrdtool-1.3.9.tar.gzcd rrdtool-1.3.9./configure --prefix=/user/web/rrdtool --disable-tcl --disable-pythonMakemake installcd ../ln -s /user/web/rrdtool/bin/rrdtool/usr/bin/rrdtoolln -s /user/web/rrdtool/bin/rrdupdate /usr/bin/rrdupdateln -s /user/web/rrdtool/bin/rrdcgi /usr/bin/rrdcgicd /user/softtar zxvf cacti-0.8.7d-cn-utf8.gzmv cacti-0.8.7d-cn-utf8 /user/web/html/cacti/user/web/mysql/bin/mysql -uroot -pJackHuang2009登入执行:create database cacti;退出执行:/user/web/mysql/bin/mysql -uroot -pJackHuang2009 cacti < /user/web/html/cacti/cacti.sqlchown -R nginx:nginx /user/web/html/cactichmod -R 777 /user/web/html/cacti/rrachmod -R 777 /user/web/html/cacti/logvim /user/web/html/cacti/include/config.php填写自己设置的连接数据库的帐户密码 加入crontab -u root -e */5 * * * * /user/web/php/bin/php /user/web/html/cacti/poller.php > /dev/null 2>&13.4 cacti监控nginx服务nginx编译时允许http_stub_status_module在conf文件添加如下:# vi /user/web/nginx/conf/nginx.conflocation /nginx_status {stub_status on;access_log off;}重启动killall nginx/user/web/nginx/sbin/nginxtar zxvf cacti-nginx.tar.gzcp cacti-nginx/get_nginx_socket_status.pl /user/web/html/cacti/scripts/cp cacti-nginx/get_nginx_clients_status.pl /user/web/html/cacti/scripts/chmod 755 /user/web/html/cacti/scripts/get_nginx*在cacti管理面板导入:cacti_graph_template_nginx_clients_stat.xmlcacti_graph_template_nginx_sockets_stat.xml检测插件:/user/web/html/cacti/scripts/get_nginx_clients_status.pl http://127.0.0.1/nginx_status3.5 cacti监控apache服务对Apache Server Status的启用对Apache的状态管理的模块是LoadModule status_module modules/mod_status.so,所以这个需要有然后打开下面的配置ExtendedStatus On配置Apache Server Status的权限<location /server-status> SetHandler server-status Order Deny,Allow Allow from 127.0.0.1</location> 沙发!沙发! 我喜欢孩子,更喜欢造孩子的过程! 所有的男人生来平等,结婚的除外。 路过,学习下 如果跟导师讲不清楚,那么就把他搞胡涂吧! 支持一下:lol
页:
[1]