Date: Mon, 23 Apr 2007 14:38:56 +0400 (MSD) From: Denis Shaposhnikov <dsh@vlink.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/112025: Update port: net-mgmt/nagiosgraph (add fix for Nagios 2.9) Message-ID: <200704231038.l3NAcu19083567@neva.vlink.ru> Resent-Message-ID: <200704231040.l3NAe36Q091174@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 112025 >Category: ports >Synopsis: Update port: net-mgmt/nagiosgraph (add fix for Nagios 2.9) >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Apr 23 10:40:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Denis Shaposhnikov >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD neva.vlink.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Fri Mar 16 09:20:13 MSK 2007 dsh@neva.vlink.ru:/var/FreeBSD/obj/var/FreeBSD/src/sys/MYNERIC i386 >Description: I've added a patch to remove perfdata.log after processing it. This prevent unlimited growing of this file because nobody else delete it. >How-To-Repeat: >Fix: diff -Nru --exclude=.svn nagiosgraph.orig/Makefile nagiosgraph/Makefile --- nagiosgraph.orig/Makefile Mon Apr 23 14:34:11 2007 +++ nagiosgraph/Makefile Mon Apr 23 08:41:08 2007 @@ -7,7 +7,7 @@ PORTNAME= nagiosgraph PORTVERSION= 0.8.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff -Nru --exclude=.svn nagiosgraph.orig/files/patch-insert.pl nagiosgraph/files/patch-insert.pl --- nagiosgraph.orig/files/patch-insert.pl Thu Jan 1 03:00:00 1970 +++ nagiosgraph/files/patch-insert.pl Mon Apr 23 08:41:08 2007 @@ -0,0 +1,22 @@ +Index: insert.pl +=================================================================== +--- insert.pl (.../vendor/nagiosgraph/0.8.2/insert.pl) (revision 1211) ++++ insert.pl (.../trunk/src/nagiosgraph/insert.pl) (revision 1211) +@@ -148,9 +148,14 @@ + if ( $ARGV[0] ) { + @inputlines = $ARGV[0]; + } elsif ( defined $Config{perflog} ) { +- open PERFLOG, $Config{perflog}; +- @inputlines = <PERFLOG>; +- close PERFLOG ++ if (-s $Config{perflog}) { ++ my $worklog = $Config{perflog} . ".nagiosgraph"; ++ rename($Config{perflog}, $worklog); ++ open PERFLOG, $worklog; ++ @inputlines = <PERFLOG>; ++ close PERFLOG; ++ unlink($worklog); ++ } + } + + # Quit if there are no data to process >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704231038.l3NAcu19083567>