Installation seems to be good but I get a broken image-Help!
Moderators: Developers, Moderators
Installation seems to be good but I get a broken image-Help!
Hello,
I installed cacti as per BSOD2600 guide and everything seems to work just fine. But when I try to view the graphs I get a broken image in tree view, list view and preview.
Below are installation details:
Operating System: Windows 2003 Std. Edt. Server
Webserver: IIS 6.0
Cacti: cacti-0.8.6h
Cactid: cactid-0.8.6g
MySQL: 4.1
PHP: 5.0.4
RRDTool: rrdtool-cygwin-1.2.12
Net-SNMP: net-snmp-5.3.0.1-1
Cygwin: Installed
-All paths are set correctly permissions has been applied as per guide.
-RRDTool Default Font Path is set correctly as well.
-RRD file are getting updated every 5 mins.
-If Poller Type is set to cmd.php it works fine, but if I set it to cactid while running it opens 2 DOS windows, cactiplus window runs and closes but the but the original window gets stuks and diplays:
03/20/2006 06:59:39 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/cactid/cactid.exe, ARGS: 0 13]
Waiting on 1/1 pollers.
When I click on the one of the graph source I get the following:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="3550 - Traffic - Fa0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="E\:/somefolder/mydomain.com/mrtg/rra/3550_traffic_in_89.rrd":traffic_in:AVERAGE \
DEF:b="E\:/somefolder/mydomain.com/mrtg/rra/3550_traffic_in_89.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=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" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"
Also attached is a copy of my log file.
I would really be thankfull If someone can help me in this.
Thank you very much for all your support and efforts.
I installed cacti as per BSOD2600 guide and everything seems to work just fine. But when I try to view the graphs I get a broken image in tree view, list view and preview.
Below are installation details:
Operating System: Windows 2003 Std. Edt. Server
Webserver: IIS 6.0
Cacti: cacti-0.8.6h
Cactid: cactid-0.8.6g
MySQL: 4.1
PHP: 5.0.4
RRDTool: rrdtool-cygwin-1.2.12
Net-SNMP: net-snmp-5.3.0.1-1
Cygwin: Installed
-All paths are set correctly permissions has been applied as per guide.
-RRDTool Default Font Path is set correctly as well.
-RRD file are getting updated every 5 mins.
-If Poller Type is set to cmd.php it works fine, but if I set it to cactid while running it opens 2 DOS windows, cactiplus window runs and closes but the but the original window gets stuks and diplays:
03/20/2006 06:59:39 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/cactid/cactid.exe, ARGS: 0 13]
Waiting on 1/1 pollers.
When I click on the one of the graph source I get the following:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="3550 - Traffic - Fa0/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="E\:/somefolder/mydomain.com/mrtg/rra/3550_traffic_in_89.rrd":traffic_in:AVERAGE \
DEF:b="E\:/somefolder/mydomain.com/mrtg/rra/3550_traffic_in_89.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=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" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"
Also attached is a copy of my log file.
I would really be thankfull If someone can help me in this.
Thank you very much for all your support and efforts.
- Attachments
-
- cacti.log.txt
- (153.42 KiB) Downloaded 78 times
Since you're collecting data and the rrd files are getting updated, its a problem with rrdtool. Do you have rrdtool 1.2 selected in cacti settings?
Do you have the proper permissions on cmd.exe and rrdtool.exe for your IUSR_ and IIS_WPG accounts?
Do you have the proper permissions on cmd.exe and rrdtool.exe for your IUSR_ and IIS_WPG accounts?
| 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 |
When you go into graph management and view a single graph, does it work? If not, do you get any error messages when you simply run rrdtool.exe from the command prompt?
| 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 |
When I try to view a single graph from Graph Management I get a broken image with a red X. And when I run rrdtool from command prompt i get the below results:
C:\rrdtool>rrdtool.exe
RRDtool 1.2.12 Copyright 1997-2005 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Dec 19 2005 09:03:05
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, dump, restore,
last, first, info, fetch, tune, resize, xport
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
Thanks for your help!
C:\rrdtool>rrdtool.exe
RRDtool 1.2.12 Copyright 1997-2005 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Dec 19 2005 09:03:05
Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, dump, restore,
last, first, info, fetch, tune, resize, xport
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
Thanks for your help!
Have you fired up FileMon like the readme sticky suggest when you're trying to graph and see what is getting denied?
Doesn't quite make sense the rrd files are getting updated, but you cannot view the graphs, even with the proper permissions apparently applied.
Doesn't quite make sense the rrd files are getting updated, but you cannot view the graphs, even with the proper permissions apparently applied.
| 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 |
I ran FileMon while running poller.php but didn't try running it while viewing the graph. Also have you observed something? that the path in the log file for the RRD files are showing up with 2 // could that be a reason?
I have also noted a small thing, the broken image in view grph section is like if the source file is not on the correct path.
But after you told me to go and check in the graph management it was a broken image with a red X.
Do you have any path to give which I can put locally in the browser and see if the graph image is displaying?
I have also noted a small thing, the broken image in view grph section is like if the source file is not on the correct path.
But after you told me to go and check in the graph management it was a broken image with a red X.
Do you have any path to give which I can put locally in the browser and see if the graph image is displaying?
A double slash could be the problem...
You using spaces in your file paths? They're not allowed.
For example, this is a rrdtool graph output that works:
Try manually entering the graph command cacti is trying to use (click the wrench icon) in a dos command window and see if it works.
You using spaces in your file paths? They're not allowed.
For example, this is a rrdtool graph output that works:
Code: Select all
c:/rrdtool/rrdtool1.2.12.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Ambit Cable Modem - Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="c\:/cacti/rra/webstar_dpx2100_cable_modem_traffic_in_18.rrd":traffic_out:AVERAGE \
DEF:b="c\:/cacti/rra/webstar_dpx2100_cable_modem_traffic_in_18.rrd":traffic_in: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\n" \
COMMENT:"\n" \
HRULE:310508.04#FF0000:"95th Percentile" \
COMMENT:"(0.31 mbit in+out)"
| 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 |
No I am not using spaces. I was trying to point out the \\ in the log file example:
03/20/2006 06:50:07 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update
E:\\mydomain.com\\www\\mrtg\\rra\\3550_traffic_in_48.rrd --template traffic_in:traffic_out 1142859004:0:0\par
Is it suppose to be like this?
Also help me in with wrench icon, where do I find this?
03/20/2006 06:50:07 AM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update
E:\\mydomain.com\\www\\mrtg\\rra\\3550_traffic_in_48.rrd --template traffic_in:traffic_out 1142859004:0:0\par
Is it suppose to be like this?
Also help me in with wrench icon, where do I find this?
If your rrd files are truly updating with data, then the double slash in the path is fine, although I don't have double slashes in my paths.
To get the wrench icon, click on a graph. Then you should see the wrench icon, which will show you the rrdtool graph output command.
To get the wrench icon, click on a graph. Then you should see the wrench icon, which will show you the rrdtool graph output command.
| 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 |
I get the following in the properties:
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="3550 - Traffic - Fa0/43" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
DEF:a="E\:/Webspace/icuna/icunawebsite/graphs.website.com/www/mrtg/rra/3550_traffic_in_76.rrd":traffic_in:AVERAGE \
DEF:b="E\:/Webspace/icuna/icunawebsite/graphs.website.com/www/mrtg/rra/3550_traffic_in_76.rrd":traffic_out:AVERAGE \
AREA:a#00CF00:"Inbound" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:b#002A97:"Outbound" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes
I see that it shows me 0 bytes for Total out and In. Why is that?
Also let me know what command I enter in the DOS?
C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="3550 - Traffic - Fa0/43" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
--slope-mode \
DEF:a="E\:/Webspace/icuna/icunawebsite/graphs.website.com/www/mrtg/rra/3550_traffic_in_76.rrd":traffic_in:AVERAGE \
DEF:b="E\:/Webspace/icuna/icunawebsite/graphs.website.com/www/mrtg/rra/3550_traffic_in_76.rrd":traffic_out:AVERAGE \
AREA:a#00CF00:"Inbound" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 0 bytes\n" \
LINE1:b#002A97:"Outbound" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes
I see that it shows me 0 bytes for Total out and In. Why is that?
Also let me know what command I enter in the DOS?
Sounds like you dont have any data. Time to look in your rrd files. Run: rrdtool dump filename.rrd >filename.xml. Then look in the xml file if there truly is any data that cacti has been collecting.
| 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 0 guests