From 72898b7566ea545be6ee94a91a5ec29ef9bf0aa0 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Tue, 23 Aug 2011 16:18:52 +0000 Subject: disman integration looks good now --- lib/Smokeping/probes/DismanPing.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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 to configure this if needed. +uses a pingCtlOwnerIndex of "SP on hostname" +as ownerindex by default; use B 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 ) -- cgit v1.2.3-24-g4f1b