Picon

Errata in HPing.pm in version 2.3.6

There is a difference between HPing.pm in version 2.0.9 and 2.3.6:

Version 2.0.9:
   $self->{pingfactor} = 1000 * $2/$1

Version 2.3.6:
   $self->{pingfactor} = 1000 * $1/$2

With 2.3.6, graphics shows very high latency (over 10 or 20 seconds) with that line. Change the line like de version 2.0.9 shows correctly.


_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Picon

Re: Errata in HPing.pm in version 2.3.6

The probe is FPing.pm (nor HPing.pm)... sorry



2008/6/3 Celedonio Miranda Torresano <celemiranda <at> gmail.com>:
There is a difference between FPing.pm in version 2.0.9 and 2.3.6:

Version 2.0.9:
   $self->{pingfactor} = 1000 * $2/$1

Version 2.3.6:
   $self->{pingfactor} = 1000 * $1/$2

With 2.3.6, graphics shows very high latency (over 10 or 20 seconds) with that line. Change the line like de version 2.0.9 shows correctly.



_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Tobias Oetiker | 5 Jun 2008 01:45
Picon
Gravatar

SmokeTraceroute ...

I have just completed the integration of an mtr-like traceroute
function into smokeping (a project for a customer).

The new code is not released yet, but you can try it out  on

  http://oss.oetiker.ch/smokeping-demo

by clicking on the little "*" symbol next to the host entries in
the menu!

The traceroute frontend is written in qooxdoo, the library I am
planning on using for the smokeping frontend rewrite.

cheers
tobi

--

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi <at> oetiker.ch ++41 62 213 9902

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Brian Talley | 5 Jun 2008 03:46

Re: SmokeTraceroute ...

Nice work!  This will be a great addition...

Brian

On Thu, 5 Jun 2008 01:45:20 +0200 (CEST)
Tobias Oetiker <tobi <at> oetiker.ch> wrote:

> I have just completed the integration of an mtr-like traceroute
> function into smokeping (a project for a customer).
> 
> The new code is not released yet, but you can try it out  on
> 
>   http://oss.oetiker.ch/smokeping-demo
> 
> by clicking on the little "*" symbol next to the host entries in
> the menu!
> 
> The traceroute frontend is written in qooxdoo, the library I am
> planning on using for the smokeping frontend rewrite.
> 
> cheers
> tobi
> 

--

-- 

Brian Talley
LP Broadband :: briant--xx--lpbroadband.net

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Ryan Harden | 5 Jun 2008 05:16
Picon

Re: SmokeTraceroute ...


Excellent work. I am eternally grateful for the work you put into this.

Are there any plans to graph the results of the traceroute? Such as a
line that charts hops, with smoke that shows variations in hosts at each
hop. Or anything similar?

It would be nifty if smokeping could be used to chart path information
and visually display changes in path.

This is not a feature request, just a question. :)

/Ryan

Tobias Oetiker wrote:
| I have just completed the integration of an mtr-like traceroute
| function into smokeping (a project for a customer).
|
| The new code is not released yet, but you can try it out  on
|
|   http://oss.oetiker.ch/smokeping-demo
|
| by clicking on the little "*" symbol next to the host entries in
| the menu!
|
| The traceroute frontend is written in qooxdoo, the library I am
| planning on using for the smokeping frontend rewrite.
|
| cheers
| tobi
|

--
Ryan M. Harden, BS, KC9IHX		Office: 217-265-5192
CITES - Network Engineering		Cell:  	630-363-0365
2130 Digital Computer Lab,		Fax:    217-244-7089
1304 W. Springfield	 		email:  hardenrm <at> uiuc.edu
Urbana, IL  61801 			

	 University of Illinois - Urbana/Champaign
~                     -  All your Base -
Picon

Re: Errata in HPing.pm in version 2.3.6

Forget all... there is a issue with fping version

2008/6/3 Celedonio Miranda Torresano <celemiranda <at> gmail.com>:
The probe is FPing.pm (nor HPing.pm)... sorry



2008/6/3 Celedonio Miranda Torresano <celemiranda <at> gmail.com>:

There is a difference between FPing.pm in version 2.0.9 and 2.3.6:

Version 2.0.9:
   $self->{pingfactor} = 1000 * $2/$1

Version 2.3.6:
   $self->{pingfactor} = 1000 * $1/$2

With 2.3.6, graphics shows very high latency (over 10 or 20 seconds) with that line. Change the line like de version 2.0.9 shows correctly.




_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Jean Raby | 7 Jun 2008 03:52
Picon

problem with --static : Can't locate object method "script_name" via package "dummyCGI" (2.3.6)

Hello,

I'm trying to use smokeping 2.3.6 on OpenBSD,
I've got a simple configuration file, only one probe, one host. (see below)

I started smokeping without any arguments to let it fork and gather its data,
and I'm trying to run smokeping --static to generate static pages.
(I'll eventually setup perl + speedyCGI in the apache chroot, but I
want to keep it simple for now.)

It seems the probe is working as the rrd files are being updated.

This is what happens when I run smokeping --static :
Can't locate object method "script_name" via package "dummyCGI" at
/usr/local/libdata/perl5/site_perl/Smokeping.pm line 122.

The files under pagedir are updated when I run --static :
koider <at> nibbler[static]$ ls -l
total 16
-rw-r--r--  1 root  daemon  3024 Jun  6 21:54 Smokepings.html
-rw-r--r--  1 root  daemon     0 Jun  6 21:54 Smokepings.myhost.com.html
-rw-r--r--  1 root  daemon  2658 Jun  6 21:54 index.html

However, only the "basepage" is populated.

Any pointers would be much appreciated!

Thanks

--
Jean

Config file
------------------------
*** General ***

owner    = Joe Blake
contact  = me <at> mail.com
#mailhost = my.mail.host
sendmail = /usr/sbin/sendmail
pagedir=/var/www/htdocs/smokeping/static
imgcache = /var/www/htdocs/smokeping/img
imgurl   = /smokeping/img
datadir  = /var/db/smokeping
piddir  = /var/run/smokeping
cgiurl   = http://localhost/smokeping/cgi-bin/smokeping.cgi
smokemail = /etc/smokeping/smokemail
tmail = /etc/smokeping/tmail
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no

*** Alerts ***
to = me <at> mail.com
from = smokeping <at> somehost.com

+someloss
type = loss
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times  in a row

*** Database ***

step     = 60
pings    = 20

# consfn mrhb steps total

AVERAGE  0.5   1  43200
AVERAGE  0.5  12  4320
    MIN  0.5  12  4320
    MAX  0.5  12  4320
AVERAGE  0.5 144   720
    MAX  0.5 144   720
    MIN  0.5 144   720

*** Presentation ***

template = /etc/smokeping/basepage.html

+ charts

menu = Charts
title = The most interesting destinations

++ stddev
sorter = StdDev(entries=>4)
title = Top Standard Deviation
menu = Std Deviation
format = Standard Deviation %f

++ max
sorter = Max(entries=>5)
title = Top Max Roundtrip Time
menu = by Max
format = Max Roundtrip Time %f seconds

++ loss
sorter = Loss(entries=>5)
title = Top Packet Loss
menu = Loss
format = Packets Lost %f

++ median
sorter = Median(entries=>5)
title = Top Median Roundtrip Time
menu = by Median
format = Median RTT %f seconds

+ overview

width = 600
height = 100
range = 1d

+ detail

width = 600
height = 200
unison_tolerance = 2

"Last 3 Hours"    3h
"Last 30 Hours"   30h
"Last 10 Days"    10d
"Last 400 Days"   400d

*** Probes ***

+ FPing

binary = /usr/local/sbin/fping

*** Targets ***

probe = FPing

menu = Top
title = Network Latency Grapher
remark = Welcome to the SmokePing website of xxx Company. \
         Here you will learn all about the latency of our network.

+ Smokepings
menu = Smokepings
title = Monitored hosts

++ myhost.com
host = myhost.com

-------------------------------

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Slapansky Marius | 7 Jun 2008 11:13
Picon

Software error: Insecure dependency in open while running setuid at /usr/local/smokeping/lib/Smokeping.pm line 1045.

I installed smokeping on a slackware 12.0 machine and it works fine. It makes all the 1’st level graphics but when I click on one of them I get this error:

 

Software error:

Insecure dependency in open while running setuid at /usr/local/smokeping/lib/Smokeping.pm line 1045.

 

 

Please help.

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
Tobias Oetiker | 9 Jun 2008 07:15
Picon
Gravatar

Re: Software error: Insecure dependency in open while running setuid at /usr/local/smokeping/lib/Smokeping.pm line 1045.

Hi Marius,

I just checked with the latest version (adding -T) to the perl
line, and no such error comes up ...

what version of smokeping are you using ?

cheers
tobi

Saturday Slapansky Marius wrote:

> I installed smokeping on a slackware 12.0 machine and it works fine. It
> makes all the 1'st level graphics but when I click on one of them I get this
> error:
>
>
>
>
> Software error:
>
> Insecure dependency in open while running setuid at
> /usr/local/smokeping/lib/Smokeping.pm line 1045.
>
>
>
>
>
> Please help.
>
>

--

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi <at> oetiker.ch ++41 62 213 9902

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Jean Raby | 9 Jun 2008 15:03
Picon

Re: problem with --static : Can't locate object method "script_name" via package "dummyCGI" (2.3.6)

Thanks, --static works with the provided patch.

As for the interactive features,
I`m planning to setup perl and speedy in the apache chroot on OpenBSD,
I just haven't had the time to do so,  using --static seemed to be a
quick alternative.

Thanks again for the patch.

--
Jean

On 6/9/08, Tobias Oetiker <tobi <at> oetiker.ch> wrote:
> Hi Jean,
>
> The --static method for building the output has not been tested in
> a long time ... many of the newer more interactive features of
> smokeping will not work ...
>
>
> Anyway, for the particular bug you mention, you can use the
> following patch.
>
> Index: Smokeping.pm
> ===================================================================
> --- Smokeping.pm        (revision 1006)
> +++ Smokeping.pm        (working copy)
>  <at>  <at>  -72,6 +72,10  <at>  <at> 
>      return wantarray ? () : "";
>  }
>
> +sub dummyCGI::script_name {
> +    return wantarray ? () : "";
> +}
> +
>  sub load_probes ($){
>      my $cfg = shift;
>      my %prbs;
>
> cheers
> tobi
>
>
> Friday Jean Raby wrote:
>
>> Hello,
>>
>> I'm trying to use smokeping 2.3.6 on OpenBSD,
>> I've got a simple configuration file, only one probe, one host. (see
>> below)
>>
>> I started smokeping without any arguments to let it fork and gather its
>> data,
>> and I'm trying to run smokeping --static to generate static pages.
>> (I'll eventually setup perl + speedyCGI in the apache chroot, but I
>> want to keep it simple for now.)
>>
>> It seems the probe is working as the rrd files are being updated.
>>
>> This is what happens when I run smokeping --static :
>> Can't locate object method "script_name" via package "dummyCGI" at
>> /usr/local/libdata/perl5/site_perl/Smokeping.pm line 122.
>>
>> The files under pagedir are updated when I run --static :
>> koider <at> nibbler[static]$ ls -l
>> total 16
>> -rw-r--r--  1 root  daemon  3024 Jun  6 21:54 Smokepings.html
>> -rw-r--r--  1 root  daemon     0 Jun  6 21:54 Smokepings.myhost.com.html
>> -rw-r--r--  1 root  daemon  2658 Jun  6 21:54 index.html
>>
>> However, only the "basepage" is populated.
>>
>> Any pointers would be much appreciated!
>>
>> Thanks
>>
>> --
>> Jean
>>
>>
>>
>> Config file
>> ------------------------
>> *** General ***
>>
>> owner    = Joe Blake
>> contact  = me <at> mail.com
>> #mailhost = my.mail.host
>> sendmail = /usr/sbin/sendmail
>> pagedir=/var/www/htdocs/smokeping/static
>> imgcache = /var/www/htdocs/smokeping/img
>> imgurl   = /smokeping/img
>> datadir  = /var/db/smokeping
>> piddir  = /var/run/smokeping
>> cgiurl   = http://localhost/smokeping/cgi-bin/smokeping.cgi
>> smokemail = /etc/smokeping/smokemail
>> tmail = /etc/smokeping/tmail
>> # specify this to get syslog logging
>> syslogfacility = local0
>> # each probe is now run in its own process
>> # disable this to revert to the old behaviour
>> # concurrentprobes = no
>>
>> *** Alerts ***
>> to = me <at> mail.com
>> from = smokeping <at> somehost.com
>>
>> +someloss
>> type = loss
>> # in percent
>> pattern = >0%,*12*,>0%,*12*,>0%
>> comment = loss 3 times  in a row
>>
>> *** Database ***
>>
>> step     = 60
>> pings    = 20
>>
>> # consfn mrhb steps total
>>
>> AVERAGE  0.5   1  43200
>> AVERAGE  0.5  12  4320
>>     MIN  0.5  12  4320
>>     MAX  0.5  12  4320
>> AVERAGE  0.5 144   720
>>     MAX  0.5 144   720
>>     MIN  0.5 144   720
>>
>> *** Presentation ***
>>
>> template = /etc/smokeping/basepage.html
>>
>> + charts
>>
>> menu = Charts
>> title = The most interesting destinations
>>
>> ++ stddev
>> sorter = StdDev(entries=>4)
>> title = Top Standard Deviation
>> menu = Std Deviation
>> format = Standard Deviation %f
>>
>> ++ max
>> sorter = Max(entries=>5)
>> title = Top Max Roundtrip Time
>> menu = by Max
>> format = Max Roundtrip Time %f seconds
>>
>> ++ loss
>> sorter = Loss(entries=>5)
>> title = Top Packet Loss
>> menu = Loss
>> format = Packets Lost %f
>>
>> ++ median
>> sorter = Median(entries=>5)
>> title = Top Median Roundtrip Time
>> menu = by Median
>> format = Median RTT %f seconds
>>
>> + overview
>>
>> width = 600
>> height = 100
>> range = 1d
>>
>> + detail
>>
>> width = 600
>> height = 200
>> unison_tolerance = 2
>>
>> "Last 3 Hours"    3h
>> "Last 30 Hours"   30h
>> "Last 10 Days"    10d
>> "Last 400 Days"   400d
>>
>> *** Probes ***
>>
>> + FPing
>>
>> binary = /usr/local/sbin/fping
>>
>> *** Targets ***
>>
>> probe = FPing
>>
>> menu = Top
>> title = Network Latency Grapher
>> remark = Welcome to the SmokePing website of xxx Company. \
>>          Here you will learn all about the latency of our network.
>>
>> + Smokepings
>> menu = Smokepings
>> title = Monitored hosts
>>
>> ++ myhost.com
>> host = myhost.com
>>
>> -------------------------------
>>
>> _______________________________________________
>> smokeping-users mailing list
>> smokeping-users <at> lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>>
>>
>
> --
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
> http://it.oetiker.ch tobi <at> oetiker.ch ++41 62 213 9902
>

_______________________________________________
smokeping-users mailing list
smokeping-users <at> lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users


Gmane