diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2011-08-23 18:18:52 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2011-08-23 18:18:52 +0200 |
commit | 72898b7566ea545be6ee94a91a5ec29ef9bf0aa0 (patch) | |
tree | adcb86076704199a569ce80b75603ece8d54b8c2 /lib/Smokeping | |
parent | d2815512ed313bf5ce7800c8b84e61aa173566df (diff) | |
download | smokeping-72898b7566ea545be6ee94a91a5ec29ef9bf0aa0.tar.gz smokeping-72898b7566ea545be6ee94a91a5ec29ef9bf0aa0.tar.xz |
disman integration looks good now
Diffstat (limited to 'lib/Smokeping')
-rw-r--r-- | lib/Smokeping/probes/DismanPing.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Smokeping/probes/DismanPing.pm b/lib/Smokeping/probes/DismanPing.pm index c264c31..4c53d2f 100644 --- a/lib/Smokeping/probes/DismanPing.pm +++ b/lib/Smokeping/probes/DismanPing.pm @@ -55,8 +55,8 @@ This probe requires read/write access to the pingCtlTable. It also requires read-only access to the pingResultsTable and the pingHistoryTable. The DISMAN-PING-MIB is structured such that it is possible to restrict by pingCtlOwnerIndex. This probe -uses a pingCtlOwnerIndex of "SP on hostname ICPM ping" -by default; use B<ownerindex> to configure this if needed. +uses a pingCtlOwnerIndex of "SP on hostname" +as ownerindex by default; use B<ownerindex> to configure this if needed. ${e}head2 SAMPLE JUNOS CONFIGURATION @@ -413,9 +413,9 @@ sub ping($) { # get a unique test name. sub idx ($) { my $t = shift; - my $ownerindex = substr($t->{vars}{ownerindex} || 'SP on '.hostname().' ICMP ping',0,32); + my $ownerindex = substr($t->{vars}{ownerindex} || 'SP on '.hostname(),0,32); print STDERR $ownerindex; - my $testname = $t->{vars}{host}; + my $testname = substr($t->{vars}{host} . ' ICMP ping',0,32); return join( ".", length($ownerindex), unpack( "C*", $ownerindex ), length($testname), unpack( "C*", $testname ) |