BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} Problems with displaying graphs with larrd-grapher.cgi
I had some issues here also.
1) don't use bb-1.9f, use bb-1.9h -> notification was
broken in bb-1.9f
2) the larrd scripts were trying to get ENV vars out of bbdef.sh
while the newer version of big brother puts them in
bbdef-server.sh. I added the following code to
larrd-grapher.cgi:
-
open(BBDEF,"<$ENV{'BBHOME'}/etc/bbdef.sh") or
file_error("$ENV{'BBHOME'}/etc/bbdef.sh","$!");
- while (<BBDEF>) {
- $cgibinurl_in=$_ if
/^CGIBINURL=/;
- $bbweb_in=$_ if /^BBWEB=/
&& $bbweb_in eq "" ;
- $fqdn_in=$_ if /^FQDN=/;
- }
- close BBDEF;
-
open(BBDEF,"<$ENV{'BBHOME'}/etc/bbdef-server.sh") or
file_error("$ENV{'BBHOME'}/etc/bbdef-server.sh","$!");
- while (<BBDEF>) {
- $cgibinurl_in=$_ if
/^CGIBINURL=/;
- $bbweb_in=$_ if /^BBWEB=/
&& $bbweb_in eq "" ;
- $fqdn_in=$_ if /^FQDN=/;
- }
- close
BBDEF;
(undef,$ENV{'CGIBINURL'},undef) =
split(/\"/,$cgibinurl_in);
env_error("CGIBINURL","$ENV{'BBHOME'}/etc/bbdef.sh")
if $ENV{'CGIBINURL'} eq "";
(undef,$ENV{'BBWEB'},undef) = split(/\"/,$bbweb_in);
env_error("BBWEB","$ENV{'BBHOME'}/etc/bbdef.sh")
if $ENV{'BBWEB'} eq "";
(undef,my $fqdn,undef) = split(/\"/,$fqdn_in); # Extract
FQDN Definition
my $bbskin_in="";
open(BBINC,"grep
\"^BBSKIN=\" $ENV{'BBHOME'}/etc/bbinc-server.sh |") or
file_error("$ENV{'BBHOME'}/etc/bbinc-server.sh","$!");
while (<BBINC>) {
$bbskin_in=$_;
}
close BBINC;
3) Also, I needed to make the following change in
larrd-grapher.cgi to fix an issue with the new version of RRD. It
looks like the new version of RRD does not allow for ':' inside the
COMMENT fields, so I needed to replace the ':' inside the date string
with something else, I choose a '-'. However, there may be more
issues like this related to LARRD and the new version of
RRD:
- # must replace ':' in localtime with \\: do to
RRD issue
- my $date = localtime;
- $date =~
s/:/-/g;
Hope this helps,
Paul
At 03:01 PM 7/22/2005, you wrote:
I posted this to the larrd list
and didn't here anything
so I am posting it here.
I am currently rebuilding 4 Big Brother monitoring systems, moving
from older Red Hat 8, 9 and ES 2.1 systems to Red Hat ES 4.
I am using the following:
bb-1.9f (client and server)
rrdtool-1.2.10
The following RPMS were already installed with the OS.
zlib-1.2.1.2-1
zlib-devel-1.2.1.2-1
gd-2.0.28-4
gd-devel-2.0.28-4
libpng10-1.0.16-1
libpng-devel-1.2.7-1
libpng-1.2.7-1
libpng10-devel-1.0.16-1
freetype-devel-2.1.9-1
freetype-2.1.9-1
libart_lgpl-2.3.16-3
libart_lgpl-devel-2.3.16-3
Installed manually
cgilib-0.5
larrd-0.43c
Big Brother, rrdtool, MRTG(with rrd) all work correctly.
I keep getting broken images on the larrd graphs. I followed
the FAQ, checking permissions, looking at logs and the image
properties looking for clues as to why things are not working.
The latest larrd-grapher and larrd-graphs cgi scripts work on the
older servers.
Both the old and new versions of larrd-grapher and larrd-graphs do
not work on the new servers running ES 4.
We have come to rely heavily on larrd-grapher and would hate
to not get it to work.
At this point I am not sure what else to check or how to get
some useful debug information.
Does anyone know of any problems with running larrd or any of
it's prerequisite software on Red Hat ES 4?
Can anyone suggest some additional tips to help locate the
problem?
Thanks,
dave
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to
mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index