1831408 Members
3151 Online
110025 Solutions
New Discussion

Syslog Msg

 
SOLVED
Go to solution
Abhijit P.
Valued Contributor

Syslog Msg

Hi Friends,

whenever I login to my server it shows the syslog error message as follows

syslog: Pid 8668. Failed to open Info Log file <>. Err=
Apr 6 16:00:01 (Server Name) syslog: Pid 8668. Program <> Failed to open Error Log file <>. Err=.

and this message gets repeated in between.

Thanks in Advance
Abhijit Panse

13 REPLIES 13
harry d brown jr
Honored Contributor

Re: Syslog Msg

can you post your /etc/syslog.conf file? Also check the date it was last modified. Check the path names in syslog.conf to make sure they are correct.

Also, what method are you using to login with (telnet, rexec, rlogin, ...) ?

live free or die
harry d brown jr
Live Free or Die
Peter Godron
Honored Contributor

Re: Syslog Msg

Abhijit,
can you check if you are trying to run a program from your login profile.

Normally the "No such file or directory" message means you are trying to write to and read from a non-existent file/directory.
Regards
Abhijit P.
Valued Contributor

Re: Syslog Msg

thanks to both

brwon please below syslog.conf

# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console>/var/adm/syslog/syslog.log
*.alert root
*.emerg *
Regards,
Abhijit
harry d brown jr
Honored Contributor

Re: Syslog Msg

Abhijit,


What method are you using to login with (telnet, rexec, rlogin, ...) ?

What does

ls -l /var/adm/syslog/*.log

bdf /var/adm/syslog

ls -l /etc/syslog.conf

return?

live free or die
harry d brown jr
Live Free or Die
Abhijit P.
Valued Contributor

Re: Syslog Msg

Hi Brown,

I am using telnet to login to the server

please find below outputs of the commands :


ls -l /var/adm/syslog/*.log
-rw-r--r-- 1 root sys 822286 Apr 5 15:12 /var/adm/syslog/OLDsyslog.log
-r--r--r-- 1 root root 478549 Apr 6 07:15 /var/adm/syslog/mail.log
-rw-r--r-- 1 root sys 467337 Apr 6 17:45 /var/adm/syslog/syslog.log



bdf /var/adm/syslog
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 4710400 1761112 2928024 38% /var


ls -l /etc/syslog.conf
-r--r--r-- 1 bin bin 278 Jan 6 17:21 /etc/syslog.conf

Regards,
Abhijit
harry d brown jr
Honored Contributor

Re: Syslog Msg


What does

ps -ef | grep 8668

return (if anything)


After you telnet in, does your login session go into some Oracle application?

live free or die
harry d brown jr
Live Free or Die
Abhijit P.
Valued Contributor

Re: Syslog Msg

hi...

it doesn't return anything and I am logging into any oracle apps. as I am logging in by root

Regards,
Abhijit
Abhijit P.
Valued Contributor

Re: Syslog Msg

sorry it was i am not logging in any of the oracle apps as i am logging in by root
Stephen Keane
Honored Contributor

Re: Syslog Msg

Change your /etc/syslog.conf to

# syslogd configuration file.
#
# See syslogd(1M) for information about the format of this file.
#
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert /var/adm/syslog/syslog.log
*.alert root
*.emerg *
harry d brown jr
Honored Contributor
Solution

Re: Syslog Msg



Why do you have this format in /etc/syslog.conf ?

*.alert /dev/console>/var/adm/syslog/syslog.log

it should read

*.alert /dev/console

THe next line

*.alert root

will EMAIL root with alerts any ways.

Fix /etc/syslog, then execute this:

kill `cat /var/run/syslog.pid`

Then login and see if it is still happening.

live free or die
harry d brown jr
Live Free or Die
Abhijit P.
Valued Contributor

Re: Syslog Msg

hi brown and stephen..
thanks for your reply

after making changes in syslog.conf the problem was still persisting but when i did

kill `cat /var/run/syslog.pid`

till now it has not come...so I hope that the problem has got solved.

But I will keep the thred open till evening just to observe.

Please tell me whether any other sttings I need to do.

Thank you very much both of you once again I will assign the points at the time of closing.

Thanks and regards,
Abhijit Panse
Live alive with freshness
Abhijit P.
Valued Contributor

Re: Syslog Msg

thank you brown and stephen

Problem is solved

Abhi
Abhijit P.
Valued Contributor

Re: Syslog Msg

found the solution given by Brown

Thanks to all

Regards,
Abhijit Panse