Re: setlogsock can break

2001-12-18 Thread Ed Ravin

David Leigh writes:
> 
> While we're on this subject, AIX also requires the "setlogsock":
> 
> - ($^O eq "linux" || $^O eq "openbsd") && setlogsock ('unix');
> + ($^O eq "linux" || $^O eq "openbsd" || $^O eq "aix") && 
> Sys::Syslog::setlogsock ('unix');

Given that there are so many OS's that require this setting
(Linux, (Open|Net|Free)BSD, AIX, etc.), should this be a
parameter in mon.cf ?  Also, remember that a site might change
the default settings of their syslogd to use a local (or network)
socket, which would further confuse things.

-- Ed



Re: setlogsock can break

2001-12-18 Thread David Leigh

While we're on this subject, AIX also requires the "setlogsock":

- ($^O eq "linux" || $^O eq "openbsd") && setlogsock ('unix');
+ ($^O eq "linux" || $^O eq "openbsd" || $^O eq "aix") && Sys::Syslog::setlogsock ('unix');

Thanks,

David Leigh
Advanced Technologies Enablement, IBM RTP, NC
[EMAIL PROTECTED], (919) 254-6329, T/L 444-6329

Sent by:        [EMAIL PROTECTED]
To:        mon <[EMAIL PROTECTED]>
cc:         
Subject:        setlogsock can break


Hello,

With "old" syslog module, setlogsock does not exist.
But the code breaks even if mon doesn't use it (solaris).

my $RCSID='$Id: mon 1.27 Sat, 08 Sep 2001 09:42:05 -0400 trockij $';

- use Sys::Syslog qw(:DEFAULT setlogsock);
+ use Sys::Syslog qw(:DEFAULT);

- ($^O eq "linux" || $^O eq "openbsd") && setlogsock ('unix');
+ ($^O eq "linux" || $^O eq "openbsd") && Sys::Syslog::setlogsock ('unix');

Thanks in advance for the next release.

-- 
Au revoir,
Gilles Lamiral. France, L'Hermitage (35590).
33 (0) 2 99 78 62 49
33 (0) 6 20 79 76 06




Re: setlogsock can break

2001-12-18 Thread Jim Trocki

On Tue, 18 Dec 2001, Gilles Lamiral wrote:
> 
> With "old" syslog module, setlogsock does not exist.
> But the code breaks even if mon doesn't use it (solaris).

i merged your patch into my working tree. thanks.




setlogsock can break

2001-12-17 Thread Gilles Lamiral

Hello,

With "old" syslog module, setlogsock does not exist.
But the code breaks even if mon doesn't use it (solaris).

my $RCSID='$Id: mon 1.27 Sat, 08 Sep 2001 09:42:05 -0400 trockij $';

- use Sys::Syslog qw(:DEFAULT setlogsock);
+ use Sys::Syslog qw(:DEFAULT);

- ($^O eq "linux" || $^O eq "openbsd") && setlogsock ('unix');
+ ($^O eq "linux" || $^O eq "openbsd") && Sys::Syslog::setlogsock ('unix');

Thanks in advance for the next release.

-- 
Au revoir,
Gilles Lamiral. France, L'Hermitage (35590).
33 (0) 2 99 78 62 49
33 (0) 6 20 79 76 06