[SunHELP] Syslog doesn't work...

jh jh at r2r.de
Wed Sep 4 09:11:03 CDT 2002


Takacs Istvan wrote:

> Hi,
>
> Sorry for this boring topic, but I need to solve
> this ugly problem.
>
> I tried to run syslogd in debug mode, and it
> sent this error message:
>
> logerror_format(1): out syslogd: line 28: unknown priority name "debug
> /var/log/syslog"
> logerror(1): syslogd: line 28: unknown priority name "debug
/var/log/syslog"
> logerror_to_console(1): syslogd: line 28: unknown priority name "debug
> /var/log/syslog"
>
> Here's the line 28:
>
> mail.debug                      ifdef(`LOGHOST', /var/log/syslog, @loghost)

This line is correct. It would work correctly if you had choosen a "normal
host"
as loghost!
I think your problem is the entry in the /etc/hosts:
                                       delete the loghost string behind
localhost
                                       add loghost behind the hostname of the
host your actuallly working on
I think Ive heard or read that the m4 Macroprocessor, which handles the
ifdef
statements, can`t work with the localhost.
After canging the entry you maybe have to restart syslog services:
/etc/init.d/syslog stop

/etc/init.d/syslog start
Tell me if this solved your problem (I believe so)   ;-)

>
>
> I have a default syslog.conf file, so I don't understand what is
> the problem with this line?
>
> In the hosts file I declared localhost as a loghost.
>
> If I comment out that nasty line than everything goes well again.
>
> Thanks in advance!
>
> Regards;
>
>                 Istvan
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp

--
Mit freundlichen Gruessen,
______________________________________________

Jens Hamann
Unix Consultant

R2R Informations- und Kommunikations AG
Anzengruberstr. 12    D-83101 Rohrdorf
Tel: +49-8032-9899-0 Fax: +49-8032-9899-29
http://www.r2r.de     mailto:jhamann at r2r.de
______________________________________________



More information about the SunHELP mailing list