Re: [osol-discuss] syslog-ng?

2010-04-01 Thread dmpk2k
It would be nice if something was done about the current syslog.

The last time I used it for centralized logging, things didn't quite turn out 
like I hoped. Solaris' syslog is limited, delicate, and only supports UDP. 

Also, I found a bug where the workaround was in an email from 1994 or 1996. Oi.
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] syslog-ng?

2010-03-31 Thread Casper . Dik

>casper@sun.com wrote:
>> Clearly syslog-ng needs to be able to pick up such messages *and* create a 
>> door where it can say "yes, I'm still running".
>
>Wouldn't it be better to use SMF for that now instead of a custom door
>solution for just that one service?

Considering that we need to call that door *every time* we log a message, 
wouldn't that be *really* expensive?  I'm afraid that will pull in a few 
extra libraries into libc.

The current code is broken:

/* output the message to the local logger */
if ((putmsg(LogFile, &ctl, &dat, 0) >= 0) && syslogd_ok())
return;
if (!(LogStat & LOG_CONS))
return;


The call to syslogd_ok() should be done *after* checking that LOG_CONS is
set and the putmsg() failed.

Casper

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] syslog-ng?

2010-03-31 Thread Alan Coopersmith
casper@sun.com wrote:
> Clearly syslog-ng needs to be able to pick up such messages *and* create a 
> door where it can say "yes, I'm still running".

Wouldn't it be better to use SMF for that now instead of a custom door
solution for just that one service?

-- 
-Alan Coopersmith-alan.coopersm...@oracle.com
 Oracle Solaris Platform Engineering: X Window System

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] syslog-ng?

2010-03-31 Thread Casper . Dik

>Saw someone in opensolaris-help having trouble building syslog-ng,
>and it got me to wondering why that hasn't been integrated (perhaps
>with any changes needed to support doors rather than a Unix domain
>socket for local communication).
>
>AFAIK, the existing syslog has a lot less functionality.  Aside from
>using doors for local communication, does it have any _more_ functionality
>than syslog-ng?


syslog does not use doors to log messages; it uses the door to find out
whether syslog is still up and running.  It logs the messages in some
stream device.  (/dev/sysmsg or some such).

Clearly syslog-ng needs to be able to pick up such messages *and* create a 
door where it can say "yes, I'm still running".

Casper

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Syslog-ng?

2010-01-05 Thread Predrag Zecevic
I was able to compile and install it using http://pkgbuild.sourceforge.net/

a) Install SFE environment and build pkgtool and cd 
/path/to/build/of/packages/spec-files-extra.2009116
b) pkgtool build-only --svr4 --download --autodeps --interactive 
SFEeventlog.spec (build-only, because installation failed - requires manual 
intervention)
pfexec pkgadd -d /path/to/build/of/packages/PKGS SFEeventlog (install 
package)
c) pkgtool build --svr4 --download --autodeps --interactive SFEsyslog-ng.spec

In step c) you will have build and installed syslog.ng package:
pkginfo | grep SFE
SFE SFEeventlog Library needed by Syslog-ng
SFE SFEsyslog-ng   Syslog-ng tries to fill the gaps original 
syslogd's were lacking
SFE SFEsyslog-ng-rootSyslog-ng tries to fill the gaps original 
syslogd's were lacking - / filesystem

Note that i have used svr4 option (you can experiment with IPS, but you need 
too install local IPS server)

Regards.
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Syslog-ng?

2009-12-07 Thread Rob McMahon

On 07/12/2009 14:34, Eugene Vilensky wrote:

Hi,
Is syslog-ng available for OpenSolaris, through IPS or otherwise?  If
I were to build it, is there an "easy" metapackage for the build
system, maybe analogous to Red Hat's rpmbuild+dependencies or Debian's
"build-essential" metapackage?

   

I'm running syslog-ng-2.0.5, and it was essentially a no-brainer.  Just

./configure CC=cc CFLAGS=-O
make
make install

> ./config.status --version
config.status
configured by ./configure, generated by GNU Autoconf 2.61,
  with options "'CC=cc' 'CFLAGS=-O'"
>

I knocked up an SMF service for it.  (I just copied the standard syslog 
files and tweaked them.) XML and script attached.


Cheers,

Rob

--
E-Mail: rob.mcma...@warwick.ac.uk   PHONE:  +44 24 7652 3037
Rob McMahon, IT Services, Warwick University, Coventry, CV4 7AL, England

#!/sbin/sh
#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)system-log 1.1806/10/25 SMI"

. /lib/svc/share/smf_include.sh

if [ ! -f /etc/syslog-ng/syslog-ng.conf ]; then
echo "/etc/syslog-ng/syslog-ng.conf is missing. Exiting."
exit $SMF_EXIT_ERR_CONFIG
fi

if [ ! -x /usr/local/sbin/syslog-ng ]; then
echo "Executable /usr/local/sbin/syslog-ng not found. Exiting"
exit $SMF_EXIT_ERR_CONFIG
fi
 
if [ "${_INIT_ZONENAME:=`/sbin/zonename`}" = "global" ]; then
#
# Before syslogd starts, save any messages from
# previous crash dumps so that messages appear
# in chronological order.
#
/usr/bin/savecore -m
if [ -r /etc/dumpadm.conf ]; then
. /etc/dumpadm.conf
[ -n "$DUMPADM_DEVICE" -a "x$DUMPADM_DEVICE" != xswap ] && \
/usr/bin/savecore -m -f $DUMPADM_DEVICE
fi
fi
if [ ! -f /var/adm/messages ]; then
/usr/bin/cp /dev/null /var/adm/messages
/usr/bin/chmod 0644 /var/adm/messages
fi

/usr/local/sbin/syslog-ng -f /etc/syslog-ng/syslog-ng.conf >/dev/msglog 2>&1 &








	

	

	
		
	

	
	
		
	

	
	
		
	

	
	
		
	

	
		
	

	
	

	

	

	
		
		
	

	

	
		
			 system log
			
		
		
			
		
	



___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Re: [osol-discuss] Syslog-ng?

2009-12-07 Thread Casper . Dik


>> Solaris Syslog doesn't log using a door.
>> 
>> Solaris logs on "/dev/conslog" but uses the door only
>> to determine if the 
>> syslogd is running.
>> 
>> Casper
>
>I always wondered at the sanity of using a door for this purpose.

My biggest problem with the code is that syslogd_ok() is always called, 
even when we're not using the data.

Casper

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Syslog-ng?

2009-12-07 Thread Gary Gendel
> 
> >On Mon, Dec 7, 2009 at 8:34 AM, Eugene Vilensky
> =
> > wrote:
> >> Hi,
> >> Is syslog-ng available for OpenSolaris, through
> IPS or otherwise? =
> >=A0If
> >> I were to build it, is there an "easy" metapackage
> for the build
> >> system, maybe analogous to Red Hat's
> rpmbuild+dependencies or Debia=
> >n's
> >> "build-essential" metapackage?
> >
> >I doubt that if it were installed on OpenSolaris
> that it would work
> >for processing logs for local programs.  This is
> because the things
> >that do the logging are going to use libc's
> implementation of
> >syslog(3C), which logs via a door (see
> libdoor(3lib)).  Doors are
> >unique to [Open]Solaris and as such syslog-ng is
> unlikely to be
> >listening for log messages at /etc/.syslog_door.
> 
> 
> Solaris Syslog doesn't log using a door.
> 
> Solaris logs on "/dev/conslog" but uses the door only
> to determine if the 
> syslogd is running.
> 
> Casper

I always wondered at the sanity of using a door for this purpose.

Gary
-- 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Syslog-ng?

2009-12-07 Thread Casper . Dik

>On Mon, Dec 7, 2009 at 8:34 AM, Eugene Vilensky =
> wrote:
>> Hi,
>> Is syslog-ng available for OpenSolaris, through IPS or otherwise? =
>=A0If
>> I were to build it, is there an "easy" metapackage for the build
>> system, maybe analogous to Red Hat's rpmbuild+dependencies or Debia=
>n's
>> "build-essential" metapackage?
>
>I doubt that if it were installed on OpenSolaris that it would work
>for processing logs for local programs.  This is because the things
>that do the logging are going to use libc's implementation of
>syslog(3C), which logs via a door (see libdoor(3lib)).  Doors are
>unique to [Open]Solaris and as such syslog-ng is unlikely to be
>listening for log messages at /etc/.syslog_door.


Solaris Syslog doesn't log using a door.

Solaris logs on "/dev/conslog" but uses the door only to determine if the 
syslogd is running.

Casper


___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Syslog-ng?

2009-12-07 Thread Mike Gerdts
On Mon, Dec 7, 2009 at 8:34 AM, Eugene Vilensky  wrote:
> Hi,
> Is syslog-ng available for OpenSolaris, through IPS or otherwise?  If
> I were to build it, is there an "easy" metapackage for the build
> system, maybe analogous to Red Hat's rpmbuild+dependencies or Debian's
> "build-essential" metapackage?

I doubt that if it were installed on OpenSolaris that it would work
for processing logs for local programs.  This is because the things
that do the logging are going to use libc's implementation of
syslog(3C), which logs via a door (see libdoor(3lib)).  Doors are
unique to [Open]Solaris and as such syslog-ng is unlikely to be
listening for log messages at /etc/.syslog_door.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org