使用cacti时常见的问题集

上传人:第*** 文档编号:31389521 上传时间:2018-02-07 格式:DOC 页数:9 大小:29KB
返回 下载 相关 举报
使用cacti时常见的问题集_第1页
第1页 / 共9页
使用cacti时常见的问题集_第2页
第2页 / 共9页
使用cacti时常见的问题集_第3页
第3页 / 共9页
使用cacti时常见的问题集_第4页
第4页 / 共9页
使用cacti时常见的问题集_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《使用cacti时常见的问题集》由会员分享,可在线阅读,更多相关《使用cacti时常见的问题集(9页珍藏版)》请在金锄头文库上搜索。

1、以前自己曾经解决的,当时自己记住了,过了好长时间,重新在新的机器上安装 cacti的时候,却忘记提前修改,导致一些不必要的麻烦。帖出来希望对自己或者对大家有帮助1、一般说来,图片的流量统计描述都是 |host_description| - Traffic - |query_ifName| 按照这个形式来描述的,对于华为的设备,Gi 显示成GigabitEthernet,可能导致后面的模块号,端口好无法显示。如 GigabitEthernet4/3/2显示成 GigabitEthernet,解决办法:Console - Settings - Visual - Maximum Field Leng

2、th: 默认 15,我修改成 30就 OK了。The maximum number of characters to display for a data query field.2、对于 Traffic 大于 800Mbits/s的无法显示问题,在创建 graph前修改 Data Templates - Interface Traffic - 1: traffic_in - Maximum Value Use Per-Data Source Value 默认是 100000000 后面再添 几个 0就 OK了,同样 2: traffic_out 也要修改哦,最好在使用 new graph创建

3、新的 graph之前修改后,否则之后修改会有一定的麻烦,甚至无法正常工作。3、以前都是直接下载 tar.gz源代码包安装的,按照 readme就可以搞定一切。目前在 FC4下可以直接通过 yum instal cacti就安装完成,安装后却不知道怎么使用,也不知道安装到什么地方了,怎么让 cacti工作。首先了解 rpm包安装了那些有用的文件:rpm程序把 cacit的 php文件放到/usr/share/cacti 目录下。在/etc/httpd/conf.d/cacit.conf=# Cacti: An rrd based graphing tool#Alias /cacti /usr/s

4、hare/cactiOrder Deny,AllowDeny from allAllow from 127.0.0.1=在 apache的配置里面只允许 localhost访问/cacti 这个虚拟目录。rootelm # cd /etc/cron.drootelm cron.d# more cacti*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php /dev/null 2&1rootelm cron.d#定期执行程序的 cron配置。下面介绍如何让 cacti工作:首先,配置数据库:rootelm local# cd /us

5、r/share/doc/cacti-0.8.6h/rootelm cacti-0.8.6h# lscacti.sql docs LICENSE READMErootelm cacti-0.8.6h# mysqlWelcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 312 to server version: 4.1.16Type help; or h for help. Type c to clear the buffer.mysql create database cacti_te

6、st;Query OK, 1 row affected (0.12 sec)mysql qByerootelm cacti-0.8.6h# mysql cacti_test 根据自己的需求修改。OK,打开 Firefox在地址栏输入: http:/localhost/cacti 进行配置。默认用户名密码:admin:admin5、如果在配置完毕后可以生成 rrd文件,且里面有数据,但是在浏览器上无法看到 png图片。现查看 apache的 log 如果出现:=Thu Feb 09 15:12:24 2006 error client 127.0.0.1 File does not exist:

7、 /var/www/html/favicon.icoERROR: opening /usr/share/cacti/rra/localhost_mem_buffers_3.rrd: Permission deniedERROR: opening /usr/share/cacti/rra/localhost_mem_buffers_3.rrd: Permission deniedERROR: opening /usr/share/cacti/rra/localhost_mem_buffers_3.rrd: Permission deniedERROR: opening /usr/share/ca

8、cti/rra/localhost_mem_buffers_3.rrd: Permission deniedERROR: opening /usr/share/cacti/rra/localhost_mem_buffers_3.rrd: Permission deniedERROR: opening /usr/share/cacti/rra/localhost_mem_buffers_3.rrd: Permission deniedERROR: opening /usr/share/cacti/rra/localhost_mem_buffers_3.rrd: Permission denied

9、ERROR: opening /usr/share/cacti/rra/localhost_mem_buffers_3.rrd: Permission denied=rootelm # cd /usr/share/cacti/rrarootelm rra# ls -lat总用量 572-rw-r-r- 1 cacti cacti 141484 2月 9 19:15 localhost_load_1min_5.rrd-rw-r-r- 1 cacti cacti 47836 2月 9 19:15 localhost_mem_buffers_3.rrd-rw-r-r- 1 cacti cacti 4

10、7836 2月 9 19:15 localhost_mem_swap_4.rrd-rw-r-r- 1 cacti cacti 47836 2月 9 19:15 localhost_proc_7.rrd-rw-r-r- 1 cacti cacti 47836 2月 9 19:15 localhost_users_6.rrd-rw-r-r- 1 cacti cacti 94660 2月 9 19:15 tplink_input_13.rrd-rw-r-r- 1 cacti cacti 94660 2月 9 19:15 tplink_input_16.rrddrwxr-xr-x 2 cacti ro

11、ot 4096 2月 9 18:35 .drwxr-xr-x 4 root root 4096 2月 9 14:30 .rootelm rra#Other也有 R权限,那么请把机器的 SElinux关闭,目前我不知道其他办法。rootelm rra# cd /etc/selinux/rootelm selinux# more config# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux securi

12、ty policy is enforced.# permissive - SELinux prints warnings instead of enforcing.# disabled - SELinux is fully disabled.SELINUX=disabled# SELINUXTYPE= type of policy in use. Possible values are:# targeted - Only targeted network daemons are protected.# strict - Full SELinux protection.SELINUXTYPE=targetedrootelm selinux#注意红色部分,重新启动机器后就 OK了。6、我只想显示整数怎么办?修改 Graph Templates下的 Graph Template Items的 GPRINT Type,改成Exact Number7、我原来使用的是 rrdtool-1.0.x 升级到 1.2.x 后部分图像无法显示(Zoom)修改 Configuration - Settings - RRDTool Utility Version - 1.2.x

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号