Why do characters mising in some graph?

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
luckystar
Posts: 30
Joined: Wed Jul 12, 2006 9:13 pm

Why do characters mising in some graph?

Post by luckystar »

Operating System: win2003 std sp1
Webserver: apache 2.0.58
Cacti: 0.8.6j
Cactid:0.8.6f
MySQL: 4.1
PHP: 4.4.2
RRDTool (Cygwin or Win32 version): 1.2.13
Net-SNMP: 5.3.0.1
Cygwin (cygwin1.dll version): 1.5.19
the graph has post in
http://forums.cacti.net/viewtopic.php?p=109149#109149
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

This is a problem I've experienced with older php versions. Upgrade to 5.2.3.

As for your permission problems, read my FAQ -- you need to reset NTFS security on your cacti files.
luckystar
Posts: 30
Joined: Wed Jul 12, 2006 9:13 pm

Post by luckystar »

i upgrade php to 5.2.3,the characters is ok.

but there is a new problem.

i can't get new data,graph can't display new data,i can create new graph,rrdtool says ok,but no data can upgrade

i find the cmdphp's time in log is not corrected.
Attachments
111.GIF
111.GIF (16.34 KiB) Viewed 3194 times
new graph
new graph
222.GIF (19.77 KiB) Viewed 3194 times
svchost.txt
php c:\windows\system32\svchost.exe display
(5.42 KiB) Downloaded 341 times
cactilog.txt
cacti debug log
(114.27 KiB) Downloaded 233 times
luckystar
Posts: 30
Joined: Wed Jul 12, 2006 9:13 pm

Post by luckystar »

i have pend a lot of time to check the configuration and directory competence.i can't find anything wrong
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

luckystar
Posts: 30
Joined: Wed Jul 12, 2006 9:13 pm

Post by luckystar »

what happen when upgrade the php?

CACTID: Poller can get the data,rrdtool update the rra file correctly,the rra files modify time has changed.
but the graph is wrong.

before i upgrade the php ,everything is ok
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) how did you upgrade php?
2) read my faq (link in signature) on how to fix the cmd.php logic bug.
luckystar
Posts: 30
Joined: Wed Jul 12, 2006 9:13 pm

Post by luckystar »

1.rename c:\php to c:\php4
2.upzip php-5.2.3-Win32.zip to c:\php
3.MIBDIRS=c:\php\extras\mibs
4.rename c:\php\php.ini.dist to php.ini
5.add/uncomment
extension_dir = c:\php\ext
extension=php_mysql.dll
extension=php_snmp.dll
extension=php_sockets.dll
cgi.force_redirect = 0
6.copy php.ini to c:\windows
7.Edit the httpd.conf file,del LoadModule php4_module c:\php\sapi\php4apache2.dll,past LoadModule php5_module c:\php\php5apache2.dll
8.restart apache

today
1.i add
register_argc_argv = On
safe_mode = Off
cgi.force_redirect = 0
upload_tmp_dir = "C:\PHP\Uploadtemp"
session.save_path="C:\PHP\Session"
to php.ini,and Change NTFS permissions on C:\PHP\Uploadtemp and C:\PHP\Session to grant Modify rights to the Users for only files in the directory.
2.i update cactid to 0.8.6i,rrdtool to 1.2.15
Cacti Version 0.8.6j
Plugin Architecture 1.1
Poller Type Cactid v0.8.6i
Server Info Windows NT 5.2
Web Server Apache/2.0.58 (Win32) PHP/5.2.3
PHP Version 5.2.3
PHP Extensions bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, apache2handler, gd, mysql, snmp, sockets
MySQL Version 4.1.20-community-nt
RRDTool Version 1.2.15
3.use Cacti-Security script to reset NTFS permissions.
4.change cmd.php line49 to if (version_compare("5.2.0", PHP_VERSION, ">=")) {

the problem is still no solved.

i find my debug log,\,there is a lot of "EBUG: SQL Exec: "delete from poller_output where....",is it correctly?
the cmdphp's time and cactid's time is not match,is it correctly?

thanks for your help!BSOD
Attachments
cacti2.txt
debug log
(151.31 KiB) Downloaded 326 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Have you patched cacti yet? If not, you must do so

2) Read through my installation guide (in signature).

3) run: php -m and paste the output.

4) Keep php.ini in your c:\php directory. remove all other instances of php.ini (and other php files) from your system. Looks like you told apache to use the php 4 dll?

5) I strongly suggest you use cmd.php until you get everything working -- then switch to cactid.
luckystar
Posts: 30
Joined: Wed Jul 12, 2006 9:13 pm

Post by luckystar »

1.i have patched cacti
2.i have read your installation guide,and check my configration
3.php -m
C:\Documents and Settings\Administrator>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
date
dom
filter
ftp
gd
hash
iconv
json
libxml
mysql
odbc
pcre
Reflection
session
SimpleXML
snmp
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zlib

[Zend Modules]
4.i have not pasted php 4 dll to windows folder,and i have remove php4 folder.
5.if i use cmd.php,the graph is still not correctly.
luckystar
Posts: 30
Joined: Wed Jul 12, 2006 9:13 pm

Post by luckystar »

i find some graphs are correctly,like cpu and cmts's modem count
some graphs are wrong ,like traffic

to the incorrectly graphs ,the rrd file size is to big.
Attachments
111.JPG
111.JPG (11.18 KiB) Viewed 3094 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Too big? Says who?

Read through http://docs.cacti.net/node/283 for the broken graphs.
luckystar
Posts: 30
Joined: Wed Jul 12, 2006 9:13 pm

Post by luckystar »

thanks,BSOD

i reinstall them all,everything is ok.
i spend too much time looking for error。
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests