Cacti well running but no graphs :(
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Wed Aug 02, 2006 7:28 am
Cacti well running but no graphs :(
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" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
AREA:b#0000FF:"User":STACK \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"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" GPRINTLAST:"Current\:%8.2lf %s" GPRINTAVERAGE:"Average\:%8.2lf %s" GPRINTMAX:"Maximum\:%8.2lf %s\n" AREA:b#0000FF:"User":STACK GPRINTLAST:" Current\:%8.2lf %s" GPRINTAVERAGE:"Average\:%8.2lf %s" GPRINTMAX:"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 ?
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" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
AREA:b#0000FF:"User":STACK \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"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" GPRINTLAST:"Current\:%8.2lf %s" GPRINTAVERAGE:"Average\:%8.2lf %s" GPRINTMAX:"Maximum\:%8.2lf %s\n" AREA:b#0000FF:"User":STACK GPRINTLAST:" Current\:%8.2lf %s" GPRINTAVERAGE:"Average\:%8.2lf %s" GPRINTMAX:"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 (32.2 KiB) Viewed 25240 times
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.
You have a NTFS permission problem. double check the security on rrdtool.exe, cmd.exe and all the cacti files have IUSR_COMPNAME.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 4
- Joined: Wed Aug 02, 2006 7:28 am
-
- Posts: 4
- Joined: Wed Aug 02, 2006 7:28 am
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
-
- Posts: 4
- Joined: Tue Oct 24, 2006 12:36 pm
Same
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...
Re: Cacti well running but no graphs :(
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" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
AREA:b#0000FF:"User":STACK \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"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" GPRINTLAST:"Current\:%8.2lf %s" GPRINTAVERAGE:"Average\:%8.2lf %s" GPRINTMAX:"Maximum\:%8.2lf %s\n" AREA:b#0000FF:"User":STACK GPRINTLAST:" Current\:%8.2lf %s" GPRINTAVERAGE:"Average\:%8.2lf %s" GPRINTMAX:"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
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
tmc: After reading http://docs.cacti.net/manual:087:4_help.2_debugging post your question in the linux forum.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.
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.
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 1 guest