Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* DU 4.0D & syslogd
@ 1998-07-07  4:00 Jyrki Havia
  1998-07-07  4:00 ` Serguei Patchkovskii
  0 siblings, 1 reply; 9+ messages in thread
From: Jyrki Havia @ 1998-07-07  4:00 UTC (permalink / raw)



	We have Digital Unix 4.0D (with patchset 1) logging
	via syslog from remote machines.

	Under 4.0B the format of logline was

Jul  7 13:13:30 <originating hostname> <message...>

	Now, under 4.0D the format is

Jul  7 13:13:30 <the machine itself> <message...>

	I.e. the syslogd does not put the remote hostname as the
	host of message, instead it replaces it with it's own
	hostname.

	Anyone seen similar behaviour? How to fix?

	Remote hosts are both in /etc/hosts (first source in
	/etc/svc.conf) and in name service. 

	I even restored from backup an old message file to
	be positive the behaviour has changed.
-- 
Jyrki.Havia@Helsinki.FI, University of Helsinki, Computing Centre



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DU 4.0D & syslogd
  1998-07-07  4:00 DU 4.0D & syslogd Jyrki Havia
@ 1998-07-07  4:00 ` Serguei Patchkovskii
  1998-07-09  4:00   ` Jay Olson
  1998-07-09  4:00   ` Tim Rosmus
  0 siblings, 2 replies; 9+ messages in thread
From: Serguei Patchkovskii @ 1998-07-07  4:00 UTC (permalink / raw)


Jyrki Havia (havia@cc.helsinki.fi) wrote:

: 	We have Digital Unix 4.0D (with patchset 1) logging
: 	via syslog from remote machines.

: 	Under 4.0B the format of logline was

: Jul  7 13:13:30 <originating hostname> <message...>

: 	Now, under 4.0D the format is

: Jul  7 13:13:30 <the machine itself> <message...>

: 	I.e. the syslogd does not put the remote hostname as the
: 	host of message, instead it replaces it with it's own
: 	hostname.

Are you *quite* sure you are really seeing the *remote* syslog
messaged? The syslogd shipped with the original 4.0D is broken
(or the documentation is broken, it depends on your point of
view) and does not allow any remote logging. In order to enable
remote logging with plain 4.0D, you'll have to create an 
(undocumented) file /etc/syslog.auth. Since its not documented (<g>),
it is hard to say that the intended contents of this file are.
By poking inside the binary and experimenting a bit, I got this
format to work for me:

remote_host_name_1 all
remote_host_name_2 all
etc...

This may have been fixed in patchset 1, but I do not see 
any reference to it in the release notes (I never bothered
to install it - if it aint broke, don't fix it).

Now, if you also want to use remote logging for binlogd, Digital's 
DU wizards managed to break that one in 4.0D, too. The binary
looks for the binlog/udp port in the /etc/services, while the
/etc/services provided with the distribution defines binlogd/udp
instead. Took a bit of hair-pulling to get that one.

Which makes me wonder that sort of the quality assurance and
regression testing DU gets before the release. Probably none...

Regards,

/Serge.P



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DU 4.0D & syslogd
  1998-07-07  4:00 ` Serguei Patchkovskii
@ 1998-07-09  4:00   ` Jay Olson
  1998-07-09  4:00   ` Tim Rosmus
  1 sibling, 0 replies; 9+ messages in thread
From: Jay Olson @ 1998-07-09  4:00 UTC (permalink / raw)


Serguei Patchkovskii wrote:
> 
> The syslogd shipped with the original 4.0D is broken
> (or the documentation is broken, it depends on your point of
> view) and does not allow any remote logging. In order to enable
> remote logging with plain 4.0D, you'll have to create an
> (undocumented) file /etc/syslog.auth. Since its not documented (<g>),
> it is hard to say that the intended contents of this file are.
> By poking inside the binary and experimenting a bit, I got this
> format to work for me:
> 
> remote_host_name_1 all
> remote_host_name_2 all
> etc...
> 

Thanks for an interesting tip. I sometimes like to get syslog messages
from an Ascend Pipeline 50 router when I am debugging ISDN connection
problems. It works fine logging to a 4.0a machine, but it has never
worked logging to a 4.0d machine. I thought it might be something
related to having two ethernet cards, but it looks like that wasn't the
problem.

By the way, you have to put the canonical host name in syslog.auth
(presumably whatever gethostbyaddr returns). It doesn't seem to work
with just an IP address.
-- 
	- Jay Olson (jjo "at" triton "dot" com)
	Triton Software Group Ltd.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DU 4.0D & syslogd
  1998-07-07  4:00 ` Serguei Patchkovskii
  1998-07-09  4:00   ` Jay Olson
@ 1998-07-09  4:00   ` Tim Rosmus
  1998-07-09  4:00     ` Serguei Patchkovskii
  1 sibling, 1 reply; 9+ messages in thread
From: Tim Rosmus @ 1998-07-09  4:00 UTC (permalink / raw)


patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) writes:

>Jyrki Havia (havia@cc.helsinki.fi) wrote:

>: 	We have Digital Unix 4.0D (with patchset 1) logging
>: 	via syslog from remote machines.

>: 	Under 4.0B the format of logline was

>: Jul  7 13:13:30 <originating hostname> <message...>

>: 	Now, under 4.0D the format is

>: Jul  7 13:13:30 <the machine itself> <message...>

>: 	I.e. the syslogd does not put the remote hostname as the
>: 	host of message, instead it replaces it with it's own
>: 	hostname.

>Are you *quite* sure you are really seeing the *remote* syslog
>messaged? The syslogd shipped with the original 4.0D is broken
>(or the documentation is broken, it depends on your point of
>view) and does not allow any remote logging. In order to enable
>remote logging with plain 4.0D, you'll have to create an 
>(undocumented) file /etc/syslog.auth. Since its not documented (<g>),
>it is hard to say that the intended contents of this file are.
>By poking inside the binary and experimenting a bit, I got this
>format to work for me:

The syslog changes are noted on page 4-14 of the Release notes for
4.0D.
-- 
                Tim Rosmus <trosmus@nwnexus.net>
                   Postmaster / USENET / DNS
                      Northwest Nexus Inc.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DU 4.0D & syslogd
  1998-07-09  4:00   ` Tim Rosmus
@ 1998-07-09  4:00     ` Serguei Patchkovskii
  1998-07-10  4:00       ` Jyrki Havia
  0 siblings, 1 reply; 9+ messages in thread
From: Serguei Patchkovskii @ 1998-07-09  4:00 UTC (permalink / raw)


Tim Rosmus (trosmus@beaker.nwnexus.com) wrote:

: The syslog changes are noted on page 4-14 of the Release notes for
: 4.0D.

.... which is of course NOT the proper place to document system
configuration files. But then, you already know this. And so
should whoever had designed this "feature" in.

Regards,

/Serge.P



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DU 4.0D & syslogd
  1998-07-09  4:00     ` Serguei Patchkovskii
@ 1998-07-10  4:00       ` Jyrki Havia
  1998-07-10  4:00         ` Tim Rosmus
  1998-07-12  4:00         ` Charles John Young, Jr.
  0 siblings, 2 replies; 9+ messages in thread
From: Jyrki Havia @ 1998-07-10  4:00 UTC (permalink / raw)


patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) writes:

> Tim Rosmus (trosmus@beaker.nwnexus.com) wrote:

> : The syslog changes are noted on page 4-14 of the Release notes for
> : 4.0D.

> .... which is of course NOT the proper place to document system
> configuration files. But then, you already know this. And so
> should whoever had designed this "feature" in.

	And, it doesn't work at all.

	Well, with one (1) host, it works as advertised.

	With 27 hosts on that file:

kantti# file /core 
/core:  core dump, generated from 'syslogd'

	With 16 hosts no crash, but no logging.

	So, logging goes to a Sun now, sadly.
-- 
Jyrki.Havia@Helsinki.FI, University of Helsinki, Computing Centre



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DU 4.0D & syslogd
  1998-07-10  4:00       ` Jyrki Havia
@ 1998-07-10  4:00         ` Tim Rosmus
  1998-07-13  4:00           ` Paul Szabo
  1998-07-12  4:00         ` Charles John Young, Jr.
  1 sibling, 1 reply; 9+ messages in thread
From: Tim Rosmus @ 1998-07-10  4:00 UTC (permalink / raw)


havia@cc.helsinki.fi (Jyrki Havia) writes:

>patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) writes:
>> Tim Rosmus (trosmus@beaker.nwnexus.com) wrote:
>> : The syslog changes are noted on page 4-14 of the Release notes for
>> : 4.0D.
>> .... which is of course NOT the proper place to document system
>> configuration files. But then, you already know this. And so
>> should whoever had designed this "feature" in.

>	And, it doesn't work at all.
>	Well, with one (1) host, it works as advertised.
>	With 27 hosts on that file:

>kantti# file /core 
>/core:  core dump, generated from 'syslogd'

>	With 16 hosts no crash, but no logging.
>	So, logging goes to a Sun now, sadly.


Hmm, strange.  We have 57 entries in there, mostly portmasters, and
it's logging everyone of them with out a crash for 9 days now, which 
is when I did the update

-- 
                Tim Rosmus <trosmus@nwnexus.net>
                   Postmaster / USENET / DNS
                      Northwest Nexus Inc.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DU 4.0D & syslogd
  1998-07-10  4:00       ` Jyrki Havia
  1998-07-10  4:00         ` Tim Rosmus
@ 1998-07-12  4:00         ` Charles John Young, Jr.
  1 sibling, 0 replies; 9+ messages in thread
From: Charles John Young, Jr. @ 1998-07-12  4:00 UTC (permalink / raw)
  To: Jyrki Havia

Jyrki Havia wrote:
> 
> patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) writes:
> 
> > Tim Rosmus (trosmus@beaker.nwnexus.com) wrote:
> 
> > : The syslog changes are noted on page 4-14 of the Release notes for
> > : 4.0D.
> 
> > .... which is of course NOT the proper place to document system
> > configuration files. But then, you already know this. And so
> > should whoever had designed this "feature" in.
> 
>         And, it doesn't work at all.
> 
>         Well, with one (1) host, it works as advertised.
> 
>         With 27 hosts on that file:
> 
> kantti# file /core
> /core:  core dump, generated from 'syslogd'
> 
>         With 16 hosts no crash, but no logging.
> 
>         So, logging goes to a Sun now, sadly.
> --
> Jyrki.Havia@Helsinki.FI, University of Helsinki, Computing Centre

I experienced the same problem (DU 4.0D & patch kit 0001); I found an
explanation on the Alpha-OSF-Managers mailing list archives at:

     http://www.ornl.gov/its/archives/mailing-lists/

as well as a solution; see:

    
http://www.ornl.gov/its/archives/mailing-lists/alpha-osf-managers/1998/04/msg00541.html

My thanks to Gerhard Nolte for posting this, as well as making this fix
available.


John Young, Engineering Computing Center, University of Houston



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: DU 4.0D & syslogd
  1998-07-10  4:00         ` Tim Rosmus
@ 1998-07-13  4:00           ` Paul Szabo
  0 siblings, 0 replies; 9+ messages in thread
From: Paul Szabo @ 1998-07-13  4:00 UTC (permalink / raw)


Tim Rosmus wrote:
> havia@cc.helsinki.fi (Jyrki Havia) writes:
> >patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) writes:
> >> Tim Rosmus (trosmus@beaker.nwnexus.com) wrote:
> >> : The syslog changes are noted on page 4-14 of the Release notes for
> >> : 4.0D.
> >> .... which is of course NOT the proper place to document system
> >> configuration files. But then, you already know this. And so
> >> should whoever had designed this "feature" in.
> >       And, it doesn't work at all.
> >       Well, with one (1) host, it works as advertised.
> >       With 27 hosts on that file:
> >kantti# file /core
> >/core:  core dump, generated from 'syslogd'
> >       With 16 hosts no crash, but no logging.
> >       So, logging goes to a Sun now, sadly.
> 
> Hmm, strange.  We have 57 entries ... \x18with out a crash for 9 daysnow...

syslogd will crash straight away at startup, or run fine, depending on the
exact contents of your /etc/syslog.auth file. You need a patch for syslogd
from the DEC support people (a patch is available for 4.0D, and it seems 
to run fine on 4.0B too).

-- 
[ The email address is munged in the headers and in the lines below, in an ]
[ attempt to avoid junk (spam) mail. Sorry about the inconvenience caused. ]
-- 
Paul Szabo - System Manager     //      School of Mathematics and Statistics
psz at maths . usyd . edu . au //  University of Sydney, NSW 2006, Australia



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~1998-07-13  4:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-07  4:00 DU 4.0D & syslogd Jyrki Havia
1998-07-07  4:00 ` Serguei Patchkovskii
1998-07-09  4:00   ` Jay Olson
1998-07-09  4:00   ` Tim Rosmus
1998-07-09  4:00     ` Serguei Patchkovskii
1998-07-10  4:00       ` Jyrki Havia
1998-07-10  4:00         ` Tim Rosmus
1998-07-13  4:00           ` Paul Szabo
1998-07-12  4:00         ` Charles John Young, Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox