Operating System - HP-UX
1752301 Members
4864 Online
108786 Solutions
New Discussion юеВ

inetd does not log into syslog

 
SOLVED
Go to solution
Thomas Schler_1
Trusted Contributor

inetd does not log into syslog

We have two K460 running HPUX 10.20.

Re-configuring inetd via inetd -c lets appear the messages "Rereading configuration" and "Configuration complete" in the syslog file of one server but not of the other. Why?

The configuration of both server is quite similar:

1) syslog.conf: Not commented lines are the same on both servers.

2) Start scripts of syslogd and inetd are the same on both servers.

3) Binaries of syslogd and inetd are the same on both servers.

4) Installed patches dealing with syslogd and inetd are the same on both servers.

All seems to be the same, but I wonder what causes the different behaviour. Of course, this seems not to be a serious problem, but is inetd on one server really re-configured after typing inetd -c?
no users -- no problems
10 REPLIES 10
Rita C Workman
Honored Contributor

Re: inetd does not log into syslog

Did you double check that:

/etc/inetd.conf has the "-l" option added
/etc/rc.config.d/netdaemons has been turned on for logging also with "-l"


Just a quick thought,
Rita
Thomas Schler_1
Trusted Contributor

Re: inetd does not log into syslog

/etc/inetd.conf: What service should have the -l option added? Both, inetd and syslogd, are started from /sbin/init.d not from /etc/inetd.conf.

/etc/rc.config.d/netdaemons: The variable INETD_ARGS is empty.

You probably mean inetd -l, inetd is not started with that option on both servers. As described in inetd(1M), -l gives log information on internet connections, not on inetd configurations.

Any other ideas?
no users -- no problems
Wodisch
Honored Contributor

Re: inetd does not log into syslog

Hello Thomas,

please compare the "/etc/syslogd.conf" files from
both systems - I guess there are some differences...

HTH,
Wodisch
James R. Ferguson
Acclaimed Contributor

Re: inetd does not log into syslog

Hi Thomas:

Instead of visually inspecting the two server's configuration files and scripts files, copy one set of them (as a different name) to the other server and 'diff' the two files.

...JRF...
linuxfan
Honored Contributor

Re: inetd does not log into syslog

Hi Thomas,

First of all like James recommended, do a diff on the syslog.conf of both the machines rather than a visual comparision.

Was the syslog.conf modified on the machine where you are having a problem? If it was modified, was syslogd bounced?

Also on the problem machine, does it ever show up in the syslog? or it shows up once and on further execution of inetd -c, it doesn't?

You might want to look at the arguments syslogd is started with?

-Hope it helps
I am RU
They think they know but don't. At least I know I don't know - Socrates
Thomas Schler_1
Trusted Contributor

Re: inetd does not log into syslog

Wodisch:
The only difference of both syslog.conf is one commented line. diff does not tell anything else.

Ramesh:
An inetd line showed up on the problem node an Aug 2, the last time:
Aug 2 13:48:27 front inetd[904]: Rereading configuration

I.e. this line shows up one time, and on further execution of inetd -c it doesn't. Where do you point to?

syslog.conf was modified, but I tried again the old version of syslog.conf (taken from a backup) that was valid at Aug 2 and, again, I do not get inetd lines in the syslog (after re-reading syslogd its configuration file).

syslogd is started with argument -D on both servers.
no users -- no problems
Robin Wakefield
Honored Contributor
Solution

Re: inetd does not log into syslog

Thomas,

On the offending server, try changing inetd.conf to add or delete a service. Then see if the "inetd -c" does indeed perform this change. At least you'll prove it's working (or not).

How are you checking the binaries are the same? Are you running a cksum or "ls -l"? I assume there isn't another inetd being found somewhere else in your PATH.

Regards, Robin.
Thomas Schler_1
Trusted Contributor

Re: inetd does not log into syslog

Robin:
Deleting services and re-configuring inetd does not show up any message in the syslog. In addition, the "deleted" services are still active.

Time to call the HP support. Thank you for your assistance.
no users -- no problems
Robin Wakefield
Honored Contributor

Re: inetd does not log into syslog

Thomas,

It'd be interesting to know what resolves this - please keep us posted...Robin