From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1140 Path: news.gmane.org!not-for-mail From: "George Georgalis" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: socklog problem... Date: Tue, 30 May 2006 23:10:55 -0400 Message-ID: <20060531031055.GO25192@run.galis.org> References: <20060531015954.GN25192@run.galis.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149045066 12417 80.91.229.2 (31 May 2006 03:11:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 31 May 2006 03:11:06 +0000 (UTC) Original-X-From: supervision-return-1376-gcsg-supervision=m.gmane.org@list.skarnet.org Wed May 31 05:10:59 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1FlH6n-0008U3-5W for gcsg-supervision@gmane.org; Wed, 31 May 2006 05:10:57 +0200 Original-Received: (qmail 9751 invoked by uid 76); 31 May 2006 03:11:18 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 9746 invoked from network); 31 May 2006 03:11:18 -0000 Mail-Followup-To: supervision@list.skarnet.org Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060531015954.GN25192@run.galis.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1140 Archived-At: On Tue, May 30, 2006 at 09:59:54PM -0400, George Georgalis wrote: > >Is this happening because it is in a FreeBSD jail? >I tried/failed to disable the ucspi test. > >Since I don't plan to listen on network for logs... >is there a good way to not compile/test that function? >or am I completely off base? oops, I was thinking "inet" -- need ucspi pretty badly. how can I grep out the cause of the error... ( echo foo; echo bar; echo baz ) |env u=U socklog ucspi u that line from ./src/socklog.check is is the last one (I can see) before the fail... and it works on command line... ( echo foo; echo bar; echo baz ) |env u=U ./command/socklog ucspi u ; echo $? U: foo U: bar U: baz 0 Humm, well it seems ./check-local is failing on the socklog portion... root@jail3:/package/admin/socklog-2.1.0/compile/ env PATH=$PATH:../command/ ./check-local socklog-check socklog-conf tryto uncat socklog Checking socklog-check... Checking socklog-conf... Checking tryto... Checking uncat... Checking socklog... listening on socklog.check.socket, starting. foo 0 listening on 127.0.0.1:12614, starting. 62.123.150.205: foo 0 U: foo U: bar U: baz 0 socklog failed. root@jail3:/package/admin/socklog-2.1.0/compile/ cat ./check-local #!/bin/sh PATH=`pwd`:$PATH for i in ${1+"$@"}; do echo "Checking $i..." env - PATH="$PATH" ctmp="`pwd`/check-tmp" $i.check 2>&1 |cat -v >$i.local ./check-diff $i || ( cat $i.local; echo "$i failed."; exit 1 ) || exit 1 done root@jail3:/package/admin/socklog-2.1.0/ cat compile/check-diff #!/bin/sh test -r "$1".dist || exit 1 test -r "$1".local || exit 1 while read i; do read j 0<&7 || exit 1 test "$i" = "$j" || exit 1 done 7<"$1".dist <"$1".local Aha Ha! here's the fix... for me. --- compile/socklog.dist.orig Wed May 31 03:07:06 2006 +++ compile/socklog.dist Wed May 31 03:07:38 2006 @@ -2,7 +2,7 @@ foo 0 listening on 127.0.0.1:12614, starting. -127.0.0.1: foo +62.123.150.205: foo 0 U: foo U: bar seems somehow we need a test for when run on a jail with an ip address, but no 127/8 available. // George -- George Georgalis, systems architect, administrator < http://galis.org/ cell:646-331-2027 mailto:george@galis.org