Broken graphic, i dont known what wrong, can't see graphic

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

Moderators: Developers, Moderators

Post Reply
moonzar
Posts: 9
Joined: Fri Dec 09, 2005 3:00 pm

Broken graphic, i dont known what wrong, can't see graphic

Post by moonzar »

Hello,

I have follow the guide for the installation provided by BSOD2600.

I'm using...

Windows 2000
IIS 5
MySQL : mysql-essential-4.1.15-win32.msi
PHP : 4.4.0
cacitd : cacti-cactid-0.8.6f-1.zip
cacit : cacti-0.8.6g.zip
rddtool : rrdtool-cygwin-1.2.11.zip
net-snmp : net-snmp-5.2.1.2-1.win32.exe

Here is my log from cacti... as you see no error. I'm trying to make a graph of the traffic in and out of the network card of the server. I have read hundread of messages and work about 8 hours on this.

All is working fine but when i try to see a graph.. i have a nice image broken with a red x. I have search on the server disk for png and i can't find one.

Help please...

MoonZar

cacti.log

12/09/2005 07:23:27 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q d:/cacti/cmd.php 0 2]
12/09/2005 07:23:28 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
12/09/2005 07:23:28 PM - PHPSVR: Poller[0] DEBUG: GETCWD: d:/cacti
12/09/2005 07:23:28 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: d:/cacti
12/09/2005 07:23:28 PM - PHPSVR: Poller[0] DEBUG: FILENM: d:\cacti\script_server.php
12/09/2005 07:23:28 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
12/09/2005 07:23:28 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
12/09/2005 07:23:28 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
12/09/2005 07:23:28 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '192.168.1.5'.
12/09/2005 07:23:28 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: 192.168.1.5, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16777219, output: 31928169
12/09/2005 07:23:28 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: 192.168.1.5, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.16777219, output: 64031309
12/09/2005 07:23:28 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
12/09/2005 07:23:28 PM - CMDPHP: Poller[0] Time: 0.7682 s, Theads: N/A, Hosts: 1
12/09/2005 07:23:28 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe update D:\cacti\rra\maximus_traffic_in_9.rrd --template traffic_in:traffic_out 1134174207:31928169:64031309
12/09/2005 07:23:28 PM - SYSTEM STATS: Time:1.1252 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:2 RRDsProcessed:1
12/09/2005 07:23:28 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q d:/cacti/poller_commands.php]
12/09/2005 07:23:28 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/php/php.exe, ARGS: -q d:/cacti/poller_export.php]

If i run manually the poller.php from a command prompt

D:\cacti>php poller.php
Content-type: text/html
X-Powered-By: PHP/4.4.0
Set-Cookie: PHPSESSID=fce122f7bfe371ec186fdc519674a3cd; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

12/09/2005 07:34:39 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q d:/cacti/cmd.php 0 2]
Waiting on 1/1 pollers.
12/09/2005 07:34:41 PM - POLLER: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe upd
ate D:\cacti\rra\maximus_traffic_in_9.rrd --template traffic_in:traffic_out 1134
174880:45071555:64624695
OK u:0.01 s:0.05 r:0.88
12/09/2005 07:34:41 PM - SYSTEM STATS: Time:1.0928 Method:cmd.php Processes:1 Th
reads:N/A Hosts:2 HostsPerProcess:2 DataSources:2 RRDsProcessed:1
12/09/2005 07:34:41 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q D:/cacti/poller_commands.php]
12/09/2005 07:34:41 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Proces
s [CMD: c:/php/php.exe, ARGS: -q D:/cacti/poller_export.php]
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) rrdtool gernerates the png files on the fly, so they are not cached.
2) Are the rrd files being updated every 5 minutes? If not, then you have a permission problem on that folder, which is why they're not being updated. If the rrd files are being updated, then you have a permission problem with cmd.exe and/or rrdtool.exe, with your IIS_USR / IIS_WPG users not having read/execute rights.
moonzar
Posts: 9
Joined: Fri Dec 09, 2005 3:00 pm

Permissions

Post by moonzar »

The rrd files work fine every 5 minutes with the task schedule. So i guess this a permission issue.

According to your document...

Give the IUSR_XXXX and IIS_WPG users read & execute permissions to the file %windir%\system32\cmd.exe. They will also need read permissions on <web root>/cacti/ and its subfolders.

Well i have put right to everyone and IUSR_XXXX full control to cmd.exe, rrdtool.exe and the cacti files and this dont resolve the issue.

BTW, IIS_WPG group account is only for IIS 6 and windows 2003 i think.

Thanks,

MoonZar
Last edited by moonzar on Fri Dec 09, 2005 11:45 pm, edited 1 time in total.
moonzar
Posts: 9
Joined: Fri Dec 09, 2005 3:00 pm

Database

Post by moonzar »

1) SNMP - Interface Statistics (Verbose Query) Uptime Goes Backwards Success [14 Items, 2 Rows]

My snmp seem to work fine also, providing the information of my network card.

Also with my other test, the log state that he's using rddtool.exe to build the png, but i still have nothing in cacti web interface :

12/09/2005 11:41:50 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-604800 --end=-1800 --title="maximus - Traffic - x.x.x.x (3Com 3C90x Ethe)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" --slope-mode DEF:a="E\:/Site/cacti/rra/maximus_traffic_in_8.rrd":traffic_in:AVERAGE DEF:b="E\:/Site/cacti/rra/maximus_traffic_in_8.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
12/09/2005 11:41:50 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="maximus - Traffic - x.x.x.x(3Com 3C90x Ethe)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" --slope-mode DEF:a="E\:/Site/cacti/rra/maximus_traffic_in_8.rrd":traffic_in:AVERAGE DEF:b="E\:/Site/cacti/rra/maximus_traffic_in_8.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
12/09/2005 11:41:52 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-2678400 --end=-7200 --title="maximus - Traffic - x.x.x.x(3Com 3C90x Ethe)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" --slope-mode DEF:a="E\:/Site/cacti/rra/maximus_traffic_in_8.rrd":traffic_in:AVERAGE DEF:b="E\:/Site/cacti/rra/maximus_traffic_in_8.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"
12/09/2005 11:41:52 PM - WEBLOG: Poller[0] CACTI2RRD: c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-33053184 --end=-86400 --title="maximus - Traffic - x.x.x.x(3Com 3C90x Ethe)" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" --slope-mode DEF:a="E\:/Site/cacti/rra/maximus_traffic_in_8.rrd":traffic_in:AVERAGE DEF:b="E\:/Site/cacti/rra/maximus_traffic_in_8.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

I really had put all permission from your document i think... :(

Maybe the data is not writted correctly in the database, wich table should i check ?

Thanks !
moonzar
Posts: 9
Joined: Fri Dec 09, 2005 3:00 pm

Thanks you for the help

Post by moonzar »

I found what was my problem...

Thanks you for the help.... I feel so stupid...

http://forums.cacti.net/viewtopic.php?t=10873

MoonZar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest