David Duddell | 11 Mar 2007 06:43
Picon

expanding %auto-base%

I have just been reading some of the cricket docco and was wondering how the
variable %auto-base% is expanded? I can't see how it's done. I've expanded
%dataDir% to %auto-base%/../cricket-data/%auto-target-path% but cannot
expand further from here. There must be something I'm missing, can anyone
give me a hint?

David
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
basel ***** | 20 Mar 2007 09:24
Picon
Favicon

help

hello there 
i installed cricket-1.0.5 and all its requirements on fedora core 6 -i686
so when i execute it using grapher.cgi this what appears:
Summary Current values not available: RRD file version 0003 not supported on this arch.
Daily graph
know that i used xampp packedge-linux-1.6 to install the Apache and http and i have RRDtool-1.2.0 
so please may you help me
thanks

 
---------------------------------
Don't get soaked.  Take a quick peek at the forecast 
 with theYahoo! Search weather shortcut.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Goldblatt, Eric | 20 Mar 2007 17:04
Favicon

copy-to for flat files

Hello,

Has anyone written any code for a copy-to type that sends data to flat
files? I've seen this request a couple of times in the archive (see
below), but I don't know the outcome. 

Eric Goldblatt 
Social Security Adminstration

Date: Thu Jul 08 1999 - 10:09:26 PDT 
From: Jeff Allen 
> functionality to do this built into cricket? If not, I'm more than 
> willing to write and add a second copy-to filed type of file to log to

> disk, just let me know if this functionality exists in some form or 
> another. 
copy-to is the "right' way to do this, but as you noted, it only 
supports traps right now. It was originally implemented for something 
we needed internally. I'd be happy to integrate other copy-to's, 
especially a file-like one.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Ajay Chenampara | 20 Mar 2007 18:02
Picon
Favicon

Importing cricket config files from NT to unix

Hi,
I set up a linux machine with cricket and it works as expected (when I use the genRtrconfig script  for example).
We currently have cricket running on an NT box. I am trying to move those config files to linux.
I am able to run compile and collector. The collector o/p also looks good and the rrd files are getting
generated. However when I try to pull up the stats using the grapher.cgi, I get the "Failed to draw graph.
Check your server's error logs for details " message.
I can see that the /tmp/cricket-cache does not have any new png files. I am kind of clueless as to why this is
not working. Any pointers to where to look and troubleshoot will be really helpful.
ajay

 
---------------------------------
Don't get soaked.  Take a quick peek at the forecast 
 with theYahoo! Search weather shortcut.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Naveen Baldeo | 21 Mar 2007 02:07
Picon
Favicon

Threshold SPAN and persistent-alarms is not working

Hi All,

I have configured cricket thresholds as below.

config standard-interface-hc

   monitor-thresholds = 

 
"ifHCOutOctets:quotient:>45pct::%rrd-max-octets%::EXEC:/srv/cricket/scri
pts/threshold-add-warning.pl:/srv/cricket/scripts/threshold-clear-warnin
g.pl:SPAN:24,

 
ifHCInOctets:quotient:>45pct::%rrd-max-octets%::EXEC:/srv/cricket/script
s/threshold-add-warning.pl:/srv/cricket/scripts/threshold-clear-warning.
pl:SPAN:24,

 
ifHCOutOctets:quotient:>80pct::%rrd-max-octets%::EXEC:/srv/cricket/scrip
ts/threshold-add-critical.pl:/srv/cricket/scripts/threshold-clear-critic
al.pl:SPAN:24,

 
ifHCInOctets:quotient:>80pct::%rrd-max-octets%::EXEC:/srv/cricket/script
s/threshold-add-critical.pl:/srv/cricket/scripts/threshold-clear-critica
l.pl:SPAN:24"

I can not get it working. I have 2 problems.

(Continue reading)

Francois Mikus | 21 Mar 2007 05:29
Favicon
Gravatar

Re: Threshold SPAN and persistent-alarms is not working

Hello Naveen,

That one is for me...

If not, here is how to check you meta processing:

- check your meta files in the data portion of your config tree to see 
if they are not corrupted.
- check the output from logMonitor:

	You should always see this, if your monitor test failed : LogMonitor("$name -  $mt - $Threshold failed.");
Then depending on if there is no span event: LogMonitor("Triggering alarm for $Threshold.");
Or if there is a span event: LogMonitor("Triggering a span event for $Threshold.");

A span event is when the time period = (your span value * rrdpollinginterval).

Though I think the bug is here: 

  241 if ($span && $mt < ($time - ($spanlength * $rrdpollinterval) - 90)) {
  242                         $spanfail = 1;
  243                 }

I think the $span && $mt is being evaluated together, then the < is 
evaluated...

The logic should have been like this:

  241 if ($span && ($mt < ($time - ($spanlength * $rrdpollinterval) - 90))) {
  242                         $spanfail = 1;
  243                 }
(Continue reading)

nick.nauwelaerts | 21 Mar 2007 09:33
Picon

Re: copy-to for flat files

We tend to run some reports nightly on our rrd files. If there's no
copy-to target to a flat file then it would take minimal scripting to
run this hourly on your rrd files. It will however generate higher IO
load on your disks.

For example, we use this to detect latent errors on networking ports:

#!/usr/bin/perl -w

use strict;

my  <at> rrdout;
my $i = 0;
my $j;
my $err_in;
my $err_out;

while ($i <  <at> ARGV) {
	 <at> rrdout = `/usr/bin/rrdtool fetch $ARGV[$i] AVERAGE -s
00:30am-1day -e 0am-0day -r 1800`;

	$j = 0;
	$err_in = 0;
	$err_out = 0;
	while ($j <  <at> rrdout) {
		if ($rrdout[$j] =~ /:/) {
			# print "$rrdout[$j]";
			 <at> _ = split / /, $rrdout[$j];
			$err_in += $_[3];
			$err_out += $_[4];
(Continue reading)

Robert Woodcock | 21 Mar 2007 18:37

Current values in HTML Summary pulling from wrong ds

I'm having a very curious problem with cricket 1.0.5, librrds-perl,
and librrd2 1.2.15 (from the packages in Debian etch).

Many target views do not display any text under "Values at last
update:". Other targets (especially ones with lots of fields) display
the Cur: value from the wrong ds (ds7's cur value will come from ds6,
ds6's will come from ds5, etc, assuming they're both GAUGE ds's).
Here's the kicker - the Avg and Max Values pull from the correct ds
and so does the graph.

When I try to browse one of these target views, I see this in Apache's
error log:

Use of uninitialized value in pack at
/usr/share/cricket/lib/RRD/Format.pm line 188.

If I run rrd-dump on an .rrd file, I get binary garbage in the PDP
line. Here's output from a simple one-ds rrd:
----------------------------------
Header info: 1,6,300

DS 0:   min_val,0,max_val,60,ds_mrhb,1800,dst,GAUGE,dsName,ds0

RRA 0:  row_cnt,600,cf,0.5,pdp_cnt,1,rraName,AVERAGE
RRA 1:  row_cnt,600,cf,0.5,pdp_cnt,6,rraName,AVERAGE
RRA 2:  row_cnt,600,cf,0.5,pdp_cnt,24,rraName,AVERAGE
RRA 3:  row_cnt,600,cf,0.5,pdp_cnt,24,rraName,MAX
RRA 4:  row_cnt,600,cf,0.5,pdp_cnt,288,rraName,AVERAGE
RRA 5:  row_cnt,600,cf,0.5,pdp_cnt,288,rraName,MAX

(Continue reading)

Naveen Baldeo | 22 Mar 2007 05:49
Picon
Favicon

Re: Threshold SPAN and persistent-alarms is not working

Hi Francois,

After checking the meta file and logMonitor I have found that the SPAN
is working. 

If I clear all the .meta files. I can see that they is 2 hour delay
before the alarm start to run my script. Now the persistent-alarms is
still not working. I have made the changes as you said. Where in the
script does it check for persistent-alarms value.

Regards,

Naveen Baldeo

<mailto:Naveen.Baldeo <at> optus.com.au>

-----Original Message-----
From: Francois Mikus [mailto:fmikus <at> acktomic.com] 
Sent: Wednesday, 21 March 2007 3:30 PM
To: Naveen Baldeo
Cc: cricket-users <at> lists.sourceforge.net
Subject: Re: [cricket-users] Threshold SPAN and persistent-alarms is not
working

Hello Naveen,

That one is for me...

If not, here is how to check you meta processing:

(Continue reading)

Jordan Share | 21 Mar 2007 22:39

Re: Current values in HTML Summary pulling from wrong ds

Robert Woodcock wrote:
> I'm having a very curious problem with cricket 1.0.5, librrds-perl,
> and librrd2 1.2.15 (from the packages in Debian etch).
> 
> Many target views do not display any text under "Values at last
> update:". Other targets (especially ones with lots of fields) display
> the Cur: value from the wrong ds (ds7's cur value will come from ds6,
> ds6's will come from ds5, etc, assuming they're both GAUGE ds's).
> Here's the kicker - the Avg and Max Values pull from the correct ds
> and so does the graph.

I am also seeing this exact behavior (also using etch).

I would love to find out how to fix this.

Jordan

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Gmane