On Mon, Apr 11, 2005 at 03:55:01PM +0100, Alex David Shadrach Hooper wrote:
> I'm trying to run Mon on solaris
> (SunOS unified-ext 5.8 Generic_108528-13 sun4u sparc SUNW,UltraAX-e2)
> and keep getting the error
>
> Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4
> at /usr/local/lib/perl5/5.8.0/sun4-solaris/Socket.pm line 373.
>
> which is caused by (I think) implicit calls to Sys::Syslog::setlogsock
> on log attempts. I just wanted to check whether this was a known
> problem (with a known fix) before scrambling around in the code...
What type of socket does Solaris use for syslog? Is it one of those
funky door things, a Unix domain socket, or a UDP socket? You might
want to start by playing with this code in Mon (line numbers approximate):
229
230 setlogsock('unix')
231 if grep /^ $^O $/xo, ("linux", "openbsd", "freebsd", "netbsd");
232
233 openlog ("mon", "cons,pid", $CF{"SYSLOG_FACILITY"});
And do something with the setlogsock() that's appropriate for Solaris
and/or the way you have syslog set up there.
If that doesn't help, write a quick sample program that sends a few log
entries using the example code in the man page for Sys::Syslog.
Does that reproduce the problem?
-- Ed
_______________________________________________
mon mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/mon