No logging in Solaris 9 (with workaround) - question?

René Berber r.berber at computer.org
Fri Sep 15 01:50:58 IST 2006


René Berber wrote:

> Randy Fishel wrote:
> [snip]
>>> Testing other Solaris servers:
>>>
>>> Solaris 8  / perl 5.6.1(AS) /  doesn't work as above, it works with
>>> commented else
>>    Try using 'inet', instead of 'udp', and see if that works.
> 
> Solaris 8 / perl 5.6.1(AS) / works fine with inet, as well as w/o setlogsock()
> Solaris 9 / perl 5.8.0     / same result as Sol8, but see note[1].
> 
> [1] The output is different btw. the test that uses setlogsock('inet') and the one that just opens the log w/o using setlogsock(), the second test's output is in normal syslog format, the first shows a different host name (localhost actually) and doesn't show [ID facility.severity]; same output as the first test happens with 'udp'.

This last difference in output is said to be a bug in the Solaris syslog (ref: http://rt.cpan.org/Public/Bug/Display.html?id=19622), so I changed again the call to:

use Sys::Syslog qw(:DEFAULT setlogsock);
...
	setlogsock('native');

Now the output from MS looks normal (hostname, ID, facility, & level is correct).  Notice I made the above 2 changes, I never tested if the setlogsock() call was returning false since the default set didn't include it.
-- 
René Berber



More information about the MailScanner mailing list