Cacti well running but no graphs :(

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

Moderators: Developers, Moderators

aurel102001
Posts: 4
Joined: Wed Aug 02, 2006 7:28 am

Cacti well running but no graphs :(

Post by aurel102001 »

Hello, i am actually running Cacti on my Windows XP machine. But strangely, i don t have the graphs, it only shows the name (see attached); but strangely it is working on another PC. Help please, monitoring is working as well as discovery, but i need to see graphs !
RRD tools returne me that :
RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="aurela - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_system_19.rrd":cpu_system:AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_user_20.rrd":cpu_user:AVERAGE \
DEF:c="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_nice_18.rrd":cpu_nice:AVERAGE \
CDEF:cdefbc=TIME,1154522437,GT,a,a,UN,0,a,IF,IF,TIME,1154522437,GT,b,b,UN,0,b,IF,IF,TIME,1154522437,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#FF0000:"System" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#0000FF:"User":STACK \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:c#00FF00:"Nice":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="aurela - CPU Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="percent" --slope-mode DEF:a="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_system_19.rrd":cpu_system:AVERAGE DEF:b="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_user_20.rrd":cpu_user:AVERAGE DEF:c="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_nice_18.rrd":cpu_nice:AVERAGE CDEF:cdefbc=TIME,1154522437,GT,a,a,UN,0,a,IF,IF,TIME,1154522437,GT,b,b,UN,0,b,IF,IF,TIME,1154522437,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#FF0000:"System" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#0000FF:"User":STACK GPRINT:b:LAST:" Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" A in C:\Inetpub\wwwroot\cacti\lib\rrd.php on line 94

Warning: fgets(): supplied argument is not a valid stream resource in C:\Inetpub\wwwroot\cacti\lib\rrd.php on line 117

Any idea ?
Attachments
graph.JPG
graph.JPG (32.2 KiB) Viewed 25238 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Search is your friend!

You have a NTFS permission problem. double check the security on rrdtool.exe, cmd.exe and all the cacti files have IUSR_COMPNAME.
aurel102001
Posts: 4
Joined: Wed Aug 02, 2006 7:28 am

Post by aurel102001 »

Ok, I have made this, but the problem seems to come from Firefox. On IExplore, i have a red cross on the graph, don't know why?
aurel102001
Posts: 4
Joined: Wed Aug 02, 2006 7:28 am

Post by aurel102001 »

Ok, I have made this, but the problem seems to come from Firefox. On IExplore, i have a red cross on the graph, don't know why?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

No, it's not a problem with your browsers. It's a problem with cacti and the lack of permissions for it to generate the graphs. Please read the install guide in my signature on what needs the correct NTFS rights.
MPDano
Posts: 3
Joined: Fri Dec 01, 2006 4:35 pm

Post by MPDano »

Hi, I did exactly what the instructions said and I checked and rechecked the NTFS permissions. All is good. Any other suggestions?
systemslave
Posts: 4
Joined: Tue Oct 24, 2006 12:36 pm

Same

Post by systemslave »

I am having the same problem under Linux. I just read this thread after a search. I will check the permissions and let you know what happens...
raktri4u
Posts: 7
Joined: Sat Jul 05, 2008 6:22 am

Re: Cacti well running but no graphs :(

Post by raktri4u »

aurel102001 wrote:Hello, i am actually running Cacti on my Windows XP machine. But strangely, i don t have the graphs, it only shows the name (see attached); but strangely it is working on another PC. Help please, monitoring is working as well as discovery, but i need to see graphs !
RRD tools returne me that :
RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="aurela - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
DEF:a="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_system_19.rrd":cpu_system:AVERAGE \
DEF:b="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_user_20.rrd":cpu_user:AVERAGE \
DEF:c="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_nice_18.rrd":cpu_nice:AVERAGE \
CDEF:cdefbc=TIME,1154522437,GT,a,a,UN,0,a,IF,IF,TIME,1154522437,GT,b,b,UN,0,b,IF,IF,TIME,1154522437,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#FF0000:"System" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#0000FF:"User":STACK \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:c#00FF00:"Nice":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s"

RRDTool Says:

Warning: popen(c:/rrdtool/rrdtool.exe graph - --imgformat=PNG --start=-86400 --end=-300 --title="aurela - CPU Usage" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label="percent" --slope-mode DEF:a="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_system_19.rrd":cpu_system:AVERAGE DEF:b="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_user_20.rrd":cpu_user:AVERAGE DEF:c="C\:/Inetpub/wwwroot/cacti/rra/aurela_cpu_nice_18.rrd":cpu_nice:AVERAGE CDEF:cdefbc=TIME,1154522437,GT,a,a,UN,0,a,IF,IF,TIME,1154522437,GT,b,b,UN,0,b,IF,IF,TIME,1154522437,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#FF0000:"System" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#0000FF:"User":STACK GPRINT:b:LAST:" Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" A in C:\Inetpub\wwwroot\cacti\lib\rrd.php on line 94

Warning: fgets(): supplied argument is not a valid stream resource in C:\Inetpub\wwwroot\cacti\lib\rrd.php on line 117

Any idea ?



actually i have the same problem and i have searched it out but nothing is done

please help me out people

rak
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

raktri4u: those fget errors are a sign of incorrect NTFS permissions on rrdtool.exe and/or cmd.exe. make sure the IUSR_ / IIS_WPG accounts have read/execute rights.
tmc
Posts: 11
Joined: Thu Jul 16, 2009 7:04 am

Post by tmc »

having the same problem under linux... don't know how do i have to set the permissions there?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

tmc: After reading http://docs.cacti.net/manual:087:4_help.2_debugging post your question in the linux forum.
matthys
Posts: 9
Joined: Tue Oct 28, 2008 1:50 pm

Post by matthys »

Yeah .. you sure can say debug, but there are NONE messages.

I got the same results .. no clue where to look.
Access rights are correct and the rrd file is created.

I also checked with "rrdtool info <filename>" and gives me a correct output.
Thought I still do not see any graph or error message :-(

Oeps ... checking Apache I notice an error:
ERROR: the RRD does not contain an RRA matching the chosen CF

This seems to be the problem ... so you not only have to check the Cacti log, but also the websever logs.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

matthys: Start a new thread as you have a different issue. Also, the rrdtool messages shouldn't be piped into the web server log, so there is another configuration issue with your setup.
RB1000
Posts: 7
Joined: Wed Jul 22, 2009 8:33 pm

Post by RB1000 »

same problem using under win server 2003, no graphs being generated, only titles.
i do think i have permission problem, read your note, but couldn't find ways to "grant Modify rights "....

any advice would be appreciated
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Same as the others users... start you own thread as it's likely a different issue. What graphs dont work? What does graph debugging output spit out? The net-snmp / linux graphs won't work on a Windows system.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests