On a Solaris 10 b72 machine, I have lines like this in syslog.conf:
daemon,local5.info ifdef(`LOGHOST', /var/adm/tcpd.log, @loghost)
Loghost is defined in DNS and the /etc/hosts file, but syslog still
logs only to the local file. Has something changed since Solaris 9,
or is something mysterious wrong?
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
|
|
0
|
|
|
|
Reply
|
mills
|
2/3/2005 2:13:35 AM |
|
Gary Mills <mills@cc.umanitoba.ca> wrote:
: On a Solaris 10 b72 machine, I have lines like this in syslog.conf:
: daemon,local5.info ifdef(`LOGHOST', /var/adm/tcpd.log, @loghost)
: Loghost is defined in DNS and the /etc/hosts file, but syslog still
: logs only to the local file. Has something changed since Solaris 9,
: or is something mysterious wrong?
Maybe worthless suggestion but check to make sure loghost isn't defined
twice in /etc/hosts. I ran into the same problem playing around with 10,
local file worked, loghost didn't and that was the problem.
I don't remember earlier versions automatically adding loghost to /etc/hosts
defining the machine itself, but it's been a while. 10 seems to do it
automatically.
-bruce
bje@ripco.com
|
|
0
|
|
|
|
Reply
|
Bruce
|
2/3/2005 2:41:00 PM
|
|
In <cttd5s$hp2$1@e250.ripco.com> Bruce Esquibel <bje@e4500.ripco.com> writes:
>Gary Mills <mills@cc.umanitoba.ca> wrote:
>: On a Solaris 10 b72 machine, I have lines like this in syslog.conf:
>: daemon,local5.info ifdef(`LOGHOST', /var/adm/tcpd.log, @loghost)
>: Loghost is defined in DNS and the /etc/hosts file, but syslog still
>: logs only to the local file. Has something changed since Solaris 9,
>: or is something mysterious wrong?
>Maybe worthless suggestion but check to make sure loghost isn't defined
>twice in /etc/hosts. I ran into the same problem playing around with 10,
>local file worked, loghost didn't and that was the problem.
>I don't remember earlier versions automatically adding loghost to /etc/hosts
>defining the machine itself, but it's been a while. 10 seems to do it
>automatically.
Good suggestion! My Jumpstart post-install script removes `loghost'
from /etc/inet/hosts, so that shouldn't have been a problem. However,
I found another one in /etc/inet/ipnodes. That was the culprit. It's
removed the same way now.
Disabling svc:/system/system-log:default and running syslogd with the
`-d' option revealed the error:
# /usr/sbin/syslogd -d
main(1): Started at time Thu Feb 3 19:13:35 2005
hnc_init(1): hostname cache configured 128 entry ttl:600
getnets(1): found 1 addresses, they are: 0.0.0.0.2.2
amiloghost(1): testing 130.179.16.33.2.2
conf_init(1): I am loghost
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
|
|
0
|
|
|
|
Reply
|
mills
|
2/4/2005 1:31:20 AM
|
|
|
2 Replies
716 Views
(page loaded in 0.06 seconds)
Similiar Articles: Does Solaris 10 syslogd respect LOGHOST? - comp.unix.solaris ...On a Solaris 10 b72 machine, I have lines like this in syslog.conf: daemon,local5.info ifdef(`LOGHOST', /var/adm/tcpd.log, @loghost) ... syslog nolisten on Solaris 10 - comp.unix.solarisDoes Solaris 10 syslogd respect LOGHOST? - comp.unix.solaris ... syslog nolisten on Solaris 10 - comp.unix.solaris Does Solaris 10 syslogd respect LOGHOST? - comp.unix ... Syslog on Solaris 10 - comp.unix.solarisDoes Solaris 10 syslogd respect LOGHOST? - comp.unix.solaris ... On a Solaris 10 b72 machine, I have lines like this in syslog.conf: daemon,local5.info ifdef(`LOGHOST ... Install of Solaris 10 into LDOM hangs - comp.unix.solaris ...Does Solaris 10 syslogd respect LOGHOST? - comp.unix.solaris ... Install of Solaris 10 into LDOM hangs - comp.unix.solaris ... Does Solaris 10 syslogd respect LOGHOST ... Incoherent ssh daemon in Solaris 10! - comp.unix.solaris ...Does Solaris 10 syslogd respect LOGHOST? - comp.unix.solaris ... On a Solaris 10 b72 machine, I have lines like this in syslog.conf: daemon,local5.info ifdef(`LOGHOST ... syslogd not logging anymore - comp.unix.solaris... etc/init.d/syslog/stop does not actually stop syslogd ... within the "ifdef(`LOGHOST', ,)", syslogd ... comp.databases.mysql syslogd not logging anymore - comp.unix.solaris ... empty /var/adm/messages - comp.unix.solarisI.e. does getent hosts loghost resolve to your host? ... How does syslogd maintain /var/adm/messages files ... Crontab issues with Solaris 10 - comp.unix.solaris ... ntpd, boot time, and hot plugging - comp.protocols.time.ntp ...Does not "needing good time sync" imply communications ... You wouldn't have to wait that long for a Solaris kernel ... David, With genuine respect, I won't do that. I have ... comp.unix.solaris: Re: Does Solaris 10 syslogd respect LOGHOST?Relevant Pages. Re: Does Solaris 10 syslogd respect LOGHOST?...: On a Solaris 10 b72 machine, I have lines like this in syslog.conf: ... Has something changed since ... Does Solaris 10 syslogd respect LOGHOST? - comp.unix.solaris ...On a Solaris 10 b72 machine, I have lines like this in syslog.conf: daemon,local5.info ifdef(`LOGHOST', /var/adm/tcpd.log, @loghost) ... 7/22/2012 4:10:15 PM
|