[smokeping-users] Re: TelnetJunOSPing module missing
Christian Hahn
hahn at berkom.de
Tue Dec 12 14:05:47 MET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Niko,
finally I got it running by modifying the probe from the
smokeping-20061130_trunk and using that probe in an Smokeping 2.0.9 environment.
The only problem I found was related to the ping command the probes uses on the
Junos router. If no probe source address is defined in the smokeping probe
config the given ping syntax is wrong and the command will not be executed
instead produces an error because the parameter for the "source" keyword is
missing.
So I added an if statement that tests for the probe source var and decides which
ping command to run on the router.
In addition some debug printouts where commented out.
You can see all the changes I made in the diff output below.
best regards,
Christian
151c151
< print OUTF "Connection is a $ok\n";
- ---
> # print OUTF "Connection is a $ok\n";
163c163,167
< @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");
> }
166c170
< print OUTF "closed Telnet connection\n";
- ---
> # print OUTF "closed Telnet connection\n";
172c176
< print OUTF "$outputline\n";
- ---
> # print OUTF "$outputline\n";
Niko Tyni wrote:
> On Wed, Nov 29, 2006 at 03:30:05PM +0100, Christian Hahn wrote:
>
>> I have a running smokeping 2.0.9 setup with fping, dns and radius
>> probes. Now I want to use the TelnetJunOSPing probe of smokeping and
>> configured it according to the documentation. But smokeping could not
>> find the corresponding module at reload. I checked and doesn't found
>> the module in /usr/share/perl5/smokeping/Smokeping/probes/
>>
>> Does anybody know where I can find the module for the probe.
>
> Hi,
>
> no version with TelnetJunOSPing has been released yet. You can find a
> development snapshot at
>
> <http://oss.oetiker.ch/smokeping/pub/trunk/>
>
> Cheers,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFfqkq6kMW7HW8620RAuVCAJ4jof/Guh2XuGv6fcWKMXr6Dg77hgCfaapQ
7NG0c2Thhfc7dpJuJRoxc/Y=
=Q2ol
-----END PGP SIGNATURE-----
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the smokeping-users
mailing list