免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234下一页
最近访问板块 发新帖
查看: 16041 | 回复: 35
打印 上一主题 下一主题

紧急求助:cacti抓不到数据的问题 [复制链接]

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
跳转到指定楼层
[收藏(0)] [报告]
发表于 2007-07-13 09:11 |只看该作者 |正序浏览
1可用积分
原来的一台PC机做的监控整网交换机流量的服务器,已经正常运行一年多了,最近硬盘出点问题,没办法重新装,可现在死活不对了,本机的倒是可以监控到,但是交换机的却怎么也不对了。
看日志提示的是:POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
在网上google了一下,该检查的也都查了,似乎都没问题,网络应该也不会有问题的,我ssh正常,在它上面ports安装软件也都没事,怎么就死活抓不到交换机的数据?交换机上的ip限制什么的也都是针对这个ip的,按说不应该的,哪位知道是怎么回事?

最新进展:
07/13/2007 02:20:00 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
07/13/2007 02:20:01 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid.  Partial Result:
07/13/2007 02:20:01 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid.  Partial Result:
07/13/2007 02:20:03 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
07/13/2007 02:20:04 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
07/13/2007 02:20:05 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
07/13/2007 02:20:06 PM - SYSTEM STATS: Time:6.3927 Method:cmd.php Processes:10 Threads:N/A Hosts:6 HostsPerProcess:1 DataSources:133 RRDsProcessed:69

Description** Status Hostname Current (ms) Average (ms) Availability  
10.0.0.1-Cisco6509  Up 10.0.0.1 8.39 22.73 100%   
10.0.0.2-xxzxsilou  Unknown 10.0.0.2 0 0 100%   
10.0.0.4-lqxingzhenglou  Unknown 10.0.0.4 0 0 100%   
10.0.0.99-xxzxbangong  Unknown 10.0.0.99 0 0 100%   
Localhost  Up 127.0.0.1 4.69 4.72 100%  

有的能抓到,有的却死活不行,这是怎么搞的?

[ 本帖最后由 剑心通明 于 2007-7-31 18:02 编辑 ]

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
35 [报告]
发表于 2007-07-31 18:06 |只看该作者
模板要选用ucd/net snmp,我以前用的Cisco Router的模板,用了很长时间都没问题的,最近不行了。

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
34 [报告]
发表于 2007-07-31 18:05 |只看该作者

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
33 [报告]
发表于 2007-07-26 18:58 |只看该作者
安装rrdtool
cd /usr/ports/net/rrdtool
make install clean;
安装net-snmp
cd /usr/ports/net-mgmt/net-snmp
make install clean;

ee /etc/rc.conf

snmpd_enable="YES"
snmpd_flags="-a /var/run/snmpd.pid"
snmptrapd_enable="YES"
snmptrapd_flags="-a -p /var/run/snmptrapd.pid"

mkdir /usr/local/etc/snmp
ee /usr/local/etc/snmp/snmpd.conf

##############################
syslocation  somewhere
syscontact  Me <me@somewhere.org>
sysservices 77
rocommunity jxtm
load 12 12 12
###############################


安装cacti  

cd /usr/ports/net/cacti
make install clean ;

cd /usr/ports/net/cactid
make install clean;

数据库准备工作  
# mysql -u root –p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 130 to server version: 4.1.15-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database cacti;
Query OK, 1 row affected (0.00 sec)
mysql> grant all on cacti.* to root;
Query OK, 0 rows affected (0.01 sec)
mysql> grant all on cacti.* to root@localhost;
Query OK, 0 rows affected (0.01 sec)
mysql> grant all on cacti.* to cacti;
Query OK, 0 rows affected (0.00 sec)
mysql> grant all on cacti.* to cacti@localhost;
Query OK, 0 rows affected (0.01 sec)
mysql> set password for cacti@localhost=password('****');
Query OK, 0 rows affected (0.00 sec)
mysql> exit

导入数据库
cp -R /usr/local/share/cacti /usr/
cd /usr/cacti
chown -R cacti:cacti rra/
chown -R cacti:cacti log/
cd scripts
chown cacti:cacti *
cd..
mysql -u root –p***** cacti < cacti.sql

ee /usr/cacti/include/db-settings.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "*****";
核对以上几项是否正确
crontab -u cacti –e
为cactiuser用户加入
*/5 * * * * /usr/local/bin/php /usr/www/cacti/poller.php

这样安装有什么问题吗?以前就这么干都可以的

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
32 [报告]
发表于 2007-07-25 09:26 |只看该作者
原帖由 itxiaofei 于 2007-7-15 13:52 发表
我用0.8.6j也是出现这样的情况,死活都弄不好
用0.8.6i就完全没问题

我晕了,我换到了0.8.6i了也不行

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
31 [报告]
发表于 2007-07-15 16:16 |只看该作者
原帖由 itxiaofei 于 2007-7-15 13:52 发表
我用0.8.6j也是出现这样的情况,死活都弄不好
用0.8.6i就完全没问题

换低版本?

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
30 [报告]
发表于 2007-07-15 09:24 |只看该作者
到cacti的论坛去问了,看有人遇到过这样的情况没

论坛徽章:
0
29 [报告]
发表于 2007-07-14 17:40 |只看该作者
卷土重来!

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
28 [报告]
发表于 2007-07-14 09:37 |只看该作者
用debug模式看一个图,提示:
RRDTool Command:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="10.0.0.099-xxzxbangong - Traffic - Ethernet1/0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
AREA:#00CF00:"Inbound"  \
GPRINT::LAST:" Current\:%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT::MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:#002A97:"Outbound"  \
GPRINT::LAST:"Current\:%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT::MAX:"Maximum\:%8.2lf %s"
RRDTool Says:

ERROR: parameter '#00CF00' does not represent a number in line AREA:#00CF00:Inbound

论坛徽章:
2
丑牛
日期:2013-09-29 09:47:222015七夕节徽章
日期:2015-08-21 11:06:17
27 [报告]
发表于 2007-07-14 08:35 |只看该作者
原帖由 geyun616 于 2007-7-13 19:48 发表

呵呵,有没试过把不能采集的节点删了重新加?

删除、添加好几次了

论坛徽章:
0
26 [报告]
发表于 2007-07-13 19:48 |只看该作者
原帖由 剑心通明 于 2007-7-13 14:27 发表
07/13/2007 02:20:00 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
07/13/2007 02:20:01 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD  ...

呵呵,有没试过把不能采集的节点删了重新加?
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP