cacti在windows2003下安装后不出图
本人服务器操作系统为windows sever 2003,cacti-0.8.7b,net-snmp-5.4.0-1.win32,rrdtool-1.2.15-win32,mysql,php5,所有操作均调试通过。
cacti就是不出图。以下为apache log片段:
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_5min_cpu_8.rrd': No such file or directory
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_users_9.rrd': No such file or directory
ERROR: invalid text property format
ERROR: invalid text property format
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_proc_10.rrd': No such file or directory
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_mem_buffers_3.rrd': No such file or directory
ERROR: invalid text property format
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_mem_swap_4.rrd': No such file or directory
ERROR: invalid text property format
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_cache_hits_13.rrd': No such file or directory
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_cache_checks_12.rrd': No such file or directory
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_snmp_oid_11.rrd': No such file or directory
ERROR: invalid text property format
ERROR: invalid text property format
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_load_1min_5.rrd': No such file or directory
ERROR: opening 'C:/AppServ/www/cacti/rra/localhost_users_6.rrd': No such file or directory
ERROR: invalid text property format
ERROR: invalid text property format
ERROR: reading the cookie off C:/AppServ/www/cacti/rra/localhost_proc_7.rrd faild
ERROR: invalid text property format
到C:/AppServ/www/cacti/rra/找,确实是没有上边的文件。也就是没有画图。
进而怀疑是rrdtool的问题。下载了最新的rrdtool程序,上边写支持2003,还是不行。
怀疑是net-snmp的问题。
我找到了snmpconf.bat文件内容,如下:
@echo off
set MYPERLPROGRAM=C:\net-snmp\bin\snmpconf
perl -v > NUL 2>&1
if ERRORLEVEL 1 goto no_perl
rem Perl found!
if "%OS%"=="Windows_nt" goto winnt
perl "%MYPERLPROGRAM%" %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 %11 %12 %13 %14 %15
goto end
:winnt
perl "%MYPERLPROGRAM%" %*
goto end
:no_perl
echo %MYPERLPROGRAM% requires Perl to run.
echo .
echo A version of Perl for Windows is available from
echo http://www.activestate.com/Products/ActivePerl
echo .
echo Please install Perl and run this program again.
echo .
pause
:end
运行后,提示如下:
C:\net-snmp\bin>snmpconf
C:\net-snmp\bin\snmpconf requires Perl to run.
.
A version of Perl for Windows is available from
http://www.activestate.com/Products/ActivePerl
.
Please install Perl and run this program again.
.
是不是net-snmp不支持win2003?还是别的什么原因?有没有高手可以指点指点!小弟多谢!
------解决方案--------------------
帮顶
------解决方案--------------------
有没有在计划任务里设定定时程序啊,需要在计划任务中定时启动一个程序去生成图片的