[smokeping-users] Smokeping 2.3.3 released

Christian Hahn hahn at berkom.de
Fri Apr 4 14:01:30 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Tobi & Nico,

I've just made a dist update of Smokeping on my Debian and my Telnet Junos Pings
where not working anymore.
End of 2006 I had the same issue and made a small change to the Perl Module so
that's working for my setup and sent the Diff on the ML. It was a very generic
change so I hoped it would be accepted by you and integrated in the smokeping
sources. Seems I'm one of the few guys who really uses TelnetJunOSPing. Would by
helpful to know if anyone else _uses_ TelnetJunOSPing.

Now I've just made the same changes and its again working for me. I also attach
the diff, hope you find it useful and could integrate it in Smokeping.
Also mamyn thanks for the continuing development of Smokeping.

best wishes,
Christian

diff -u TelnetJunOSPing.pm.orig TelnetJunOSPing.pm
- --- TelnetJunOSPing.pm.orig     2008-04-04 13:31:30.000000000 +0200
+++ TelnetJunOSPing.pm  2006-12-12 13:50:56.000000000 +0100
@@ -148,7 +148,7 @@
~ #     print OUTF "target => $dest\nsource => $source\nuser => $login\n";
~      my $ok = $telnet->open(Host => $source,
~                    Port => $port);
- -     print OUTF "Connection is a $ok\n";
+#     print OUTF "Connection is a $ok\n";

~     #Authenticate
~      $telnet->waitfor('/(ogin):.*$/');
@@ -160,16 +160,20 @@
~      $telnet->waitfor('/[\@\w\-\.]+[>#][ ]*$/');
~      $telnet->print("set cli screen-length 0");
~      $telnet->waitfor('/[\@\w\-\.]+[>#][ ]*$/');
- -     @output = $telnet->cmd("ping $dest count $pings size $bytes source 
$psource");
+        if ( $psource ) {
+       @output = $telnet->cmd("ping $dest count $pings size $bytes source
$psource");
+        } else {
+       @output = $telnet->cmd("ping $dest count $pings size $bytes");
+        }
~      $telnet->print("quit");
~      $telnet->close;
- -     print OUTF "closed Telnet connection\n";
+#     print OUTF "closed Telnet connection\n";

~     my @times = ();
~     while (@output) {
~        my $outputline = shift @output;
~        chomp($outputline);
- -       print OUTF "$outputline\n";
+#      print OUTF "$outputline\n";
~         $outputline =~ /^\d+ bytes from $dest: icmp_seq=\d+ ttl=\d+
time=(\d+\.\d+) ms$/ && push(@times,$1);
~        #print OUTF "$outputline => $1\n";
~     }



Tobias Oetiker schrieb:
| Users!
|
| I have released smokeping 2.3.3. This is a minor update with a few
| improvements for, especially for master/slave operation.
|
| * use separate slave cache and longer slave timeout. this
|   helps with slave congestion -- Phillip Moore  pdm yahoo-inc.com
|
| * add an optional --pid-dir option to specify the pid directory
|   when running as a slave. --niko
|
| * slaves were not polling targets where nomasterpoll was set --tobi
|
| As usual you can get the lates version of smokeping from
|
|   http://oss.oetiker.ch/smokeping/pub
|
| The Smokeping OSS project is sponsored by:
|
| * SWITCH - The Swiss Education & Reserarch Network -
|   http://www.switch.ch/
| * Dynamic Network Services Inc - http://www.dyndns.org/
|
| If you find smokeping useful, how about becoming a sponsor too?
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFH9hiY6kMW7HW8620RAkg0AJ46bYK+/y1ysvLeANejt4HfW+9GDQCgmf3x
yegXjS1OfUnvS//FYFXDdfE=
=+PTE
-----END PGP SIGNATURE-----



More information about the smokeping-users mailing list