[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - Problem Selecting Daily Graph Unscaled

Cheshire Cat Computing

Software support and information
It is currently Sun Nov 09, 2025 7:36 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Nov 18, 2008 10:13 pm 
Offline
User

Joined: Tue Nov 18, 2008 9:41 pm
Posts: 7
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?


Top
 Profile Send private message  
 
PostPosted: Wed Nov 19, 2008 1:49 am 
Offline
User

Joined: Tue Nov 18, 2008 9:41 pm
Posts: 7
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


Top
 Profile Send private message  
 
PostPosted: Wed Nov 19, 2008 9:51 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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 :) )

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Wed Nov 19, 2008 8:33 pm 
Offline
User

Joined: Tue Nov 18, 2008 9:41 pm
Posts: 7
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


Top
 Profile Send private message  
 
PostPosted: Wed Nov 19, 2008 9:55 pm 
Offline
User

Joined: Tue Nov 18, 2008 9:41 pm
Posts: 7
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


Top
 Profile Send private message  
 
PostPosted: Thu Nov 20, 2008 10:55 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Fri Nov 21, 2008 1:25 am 
Offline
User

Joined: Tue Nov 18, 2008 9:41 pm
Posts: 7
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


Top
 Profile Send private message  
 
PostPosted: Wed Nov 26, 2008 8:27 pm 
Offline
User

Joined: Tue Nov 18, 2008 9:41 pm
Posts: 7
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


Top
 Profile Send private message  
 
PostPosted: Thu Nov 27, 2008 2:22 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
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?

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Mon Dec 01, 2008 10:12 pm 
Offline
User

Joined: Tue Nov 18, 2008 9:41 pm
Posts: 7
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


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group