Michael Hundsdorfer | 3 Aug 2005 11:44
Picon
Picon

problems with SuSE 9.3 and smokeping configuration

Hello!

I have problems to run smokeping. In SuSE Professional 9.3 I have
installed the rrdtool package.
Fping is running (tried manually) and also smokeping is running in
daemon mode.
But I guess, something with the paths in etc/config and bin/smokeping is
wrong and not fitting with the standard-paths of SuSE Linux, e.g. the
path for the lib of rrdtool.
When starting smokeping cgi with http://localhost/cgi-bin/smokeping.cgi
I get the structure on the left side, but no grafics (*.png).
Did somebody already installed smokeping under SuSE and can help me with
some sample configuration files.

Many thanks

Michael

William Preston | 3 Aug 2005 21:56
Picon

extremely slow smokeping execution speed


I'm having a problem with the smokeping binary, and the .cgi script, being 
extremely slow on a moderately fast system (Athlon1200, 512RAM.)  Top is 
showing almost no CPU or disk utilization while it's running.  Softwares:

OS: Slackware10.1
smokeping: 2.0rc5
perl: 5.8.7
rrd:  1.2.10
echoping: 5.2.0

everything else should be per the smokeping recommended versions.  My 
config file has about 15 hosts, being probed with echoping http, https, and 
smtp.  Only two hosts are probed with fping.

I ran the perl profiler on it (bear with me; I'm not a coder) and it gave 
me this info:

root <at> pathmon:/usr/local/smokeping/bin# dprofpp tmon.out
<<snip lots of errors about 'unstacked calls in outer'>>
Total Elapsed Time = 1893.947 Seconds
   User+System Time = 0.457851 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
  17.4   0.080  0.238     18   0.0044 0.0132  Smokeping::BEGIN
  8.74   0.040  0.040     10   0.0040 0.0040  RRDs::fetch
  6.55   0.030  0.278      3   0.0100 0.0926  main::BEGIN
  4.37   0.020  0.020      8   0.0025 0.0025  DynaLoader::dl_load_file
  4.37   0.020  0.020     10   0.0020 0.0020  RRDs::info
  4.37   0.020  0.069      7   0.0028 0.0099  SNMP_util::BEGIN
(Continue reading)

Tony.Cetera | 5 Aug 2005 15:57
Picon

Scripting to summarize smokeping rrd data

I was wondering if someone could point me the right direction to
accomplish the following.  I'd like to produce an average of the last 30
days of RTT data for a ping test done by smokeping.  I would like to
email myself that number as there is no need for any graph.  I know this
number isn't particularly relevant, but it will help with some
statistics I need to produce.

Is there a way to use "rrdtool fetch" to extract this number from the
smokeping rrd files?

Tony Cetera
Arnold Nipper | 5 Aug 2005 17:00
Picon

Re: Scripting to summarize smokeping rrd data

On 05.08.2005 15:57 Tony.Cetera <at> thomson.com wrote

> I was wondering if someone could point me the right direction to
> accomplish the following.  I'd like to produce an average of the last 30
> days of RTT data for a ping test done by smokeping.  I would like to
> email myself that number as there is no need for any graph.  I know this
> number isn't particularly relevant, but it will help with some
> statistics I need to produce.
>  
> Is there a way to use "rrdtool fetch" to extract this number from the
> smokeping rrd files?
>  

rrdtool fetch and a few lines of <gawk,perl,php,...> should do. E.g. 
rrdtool fetch test.rrd AVERAGE -s -30d-e | ...

Arnold
--

-- 
Arnold Nipper / nIPper consulting, Sandhausen, Germany
email: arnold <at> nipper.de       phone: +49 6224 9259 299
mobile: +49 172 2650958         fax: +49 6224 9259 333

Tony.Cetera | 5 Aug 2005 17:36
Picon

Re: Scripting to summarize smokeping rrd data

Thank you.  Now that I have the data, 2 questions.

What is the best way to manipulate those numbers in exponential
notation?  I need them in decimal notation.

Those few lines of <gawk,perl,php,...> you speak of, can you point me
the direction of some examples?  It seems I don't need to do much more
than sum the median column and divide by the # of rows.  However, my
scripting isn't good enough to do that w/o some examples.

Tony

-----Original Message-----
From: Arnold Nipper [mailto:arnold <at> nipper.de] 
Sent: Friday, August 05, 2005 11:01 AM
To: Cetera, Anthony (TH USA)
Cc: smokeping-users <at> list.ee.ethz.ch
Subject: Re: [smokeping-users] Scripting to summarize smokeping rrd data

On 05.08.2005 15:57 Tony.Cetera <at> thomson.com wrote

> I was wondering if someone could point me the right direction to
> accomplish the following.  I'd like to produce an average of the last
30
> days of RTT data for a ping test done by smokeping.  I would like to
> email myself that number as there is no need for any graph.  I know
this
> number isn't particularly relevant, but it will help with some
> statistics I need to produce.
>  
(Continue reading)

Arnold Nipper | 5 Aug 2005 17:50
Picon

Re: Scripting to summarize smokeping rrd data

On 05.08.2005 17:36 Tony.Cetera <at> thomson.com wrote

> Thank you.  Now that I have the data, 2 questions.
> 
> What is the best way to manipulate those numbers in exponential
> notation?  I need them in decimal notation.
> 

typically $language will already do for you.

> Those few lines of <gawk,perl,php,...> you speak of, can you point me
> the direction of some examples?  It seems I don't need to do much more
> than sum the median column and divide by the # of rows.

First a warning: summing  the median and dividing by numbers of summands 
gives you what? imho only useless information. But anyway. A q&d awk 
script would look like

/^[0-9]/	{ s += $4; n++ }
END	{ print s/n }

If you really want to have the median of the last thirty days, 
recalculate them for yourself.

Arnold
--

-- 
Arnold Nipper, AN45

Matthew R. Anderson | 5 Aug 2005 18:03

newbie q:

Hi, sorry if this has been covered; I can't seem to find any documentation
to suggest a solution:

I'm trying to spiffy up my graphs.  I realized that all the demo RRD graphs
and even the demo graphs on the smokeping site are much nicer looking than
mine.  How do you use font smoothing and other custom color and
anti-aliasing features on the graphs themselves?  I can't seem to locate
where I can mess with the rrdgraph parameters.  Any help or documentation I
can read is appreciated.  Best,

-Matt

---------------------
Matthew Anderson
Executor
Internet Distributed Data Exchange - IDDX.NET

William Preston | 5 Aug 2005 18:46
Picon

Re: newbie q:

Matthew R. Anderson wrote:

>Hi, sorry if this has been covered; I can't seem to find any documentation
>to suggest a solution:
>
>I'm trying to spiffy up my graphs.  I realized that all the demo RRD graphs
>and even the demo graphs on the smokeping site are much nicer looking than
>mine.  How do you use font smoothing and other custom color and
>anti-aliasing features on the graphs themselves?  I can't seem to locate
>where I can mess with the rrdgraph parameters.  Any help or documentation I
>can read is appreciated.  Best,
>  
>
RRDtool2 and freetype2 make possible the purty fonts.  From what I 
understand you can't use rrdtool2 with the older (1.x) versions of 
smokeping, if that's what you're currently running.

Niko Tyni | 5 Aug 2005 22:13
Picon
Picon

Re: Smokeping 2.0 Uninitialized Value

On Wed, Jul 20, 2005 at 10:58:16AM -0400, Dan McGinn-Combs wrote:
> After running version 2.0 for a long time without looking at my logs at
> all... I've decided to take a peek. I noticed the following:
> generic-hostname smokeping[22678]: Use of uninitialized value in hash
> element at ../lib/Smokeping.pm line 921.
> generic-hostname smokeping[22678]: Use of uninitialized value in string
> ne at ../lib/Smokeping.pm line 927.
> These are lines in sub update_rrds
>     my $probeobj = $probes->{$probe};
> and
>     next if defined $justthisprobe and $probe ne $justthisprobe;

Hi,

are you still seeing these? Which 2.0 version are you using? If it's the
latest (rc5), could you please send me your config so I can try to
recreate this?

Cheers,
--

-- 
Niko

Dan McGinn-Combs | 5 Aug 2005 22:22

Re: Smokeping 2.0 Uninitialized Value

Hmmmm... how do I tell:
$VERSION="1.99004";
my $RCS_VERSION = '$Id: Smokeping.pm,v 1.5 2004/10/21 21:10:51 oetiker
Exp $';

I'll d/l the latest and give it a go.
Dan

-----Original Message-----

On Wed, Jul 20, 2005 at 10:58:16AM -0400, Dan McGinn-Combs wrote:
> After running version 2.0 for a long time without looking at my logs
at
> all... I've decided to take a peek. I noticed the following:
> generic-hostname smokeping[22678]: Use of uninitialized value in hash
> element at ../lib/Smokeping.pm line 921.
> generic-hostname smokeping[22678]: Use of uninitialized value in
string
> ne at ../lib/Smokeping.pm line 927.
> These are lines in sub update_rrds
>     my $probeobj = $probes->{$probe};
> and
>     next if defined $justthisprobe and $probe ne $justthisprobe;

Hi,

are you still seeing these? Which 2.0 version are you using? If it's the
latest (rc5), could you please send me your config so I can try to
recreate this?

(Continue reading)


Gmane