cacti 添加数据源报错
cacti安装完成后,在添加数据源时 报错 ,切无.rra 文件生成 。求各位大神帮忙 {:6_440:}以下为报错截图 :
报什么错? 日志贴出来 这个脚本是你自己添加的吧? 不是,本身系统里 就有 我只是给添加上。以下是数据源调试模式:数据源调试
/usr/bin/rrdtool create \/usr/local/nginx/html/rra/1379/27464.rrd \--step 300\DS:cpu_nice:COUNTER:600:0:5000000000 \RRA:AVERAGE:0.5:1:500 \RRA:AVERAGE:0.5:1:600 \RRA:AVERAGE:0.5:6:700 \RRA:AVERAGE:0.5:24:775 \RRA:AVERAGE:0.5:288:797 \RRA:MAX:0.5:1:500 \RRA:MAX:0.5:1:600 \RRA:MAX:0.5:6:700 \RRA:MAX:0.5:24:775 \RRA:MAX:0.5:288:797 \
但是在/usr/local/nginx/html/rra/1379/中没有生产27464.rrd 文件以下是文件夹属性及权限[root@cu-omc2 idcmonitor]# cd /usr/local/nginx/html/rra# ll总用量 620drwxrwxrwx 2 idcmonitor www4096 6月15 19:19 1379-rwxrwxrwx 1 idcmonitor www 56408 6月12 14:46 localhost_cpu_system_27442.rrd-rwxrwxrwx 1 idcmonitor www 56408 6月12 14:31 localhost_cpu_user_27443.rrd-rwxrwxrwx 1 idcmonitor www 94816 6月16 13:52 localhost_hdd_free_27454.rrd-rwxrwxrwx 1 idcmonitor www 47992 6月16 13:53 localhost_mem_buffers_27435.rrd-rwxrwxrwx 1 idcmonitor www 47992 6月16 13:51 localhost_mem_buffers_27456.rrd-rwxrwxrwx 1 idcmonitor www 56408 6月16 13:52 localhost_mem_cache_27457.rrd-rwxrwxrwx 1 idcmonitor www 47992 6月12 15:35 localhost_mem_swap_27434.rrd-rwxrwxrwx 1 idcmonitor www 47992 6月16 13:54 localhost_mem_swap_27436.rrd-rwxrwxrwx 1 idcmonitor www 47992 6月12 14:46 localhost_udpindatagrams_27437.rrd-rwxrwxrwx 1 idcmonitor www 47992 6月12 14:31 localhost_udpinerrors_27438.rrd-rwxrwxrwx 1 idcmonitor www 47992 6月16 13:55 localhost_users_27445.rrd-rwxrwxrwx 1 idcmonitor www 0 6月12 16:33 Rebuild#
# # cd 1379/# ll总用量 96-rwxrwxrwx 1 idcmonitor www 47992 6月16 13:52 27458.rrd-rwxrwxrwx 1 idcmonitor www 47992 6月16 13:56 27466.rrd#
以下是错误日志:
06/16/2015 01:57:01 PM - SPINE: Poller Host[1379] ERROR: Empty result : 'perl /usr/local/nginx/html/scripts/linux_memory.pl '
06/16/2015 01:57:01 PM - SPINE: Poller WARNING: Host[1379] TH DataQuery Reindex Check FAILED: No SNMP Session. If not an SNMP host, don't use Uptime Goes Backwards!
06/16/2015 01:57:01 PM - SPINE: Poller WARNING: Host[1379] TH DataQuery Reindex Check FAILED: No SNMP Session. If not an SNMP host, don't use Uptime Goes Backwards!
06/16/2015 01:57:01 PM - SPINE: Poller WARNING: Host[1379] TH DataQuery Reindex Check FAILED: No SNMP Session. If not an SNMP host, don't use Uptime Goes Backwards!
06/16/2015 01:57:01 PM - SPINE: Poller WARNING: Host[1379] TH DataQuery Reindex Check FAILED: No SNMP Session. If not an SNMP host, don't use Uptime Goes Backwards!
06/16/2015 01:57:01 PM - SPINE: Poller WARNING: Host[1379] TH DataQuery Reindex Check FAILED: No SNMP Session. If not an SNMP host, don't use Uptime Goes Backwards!
06/16/2015 01:57:01 PM - SPINE: Poller WARNING: Host[1379] TH DataQuery Reindex Check FAILED: No SNMP Session. If not an SNMP host, don't use Uptime Goes Backwards!
2015年06月16日 13:56:01 PM - SYSTEM SYSLOG STATS:Time:0.04 Deletes:0 Incoming:0 Removes:0 XFers:0 Alerts:0 Alarms:0 Reports:0
perl /usr/local/nginx/html/scripts/linux_memory.pl
执行以下看能不能执行,不可以请安装perl 不可以执行, 以下为提示信息以及 perl 版本
# perl /usr/local/nginx/html/scripts/linux_memory.pl
用法: grep [选项]... PATTERN ...
试用‘grep --help’来获得更多信息。
# perl -version
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
#
还有就是我之前成功添加过两个数据源。只是不知道为什么有的可以添加,有的不能添加 perl /usr/local/nginx/html/scripts/linux_memory.pl
想办法让这个能执行就没问题了。 还有我看网上都说在rra文件下有log文件但我这没有
# ll
总用量 620
drwxrwxrwx 2 idcmonitor www4096 6月15 19:19 1379
-rwxrwxrwx 1 idcmonitor www 56408 6月12 14:46 localhost_cpu_system_27442.rrd
-rwxrwxrwx 1 idcmonitor www 56408 6月12 14:31 localhost_cpu_user_27443.rrd
-rwxrwxrwx 1 idcmonitor www 94816 6月16 15:32 localhost_hdd_free_27454.rrd
-rwxrwxrwx 1 idcmonitor www 47992 6月16 15:33 localhost_mem_buffers_27435.rrd
-rwxrwxrwx 1 idcmonitor www 47992 6月16 15:31 localhost_mem_buffers_27456.rrd
-rwxrwxrwx 1 idcmonitor www 56408 6月16 15:32 localhost_mem_cache_27457.rrd
-rwxrwxrwx 1 idcmonitor www 47992 6月12 15:35 localhost_mem_swap_27434.rrd
-rwxrwxrwx 1 idcmonitor www 47992 6月16 15:34 localhost_mem_swap_27436.rrd
-rwxrwxrwx 1 idcmonitor www 47992 6月12 14:46 localhost_udpindatagrams_27437.rrd
-rwxrwxrwx 1 idcmonitor www 47992 6月12 14:31 localhost_udpinerrors_27438.rrd
-rwxrwxrwx 1 idcmonitor www 47992 6月16 15:30 localhost_users_27445.rrd
-rwxrwxrwx 1 idcmonitor www 0 6月12 16:33 Rebuild
# 执行 spine时也会报错 是什么问题?
# /usr/local/spine/bin/spine
06/16/2015 03:50:41 PM - SPINE: Poller FATAL: Unable to read configuration file! (Spine init) spine的配置文件没配置啊
页:
[1]