|
|
| Author |
Message |
dust2k Cacti User
Joined: 04 Dec 2005 Posts: 85
|
Posted: Mon Jan 30, 2006 7:44 pm Post subject: |
|
|
| joshm wrote: | Any chance you could export your now color selected and fixed template that u fixed yourself?
|
no problem at all, Here it is
| Description: |
|
| Filesize: |
19.1 KB |
| Viewed: |
10026 Time(s) |

|
| Description: |
|
 Download |
| Filename: |
cacti_graph_template_w32_disk_statistics.xml |
| Filesize: |
31.74 KB |
| Downloaded: |
1426 Time(s) |
|
|
| Back to top |
|
 |
joshm Cacti User
Joined: 03 Oct 2005 Posts: 62 Location: STL
|
Posted: Thu Feb 02, 2006 3:02 pm Post subject: |
|
|
Thanks for posting but still having issues with these graphs... A debug of the graph and I get the following...
RRDTool Command:
n:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="AlphaSQL (SQL3) - Disk - E:" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Unit (Percent / time slice)" \
--slope-mode \
--font TITLE:10:c:/winnt/fonts/timesbd.ttf \
--font AXIS:9:c:/winnt/fonts/arial.ttf \
--font LEGEND:11:c:/winnt/fonts/arial.ttf \
--font UNIT:9:c:/winnt/fonts/arial.ttf \
DEF:a="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentDiskReadTime:LAST \
DEF:b="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentDiskWriteTim:LAST \
DEF:c="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentFreeSpace:LAST \
DEF:f="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentDiskReadTime:LAST \
DEF:g="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":AvgDiskReadPerSec:LAST \
DEF:h="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":AvgDiskWritePerSec:LAST \
DEF:i="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":PercentFreeSpace:LAST \
DEF:j="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":FreeMegabytes:LAST \
DEF:ba="N\:/cacti/rra/alphasql_sql3_avgdiskreadqueuelen_762.rrd":FreeMegabytes:LAST \
CDEF:cdefbd=ba,1024,/ \
CDEF:cdefdc=ba,1048576,/ \
CDEF:cdefdd=a,0,*,100,+ \
AREA:f#FF6044:"Read Time(%)" \
AREA:b#00BED9:"Write Time(%)" \
LINE1:c#F5F800:"Read Queue\:" \
LINE1:d#00FF00:"Write Queue\:\n" \
LINE2:i#000000:"" \
LINE1:f#000000:"" \
LINE1:g#0000FF:"Read /s\:" \
LINE1:h#DE0056:"Write /s" \
LINE1:i#000000:"Free Space (%)\n" \
COMMENT:"Statistics" \
GPRINT:f:LAST:" Read\: (%1.1lf %%)" \
GPRINT:b:LAST:"Write\: (%1.1lf %%)" \
GPRINT:i:LAST:"Free\: (%1.1lf %%)" \
GPRINT:cdefbd:AVERAGE:"Available \: %5.2lf Gb\n" \
LINE1:ba:"Available\:" \
COMMENT:"Read IO / sec\:" \
GPRINT:g:LAST:" Current\:%8.0lf" \
GPRINT:g:AVERAGE:"Average\:%8.0lf" \
GPRINT:g:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write IO / sec\:" \
GPRINT:h:LAST:" Current\:%8.0lf" \
GPRINT:h:AVERAGE:"Average\:%8.0lf" \
GPRINT:h:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Read Queue\:" \
GPRINT:c:LAST:" Current\:%8.0lf" \
GPRINT:c:AVERAGE:"Average\:%8.0lf" \
GPRINT:c:MAX:"Maximum\:%8.0lf\n" \
LINE1::"Free Space (Mb)" \
COMMENT:"Write Queue\:" \
GPRINT:d:LAST:" Current\:%8.0lf" \
GPRINT:d:AVERAGE:"Average\:%8.0lf" \
GPRINT:d:MAX:"Maximum\:%8.0lf\n" \
LINE1:cdefdc#FFFFFF:"" \
LINE1:cdefdd#FFFFFF:""
RRDTool Says:
ERROR: Legend set but no color: Available\:
Cancel
|
|
| Back to top |
|
 |
dust2k Cacti User
Joined: 04 Dec 2005 Posts: 85
|
Posted: Thu Feb 02, 2006 6:31 pm Post subject: |
|
|
Oooops, I found that one have some problem, here is the new one, but both of them works for me, I use poller.php instead of cactid.
after you import the graph template, you may need go to each graph to re-mapping those data source fields.
| Description: |
|
 Download |
| Filename: |
cacti_graph_template_w32_disk_statistics.xml |
| Filesize: |
31.74 KB |
| Downloaded: |
1684 Time(s) |
|
|
| Back to top |
|
 |
phantom_rgs
Joined: 16 Jan 2006 Posts: 38 Location: Brasil
|
Posted: Thu Feb 23, 2006 8:30 am Post subject: broken graphs |
|
|
in my hosts the graphs are show as broken
what i do?
|
|
| Back to top |
|
 |
BobDole
Joined: 03 Dec 2005 Posts: 2
|
Posted: Thu Feb 23, 2006 4:36 pm Post subject: |
|
|
I'm also getting errors:
[cut out details]
RRDTool Says:
ERROR: Legend set but no color: \n
I just upgraded to 0.8.6h this morning and these graphs broke. I've imported the last updated template that was posted but no luck.
|
|
| Back to top |
|
 |
argon0 Cacti User
Joined: 12 Mar 2004 Posts: 238
|
Posted: Fri Feb 24, 2006 4:33 am Post subject: |
|
|
The graph breaks with h, its simple to fix though and has been discussed above.
Just goto graph templates, click on the right one, one of the line items won't have a colour associated with it, click on that item and assign a colour. Ry viola, your graph should work.
Argon0
|
|
| Back to top |
|
 |
BobDole
Joined: 03 Dec 2005 Posts: 2
|
Posted: Thu Mar 02, 2006 1:02 pm Post subject: |
|
|
| argon0 wrote: | The graph breaks with h, its simple to fix though and has been discussed above.
Just goto graph templates, click on the right one, one of the line items won't have a colour associated with it, click on that item and assign a colour. Ry viola, your graph should work.
Argon0 |
Argon0
I've added the missing color but I continue to get errors. I'm having difficulties interpreting the specific line that's having trouble. When I read the debug output the colors it lists for certain lines do not correspond to the graph template config. That or I'm just reading it wrong.
|
|
| Back to top |
|
 |
argon0 Cacti User
Joined: 12 Mar 2004 Posts: 238
|
Posted: Fri Mar 03, 2006 4:45 am Post subject: |
|
|
| Can you post your Graph Debug here please?
|
|
| Back to top |
|
 |
EC
Joined: 06 Mar 2006 Posts: 5
|
Posted: Wed Mar 08, 2006 9:57 pm Post subject: |
|
|
| rj wrote: | | Problem solved, Typo error in XML file snmp_informant_disk.xml. |
Mind sharing where the typo is? I've got those same errors and can't figure it out.
|
|
| Back to top |
|
 |
kelbyc
Joined: 28 Nov 2005 Posts: 44
|
Posted: Wed Mar 22, 2006 11:32 am Post subject: 0.8.6h? |
|
|
| Has anyone finally got this workign with 0.8.6h?? If so can you please post your data query template and graph template? I've tried this version and one from another post but 0.8.6h just won't do it. The graphs show up as a red X. Everything seems to be right and I even assigned a color to every graph item but I still get the red X.
|
|
| Back to top |
|
 |
dt9394
Joined: 10 Apr 2006 Posts: 3
|
Posted: Tue Apr 11, 2006 11:38 pm Post subject: rrdtool problem? |
|
|
my graph sometime is "corrupted" especially the "Available" value in rra file is misplaced.
anyone have the same problem?
|
|
| Back to top |
|
 |
usefulidiot010
Joined: 14 Apr 2006 Posts: 1
|
Posted: Fri Apr 14, 2006 8:31 am Post subject: |
|
|
this seems like a really useful graph and seems to run the snmp query correctly yet for some reason the RRA is never created on my system.
is anyone else having issues running 0.8.6h where it is not creating the RRA?
|
|
| Back to top |
|
 |
mikesphar
Joined: 19 Apr 2006 Posts: 6 Location: Chicago, IL
|
Posted: Wed Apr 19, 2006 6:31 pm Post subject: |
|
|
Well, I'm having trouble with this too, I've update the color for the line item that didn't have it, but I'm now getting this error:
| Code: | ERROR: parameter '#000000' does not represent a number in line LINE1:#000000:Free Space (Mb)
|
This appears to be coming from item #27:
| Code: | Data Source: None
Color: (This was none, but I set it to Black after the earlier legend error)
Graph Item Type: LINE1
Consolidation Function: LAST
CDEF Function: None
Value: <blank>
GPRINT Type: Normal
Text Format: Free Space <Mb>
Insert Hard Return: Not checked
Sequence: 26 |
I'm guessing this has something to do with item#33, but I'm not clear how to fix it:
| Code: | Data Source: W32 - Disk Statistics - (FreeMegabytes)
Color: FFFFFF
Graph Item Type: LINE1
Consolidation Function: LAST
CDEF Function: Kilobyte to Gigabyte
Value: <blank>
GPRINT Type: Gigabytes
Text Format: <blank>
Insert Hard Return: <not checked>
Sequence: 31 |
Edit: Okay, I think I got those errors resolved after I noticed the earlier post I had somehow missed before about associating the data source with the Free Space (MB) item in the graph template.
At this point I'm not getting errors but I also don't seem to be getting disk statistics, but I need to poke at it some more.
|
|
| Back to top |
|
 |
kokkers
Joined: 16 Feb 2006 Posts: 6
|
|
| Back to top |
|
 |
mikesphar
Joined: 19 Apr 2006 Posts: 6 Location: Chicago, IL
|
Posted: Thu Apr 27, 2006 3:41 pm Post subject: |
|
|
I think part of the problem at least I was having was that the updated "corrected" templates provided by people later in this thread didn't include the data query templates. And when I imported the original data query templates along with the new updated "fixed" graph templates, you end up with a seriously munged up graph template, or at least I did.
I finally went through the whole graph template and re-ordered many items and deleted others to get it to actually look like the samples provided. Also one of the CDEFs from one of the templates seemed to have some sort of typo in it that was causing an RPN Stack Underflow error for me.
I do think I've got it mostly sorted out now, but I'm watching the stats for a while to make sure I like what I'm getting.
If nothing else, getting these templates actually working has been something of a crash course in cacti customization.
|
|
| Back to top |
|
 |
|