| Cheshire Cat Computing https://steveshipway.org/forum/ |
|
| BUG?: Since upgrading to 2.19 'Graph was not created' ... https://steveshipway.org/forum/viewtopic.php?f=2&t=1668 |
Page 1 of 4 |
| Author: | babydr [ Wed Nov 05, 2008 11:30 am ] |
| Post subject: | BUG?: Since upgrading to 2.19 'Graph was not created' ... |
"Graph was not created! Probably, no data is available for the requested time period. RRD: /var/www/htdocs/router2cgi/graphs/to-sw01/to-sw01_14.rrd Device: [to-sw01.cfg] TO-SW01 Branch Switch , Tok Interface: _to-sw01_14I-IE" I believe that these are the graphs taht would have no data in them ie: empty graphs . I am using "routers.cgi*Options[_]: active" in all my .cfg's & the items showing these messages are those that would not create a graph . Have just verified by moving back to 2.18b5 , this issue is not there . See attched config .[attachment=0]cp-sw01.txt[/attachment] |
|
| Author: | stevesh [ Wed Nov 05, 2008 6:47 pm ] |
| Post subject: | Re: BUG?: Since upgrading to 2.19 'Graph was not created' ... |
Initial thoughts are that, with the active option, no lines at all qualify for the graph and so nothing can be drawn. The checks for valid userdefined graphs were tightened in 2.19 and this may be why you managed to get an empty graph in 2.18b5 and an error now - I think it has to find at least one OK and none bad... I will look into this and see if I can deal with this special case. |
|
| Author: | babydr [ Thu Nov 06, 2008 11:18 am ] |
| Post subject: | Re: BUG?: Since upgrading to 2.19 'Graph was not created' ... |
Is there a way to diagnose which items are failing , Using 2.18b5 ? Tia , JimL |
|
| Author: | stevesh [ Thu Nov 06, 2008 11:21 am ] |
| Post subject: | Re: BUG?: Since upgrading to 2.19 'Graph was not created' ... |
If you enable debug mode in the routers2.conf then you should get a huge comment in the generate HTML revealing the actual RRDTool function call parameters. This would be of great help to me. I'll also investigate the logic in the code. |
|
| Author: | babydr [ Thu Nov 06, 2008 11:39 am ] |
| Post subject: | Re: BUG?: Since upgrading to 2.19 'Graph was not created' ... |
[quote="stevesh"]If you enable debug mode in the routers2.conf then you should get a huge comment in the generate HTML revealing the actual RRDTool function call parameters. This would be of great help to me. I'll also investigate the logic in the code.[/quote] Ok , debug = 1 . where is the generated html supposed to appear ? none of my user defined graphs seem to show anything other thatn their normal output . tia, JimL |
|
| Author: | babydr [ Thu Nov 06, 2008 11:48 am ] |
| Post subject: | Re: BUG?: Since upgrading to 2.19 'Graph was not created' ... |
Fyi , This is not the rrd pull for one of the erroring graphs . I'd have to copy the new .cgi over to being active for that . Do you want output like below for one of the erroring graphs ? I hope this is part of what you are looking for ... [code]<!-- Start comment --> <!-- rrdtool graph /var/www/htdocs/router2cgi/graphs/cp-sw01.cfg-_cp-sw01_19I-IE-d-x2.png --imgformat PNG --base 1000 --lazy --interlaced --force-rules-legend --slope-mode -e 1225924800 -s end-2000m -u 0.1 -w 800 -h 200 --x-grid HOUR:1:HOUR:24:HOUR:2:0:%k --title 19 & 19 Error Rates IN/OUT --vertical-label traffic in bps HRULE:90000000#444444:90% Mark ( 90 Mbps)\l HRULE:100000000#555555:AbsMax ( 100 Mbps)\l DEF:in1=/var/www/htdocs/router2cgi/graphs/cp-sw01/cp-sw01_19.rrd:ds0:AVERAGE DEF:out1=/var/www/htdocs/router2cgi/graphs/cp-sw01/cp-sw01_19.rrd:ds1:AVERAGE CDEF:wdtest=in1,POP,TIME,3600,/,-9,+,DUP,24,/,7,%,DUP,4,LT,EXC,2,GE,+,2,LT,EXC,24,%,DUP,7,GE,EXC,21,LT,+,2,EQ,1,0,IF,0,IF CDEF:wd=wdtest,INF,0,IF AREA:wd#ffffcc CDEF:fin1=in1,8,* CDEF:fout1=out1,8,* DEF:min1=/var/www/htdocs/router2cgi/graphs/cp-sw01/cp-sw01_19.rrd:ds0:MAX DEF:mout1=/var/www/htdocs/router2cgi/graphs/cp-sw01/cp-sw01_19.rrd:ds1:MAX CDEF:fmin1=min1,8,* CDEF:fmout1=mout1,8,* CDEF:pcin1=fin1,100,*,90000000,/ CDEF:mpcin1=fmin1,100,*,90000000,/ CDEF:pcout1=fout1,100,*,90000000,/ CDEF:mpcout1=fmout1,100,*,90000000,/ COMMENT:19 19 -- CP-SW01\:\l LINE1:fin1#0000ff:Incoming traffic LINE1:fout1#00ff00:Outgoing traffic\l GPRINT:fmin1:MAX:Max In\: %6.2lf %sbps\g GPRINT:mpcin1:MAX: (%2.0lf%%)\g GPRINT:fin1:AVERAGE: Avg In\: %6.2lf %sbps\g GPRINT:pcin1:AVERAGE: (%2.0lf%%)\g GPRINT:fin1:LAST: Cur In\: %6.2lf %sbps\g GPRINT:pcin1:LAST: (%2.0lf%%)\g COMMENT:\l GPRINT:fmout1:MAX:Max Out\:%6.2lf %sbps\g GPRINT:mpcout1:MAX: (%2.0lf%%)\g GPRINT:fout1:AVERAGE: Avg Out\:%6.2lf %sbps\g GPRINT:pcout1:AVERAGE: (%2.0lf%%)\g GPRINT:fout1:LAST: Cur Out\:%6.2lf %sbps\g GPRINT:pcout1:LAST: (%2.0lf%%)\g COMMENT:\l CDEF:greyout=0,in1,UN,+,out1,UN,+,1,1,+,EQ,INF,0,IF AREA:greyout#d0d0d0 COMMENT:Wed Nov 5 13\:40\:00 2008\r --> <!-- end comment -->[/code] |
|
| Author: | stevesh [ Thu Nov 06, 2008 4:42 pm ] |
| Post subject: | Re: BUG?: Since upgrading to 2.19 'Graph was not created' ... |
That's the thing I'm after. It should be in the HTML on the crentral (graph) frame, even if no graph is created. |
|
| Author: | stevesh [ Thu Nov 06, 2008 5:05 pm ] |
| Post subject: | Re: BUG?: Since upgrading to 2.19 'Graph was not created' ... |
I've checked the code: this is the message which appears if the call to RRDgraph completes without error, but no graph image is created. This should be impossible - if RRDTool fails to create an image, it is supposed to set the error status to explain the reason. Oddly, this part of the code has not been updated. One remote possibility is that there are backstrokes in the filename (unlikely as you use unix). Another possibility is that the new 2.19 is using RRDTool options which are not available in your version of RRDTool. Can you tell me which version you are running? There are several checks in the code to disable certain parts for older versions of RRDTool but some may have been missed out. If it is v1.0.x then you should upgrade to 1.2.x in order to get better image rendering in any case. If you can give me the debug comment output it will help to track this one down. |
|
| Author: | babydr [ Fri Nov 07, 2008 7:34 am ] |
| Post subject: | Re: BUG?: Since upgrading to 2.19 'Graph was not created' ... |
RRD Version , /usr/local/rrdtool/bin/rrdtool --version RRDtool 1.2.26 Copyright 1997-2007 by Tobias Oetiker <tobi@oetiker.ch> Compiled Feb 22 2008 10:01:43 No '\' in the .cfg's (unless # is at beginning of the line) . mind you the formatting below is just as copied from the 'Source of...' using Firefox on an offending frame . Also this is from the same .cfg with a failing item as inserted/reported above . Tia , JimL RRD comment from errored graph ... See below for a working request there is a HUGE difference . [code]<!-- Start comment --> <!-- rrdtool graph /var/www/htdocs/router2cgi/graphs/cp-sw01.cfg-_cp-sw01_4I-IE-ds-x2.png --imgformat PNG --base 1000 --interlaced --force-rules-legend --slope-mode -e 1225995900 -s end-1500m -u 0.1 -w 570 -h 150 --x-grid HOUR:1:HOUR:24:HOUR:2:0:%k --title 4 & 4 Error Rates IN/OUT --vertical-label traffic in Bps COMMENT:Thu Nov 6 09\:25\:00 2008\r --> <!-- end comment -->[/code] This comment area is from a graph that gets displayed ... [code]<!-- Start comment --> <!-- rrdtool graph /var/www/htdocs/router2cgi/graphs/cp-sw01.cfg-_cp-sw01_3I-IE-ds-x2.png --imgformat PNG --base 1000 --interlaced --force-rules-legend --slope-mode -e 1225995900 -s end-1500m -u 0.1 -w 570 -h 150 --x-grid HOUR:1:HOUR:24:HOUR:2:0:%k --title 3 & 3 Error Rates IN/OUT --vertical-label traffic in Bps DEF:in1=/var/www/htdocs/router2cgi/graphs/cp-sw01/cp-sw01_3.rrd:ds0:AVERAGE DEF:out1=/var/www/htdocs/router2cgi/graphs/cp-sw01/cp-sw01_3.rrd:ds1:AVERAGE CDEF:wdtest=in1,POP,TIME,3600,/,-9,+,DUP,24,/,7,%,DUP,4,LT,EXC,2,GE,+,2,LT,EXC,24,%,DUP,7,GE,EXC,21,LT,+,2,EQ,1,0,IF,0,IF CDEF:wd=wdtest,INF,0,IF AREA:wd#ffffcc CDEF:fin1=in1,8,* CDEF:fout1=out1,8,* DEF:min1=/var/www/htdocs/router2cgi/graphs/cp-sw01/cp-sw01_3.rrd:ds0:MAX DEF:mout1=/var/www/htdocs/router2cgi/graphs/cp-sw01/cp-sw01_3.rrd:ds1:MAX CDEF:fmin1=min1,8,* CDEF:fmout1=mout1,8,* LINE1:fin1#0000ff LINE1:fout1#00ff00 PRINT:fmin1:MAX:<b>In\: </b> Max %6.2lf %sBps, PRINT:fin1:AVERAGE:Avg %6.2lf %sBps, PRINT:fin1:LAST:Last %6.2lf %sBps <br /> PRINT:fmout1:MAX:<b>Out\:</b> Max %6.2lf %sBps, PRINT:fout1:AVERAGE:Avg %6.2lf %sBps, PRINT:fout1:LAST:Last %6.2lf %sBps <br /> CDEF:greyout=0,in1,UN,+,out1,UN,+,1,1,+,EQ,INF,0,IF AREA:greyout#d0d0d0 COMMENT:Thu Nov 6 09\:25\:00 2008\r --> <!-- end comment -->[/code] |
|
| Author: | babydr [ Fri Nov 07, 2008 7:46 am ] |
| Post subject: | Re: BUG?: Since upgrading to 2.19 'Graph was not created' ... |
Steve , Tho if I click on the 'Error' for that interface I do get a graph , Please see attached file with full webpage of that graphed item that is erroring . Hth , JimL [attachment=0]routers2.cgi-2.zip[/attachment] |
|
| Page 1 of 4 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|