Graphs not appearing
Moderators: Developers, Moderators
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
Graphs not appearing
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.
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.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Have you run the poller at least one time?
Make sure that you have scheduled poller.php to run every 5 minutes.
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]
[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]
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Does the "C:\Cacti\rra\draytek_traffic_in_12.rrd" file exist?
Is "c:/rrdtool/rrdtool.exe" the correct path to rrdtool?
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]
[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]
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
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
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
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
Graphs
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
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
Who is online
Users browsing this forum: No registered users and 1 guest