| Cheshire Cat Computing https://steveshipway.org/forum/ |
|
| Problem Selecting Daily Graph Unscaled https://steveshipway.org/forum/viewtopic.php?f=2&t=1676 |
Page 1 of 2 |
| Author: | JohnnieMac [ Tue Nov 18, 2008 10:13 pm ] |
| Post subject: | Problem Selecting Daily Graph Unscaled |
Hi, Thanks for the tool. I have created a directory structure for my CFG and everything looks to be in the correct location. 6hr, weekly, monthly work fine, All Graphs work fine, when i try and select daily I am getting a blank screen The apache event log reports this [Tue Nov 18 09:03:01 2008] [error] [client 172.31.207.248] File does not exist: /srv/www/htdocs/images, referer: http://fonsnagios1.interna l.xxxxxxxxxxx.com/fonscharts/cgi-bin/routers2.cgi?rtr=BankOfNewYork%2FBONY_London_A.cfg&bars=Cami&xgtype=6&page=head&xgstyle=n&if=__interf ace&xmtype=routers I have a few site that daily works fine . Version : v2.19 MRTG : 2.16.2 any ideas where should I be looking? |
|
| Author: | JohnnieMac [ Wed Nov 19, 2008 1:49 am ] |
| Post subject: | Re: Problem Selecting Daily Graph Unscaled |
If I delete the RRD file and when it is recreated then the graphs start to work, I am not sure how long before they get screwed again. Also it means I have lost my RRD data.? I have checked the Graph Directory and the Graphs has been created, although not being displayed in the Routers CGI GUI. I have also rolled back to v2.18 |
|
| Author: | stevesh [ Wed Nov 19, 2008 9:51 am ] |
| Post subject: | Re: Problem Selecting Daily Graph Unscaled |
I need to know your graphpath and graphurl (from the routers2.conf) and also the version of RRDtool you have installed. If you are using RRD 1.2.27+ or RRD 1.3.x it is possible you've hit the 'lazy mode RRD bug' - in this case, you need to add 'lazy = no' to the routers2.conf in the [routers.cgi] section. Since your error message appears to indicate an incorrect URL for the graph. Another known problem is if you are using 'active only' mode and no subTargets are active there is an issue - Routers2 v2.20beta1 fixes this. If the 'lazy mode' option does not fix things then please also let me have a copy of the relevant .cfg file (dont forget to obfuscate community strings etc |
|
| Author: | JohnnieMac [ Wed Nov 19, 2008 8:33 pm ] |
| Post subject: | Re: Problem Selecting Daily Graph Unscaled |
rrdtool-1.3.3 I have updated to v2.20 and added lazy=no to the relevant section in routers2.conf here is the cfg file HongKong_A.cfg # Created by # /usr/local/mrtg-2/bin/cfgmaker --global "WorkDir: /usr/local/mrtg-2/rrds" --global "Htmldir: /usr/lo....... ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:\mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no WorkDir: /usr/local/mrtg-2/rrds Htmldir: /usr/local/mrtg-2/www Imagedir: /usr/local/mrtg-2/www/images Options[_]: bits,growright LogFormat: rrdtool PathAdd: /usr/local/rrdtool/bin LibAdd: /usr/local/rrdtool/lib/perl Logdir: /usr/local/mrtg-2/rrds RunAsDaemon: Yes Interval: 1 RRDRowCount[_]: 1600 WithPeak[_]: ymw Unscaled[_]: d ###################################################################### # System: xxxxx_Hong_Kong_A_2621XM # Description: Cisco Internetwork Operating System Software # IOS (tm) C2600 Software (C2600-I-M), Version 12.2(12c), RELEASE SOFTWARE (fc1) # Copyright (c) 1986-2003 by cisco Systems, Inc. # Compiled Wed 05-Feb-03 16:12 by kellythw # Contact: # Location: ###################################################################### ### Interface 2 >> Descr: 'Serial0/0' | Name: 'Se0/0' | Ip: '172.16.1.142' | Eth: '' ### Target[HongKong_A.Se0_0]: #Se0/0:xxxxxxxxx@172.24.200.93: SetEnv[HongKong_A.Se0_0]: MRTG_INT_IP="172.16.1.142" MRTG_INT_DESCR="WAN Connection(Se0/0)" MaxBytes[HongKong_A.Se0_0]: 193000 Title[HongKong_A.Se0_0]: WAN Connection(Se0/0) routers.cgi*GraphStyle[HongKong_A.Se0_0]: mirror myurl=http://fonsnagios1.internal.xxxxxxxxxxxxx.com/fonscharts/cgi-bin/routers2.cgi dbpath = /usr/local/mrtg-2/rrds graphpath = /usr/local/mrtg-2/www/graphs graphurl = /graphs confpath = /usr/local/mrtg-2/cfgs cfgfiles = */*.cfg Problem still exists Thanks John |
|
| Author: | JohnnieMac [ Wed Nov 19, 2008 9:55 pm ] |
| Post subject: | Re: Problem Selecting Daily Graph Unscaled |
I have switched on debug and the graphs appear, but the page is not fully rendered, from the attached file you can see how the text and buttons after the graph are not displayed fully. Hope this helps in the diagnosis. withdebug-6hrworking.JPG withdebug-semiworking.JPG Regards John |
|
| Author: | stevesh [ Thu Nov 20, 2008 10:55 am ] |
| Post subject: | Re: Problem Selecting Daily Graph Unscaled |
This looks like the script may be exiting abnormally (ie, crashing) before completing. The way the 'last update' date is not complete suggests that only one block of data has been sent and the program exited without flushing the buffers. This would also explain non-updating graphs. Can you take a look at your web server's error log file, and see if there are any routers2 errors appearing in there? You might also like to upgrade RRDtool to 1.3.4 as the previous 1.3.0-1.3.3 had some bugs to do with graph generation and update, though I think the lazy=no otion gets around all of these. |
|
| Author: | JohnnieMac [ Fri Nov 21, 2008 1:25 am ] |
| Post subject: | Re: Problem Selecting Daily Graph Unscaled |
Thanks Steve, I have upgraded to rrd 1.3.4 Still seems to be a problem, I am going to delete the RRDs and see if that fixes my problem. It is not the end of the world since this is still in the development stage I let you know how I get on. Regards John |
|
| Author: | JohnnieMac [ Wed Nov 26, 2008 8:27 pm ] |
| Post subject: | Re: Problem Selecting Daily Graph Unscaled |
OK I think I have isolated the issue, although I have no ideal how to fix it. Perl seems to be crashing out Nov 25 13:50:58 fonsnagios1 kernel: routers2.cgi[3428]: segfault at 8aa0000 ip 080cc838 sp bfae0930 error 4 in perl[8048000+246000] Nov 25 13:51:02 fonsnagios1 kernel: routers2.cgi[3450]: segfault at 8aa1000 ip 080cc838 sp bffd6580 error 4 in perl[8048000+246000] Nov 25 13:51:06 fonsnagios1 kernel: routers2.cgi[3532]: segfault at 8aae000 ip 080cc838 sp bfa3eec0 error 4 in perl[8048000+246000] On thing I did do to get routers2.cgi working was to add the following into router2.cgi just after the other lib statements use lib '/usr/local/rrdtool/lib/perl'; use RRDs; the perl version is 5.10.0 on suse 11 , installed via yast. also should I be using mod_perl module on apache2? I don't think I am, it is installed but I have no ideal how to enable it? Thanks for any help JohnnieMac |
|
| Author: | stevesh [ Thu Nov 27, 2008 2:22 pm ] |
| Post subject: | Re: Problem Selecting Daily Graph Unscaled |
Rather than add the 'use lib' to the routers2 script, you can just add the 'libadd=' directive in the routers2.conf. The RRDs is then loaded on demand. You dont have to use mod_perl, but if you do, enable cachine mode in the routers2.conf with cache=yes and you'll get better performance. If you're getting a segfault in Perl then there's an issue with your Perl install (and possibly your associated modules). I can't really help much with this. Even if the routers2 code weretotally buggy it should never give a segfault - it would give a Perl error. So, it seems that your installation of Perl has some problems in its compilation - is there an updated install package available? |
|
| Author: | JohnnieMac [ Mon Dec 01, 2008 10:12 pm ] |
| Post subject: | Re: Problem Selecting Daily Graph Unscaled |
Ok I beleive it is working now. I remove the use lib '/usr/local/rrdtool/lib/perl'; use RRDs; from routers2.cgi. I added the /usr/local/rrdtool/lib/perl to the libadd in routers2.conf. This now presented me with the problem it could not locate RRDs.pm I then had to copy RRDs.pm from into /usr/local/rrdtool/lib/perl and now touch wood, it seems to have stabilised Thanks JohnnieMac |
|
| Page 1 of 2 | All times are UTC + 12 hours [ DST ] |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|