pkgsrc/net/nagios-plugins/patches/patch-aj
bouyer a9a824245e Initial import of nagios-plugins 1.4.2, based on nagios-plugins from pkgsrc-wip.
This package contains the basic monitoring plugins for nagios.  For
more information about nagios, see the 'nagios-base' package.
2006-02-18 17:19:20 +00:00

13 lines
464 B
Text

$NetBSD: patch-aj,v 1.1.1.1 2006/02/18 17:19:20 bouyer Exp $
--- plugins-scripts/check_log.sh.orig 2005-08-04 10:29:25.000000000 -0700
+++ plugins-scripts/check_log.sh 2005-08-04 10:29:54.000000000 -0700
@@ -201,7 +201,7 @@
count=`$GREP -c "$query" $tempdiff`
# Get the last matching entry in the diff file
-lastentry=`$GREP "$query" $tempdiff | $TAIL --lines=1`
+lastentry=`$GREP "$query" $tempdiff | $TAIL -n 1`
$RM -f $tempdiff
$CAT $logfile > $oldlog