Package: cricket Version: 1.0.5-3 Severity: normal Tags: patch Hello
Please apply the following patch which I will also report upstream. Cricket does not cut the trailing space after ifInUcastPackets in a definition like monitor-thresholds = "ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : SNMP" which is quoted from the documentation. The result is that the monitor is not able to lookup the symbol "ifInUcastPackets " and fails to get the correspondent value: [29-Jan-2007 14:53:01*] Monitor: Couldn't fetch value for 0 seconds ago from . [29-Jan-2007 14:53:01 ] /Server/localhost - netzwerk - ifInErrors : quotient : 0.1 pct : : ifInUcastPackets : SNMP passed. bye, -christian- -- System Information: Debian Release: 3.1 Architecture: i386 (i686) Kernel: Linux 2.6.18-3-686 Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-15) (ignored: LC_ALL set to [EMAIL PROTECTED]) Versions of packages cricket depends on: ii adduser 3.63 Add and remove users and groups ii cron 3.0pl1-86.0westend1 management of regular background p ii debconf 1.4.30.13 Debian configuration management sy ii librrds-perl 1.0.49-1 Time-series data storage and displ ii libsnmp-session-perl 1.07-1 Perl support for accessing SNMP-aw ii libtimedate-perl 1.1600-4 Time and date functions for Perl ii perl [libdigest-md5- 5.8.4-8sarge5 Larry Wall's Practical Extraction ii perl-suid 5.8.4-8sarge5 Runs setuid Perl scripts -- debconf information excluded
--- /usr/share/cricket/lib/Common/HandleTarget.pm 2004-05-12 18:58:45.000000000 +0200 +++ /home/ch/HandleTarget.pm 2007-01-29 14:49:00.000000000 +0100 @@ -169,7 +169,7 @@ my($actionType) = 'SNMP' ; my(@actionArgs); # search for an action tag - if ( $args =~ /^(.*)\s*:\s*(FUNC|EXEC|FILE|MAIL|META)\s*:\s*(.*)$/ ) { + if ( $args =~ /^(.*)\s*:\s*(FUNC|EXEC|FILE|MAIL|META)\s*:\s*(.*?)\s*$/ ) { $args = $1 ; $actionType = $2 ; # restore escaped colons in the monitor args field @@ -179,7 +179,7 @@ @actionArgs = split(/\s*:\s*/, $action_args); # restore escaped colons in the action args field map { $_ =~ s/\0/:/g } @actionArgs; - } elsif ( $args =~ /^(.*)\s*:\s*(SNMP|META)\s*$/ ) { + } elsif ( $args =~ /^(.*?)\s*:\s*(SNMP|META)\s*$/ ) { $args = $1 ; $actionType = $2 ; # restore escaped colons