Graphs not appearing

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

Moderators: Developers, Moderators

Post Reply
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Graphs not appearing

Post by pshankland »

Hi,

I have set-up Cacti and have managed to get onto the web front-end and configure a device but when I go to look at the graphs I simply get an error where the graph should be (graph name & red cross) - it is as if the png file is missing.

I have switched on the debug mode and get the following messages:

Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="Draytek - Traffic - ADSL/4" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="bits per second" DEF:a="C\:\Cacti/rra/draytek_traffic_in_12.rrd":traffic_in:AVERAGE DEF:b="C\:\Cacti/rra/draytek_traffic_in_12.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" 2>&1,rb): No error in C:\Cacti\lib\rrd.php on line 89

Warning: fgets(): supplied argument is not a valid stream resource in C:\Cacti\lib\rrd.php on line 112

Any ideas??

Thanks.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Have you run the poller at least one time?

Make sure that you have scheduled poller.php to run every 5 minutes.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

Poller is scheduled correctly and I have even manually run it but still no joy!
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Does the "C:\Cacti\rra\draytek_traffic_in_12.rrd" file exist?

Is "c:/rrdtool/rrdtool.exe" the correct path to rrdtool?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

Yes and Yes...
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

I think the problem must be something to do with my settings. I have got the various part of software installed in the following locations:

c:\mysql\
c:\php\
c:\cacti\
c:\cactid\
c:\net-snmp\
c:\rrdtool\

I have the following information within the Cacti settings:

snmpwalk Binary Path: <empty>
snmpget Binary Path: <empty>
RRDTool Binary Path: c:\rrdtool\rrdtool.exe
PHP Binary Path: c:\php\php.exe
Cacti Log File Path: c:\cacti\log\cacti.log
Cactid Poller File Path: c:\cactid\

Anything here look wrong??

Also under poller I have poller type as cmd.php when I thought it was poller.php but that isn't available in the drop down.

Thanks
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

Typical - Reinstalled from scratch on a clean machine and it is now working like a dream

Thanks

Pete
Willie

Graphs

Post by Willie »

Hey,

It appears that you are running cacti on Windows 2003. What you will need to do to get your graphs displaying is to grant execute rights to cmd.exe for your web acct or let your web site run under administrative rights. either way will let the graphs show up.

Regards,

Willie

cacti
cactid
iis6
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest