This is a discussion on disabling PPP messages from syslog within the Linux Networking forums, part of the Linux Forums category; Hello, my /var/log/messages is full of messages like this: Apr 29 00:01:28 VHB2router pppd[17506]: pppd ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
my /var/log/messages is full of messages like this: Apr 29 00:01:28 VHB2router pppd[17506]: pppd 2.4.1 started by root, uid 0 Apr 29 00:01:28 VHB2router pppd[17506]: Using interface ppp0 Apr 29 00:01:28 VHB2router pppd[17506]: Connect: ppp0 <--> /dev/ttyS0 Apr 29 00:01:28 VHB2router /etc/hotplug/net.agent: assuming ppp0 is already up Apr 29 00:01:59 VHB2router pppd[17506]: LCP: timeout sending Config-Requests Apr 29 00:01:59 VHB2router pppd[17506]: Connection terminated. Apr 29 00:01:59 VHB2router pppd[17506]: Exit. Apr 29 00:01:59 VHB2router /etc/hotplug/net.agent: invoke ifdown ppp0 Have you any idea how to disable this loging? I disabled all logs in ppp but with no effect. Here is my ppp options file: 115200 crtscts local updetach lock lcp-echo-interval 15 lcp-echo-failure 3 noauth ms-dns 10.1.0.1 nolog Thanks Karel |
|
|||
|
Karel Kozlik <kozlik@kufr.cz> wrote:
> my /var/log/messages is full of messages like this: > Apr 29 00:01:28 VHB2router pppd[17506]: pppd 2.4.1 started by root, uid 0 > Apr 29 00:01:28 VHB2router pppd[17506]: Using interface ppp0 > Apr 29 00:01:28 VHB2router pppd[17506]: Connect: ppp0 <--> /dev/ttyS0 > Apr 29 00:01:28 VHB2router /etc/hotplug/net.agent: assuming ppp0 is > already up > Apr 29 00:01:59 VHB2router pppd[17506]: LCP: timeout sending Config-Requests > Apr 29 00:01:59 VHB2router pppd[17506]: Connection terminated. > Apr 29 00:01:59 VHB2router pppd[17506]: Exit. > Apr 29 00:01:59 VHB2router /etc/hotplug/net.agent: invoke ifdown ppp0 > Have you any idea how to disable this loging? I disabled all logs in ppp > but with no effect. Here is my ppp options file: Why do you want to disable them? There is no pppd option for doing so, they are minimal messages pppd aways sends. You would have to edit the pppd source code. I can only wish you "good luck" there. Or disable any messages from being sent by syslogd from the local2 facility or with the warn log level by editing /etc/syslog.conf, which would mean no messages from anything else using local2 or warn would be logged. I don't know anything about "net.agent," except that it appears in some posts with questions regarding pppd. Very likely distribution dependent. -- Clifford Kite Email: "echo xvgr_yvahk-ccc@ri1.arg|rot13" PPP-Q&A links, downloads: http://ckite.no-ip.net/ /* Those who can't write, write manuals. */ |
|
|||
|
Hello,
thanks for reply. > Why do you want to disable them? There is no pppd option for doing so, there are two main reasons why I want disable them. - this messages are bootless for me and /var/log/messages is confused - in the router on which pppd is running is very small hdd and these logs often filling up all avaiable space. > any messages from being sent by syslogd from the local2 facility or > with the warn log level by editing /etc/syslog.conf, which would mean > no messages from anything else using local2 or warn would be logged. This is the last way how to resolve my problem. I don't want disable messages from anything else. Is there anyone who have better idea how to disable ppp logs? Karel |
|
|||
|
On Don, 29 Apr 2004 at 17:40 GMT, Karel Kozlik <kozlik@kufr.cz> wrote:
> Hello, > thanks for reply. > >> Why do you want to disable them? There is no pppd option for doing so, > > there are two main reasons why I want disable them. > > - this messages are bootless for me and /var/log/messages is confused > - in the router on which pppd is running is very small hdd and these > logs often filling up all avaiable space. > Perhaps this helps, although it could be overcomplicated for this purpose: Store your Logs on another machine in the Network. AFAIK syslog provides this. The manpage of syslog.conf denotes this as remote logging. Write a skript rotating logs an storing the old logs on another machine. This is a similar approach. You do not have a problem with pppd, but with disk space, so I would prefer one of these two solutions. >> any messages from being sent by syslogd from the local2 facility or >> with the warn log level by editing /etc/syslog.conf, which would mean >> no messages from anything else using local2 or warn would be >> logged. This could affect other daemons, which is probably not desired. > > This is the last way how to resolve my problem. I don't want disable > messages from anything else. Is there anyone who have better idea how to > disable ppp logs? > I don't think, that this is the last way. You are working on symptoms not on the root of the problem, I think. > Karel > -- Robert... |
|
|||
|
Karel Kozlik <kozlik@kufr.cz> wrote in message news:<c6ren4$1obp$1@ns.felk.cvut.cz>...
> Hello, > thanks for reply. > > > Why do you want to disable them? There is no pppd option for doing so, > > there are two main reasons why I want disable them. > > - this messages are bootless for me and /var/log/messages is confused > - in the router on which pppd is running is very small hdd and these > logs often filling up all avaiable space. > > > any messages from being sent by syslogd from the local2 facility or > > with the warn log level by editing /etc/syslog.conf, which would mean > > no messages from anything else using local2 or warn would be logged. > > This is the last way how to resolve my problem. I don't want disable > messages from anything else. Is there anyone who have better idea how to > disable ppp logs? > > Karel pppd logs so much due to the nature of the protocol -- point to point and connection oriented -- and if you start having ppp connection problems these are about the only clues available. When you have no ppp connection you can't diagnose your ppp connection (catch-22 ;-) Look to see if you can't use logrotate in a way that will give you control of the hd space issue -- man logrotate. If it's not on your system (surprisingly learned how recent it is on Suse) find it and install it. Like I said, if you ever have ppp problems you'll be glad you have the logs rolling. Otherwise, adjusting syslog.conf is about all you can do besides offloading the logging to another machine :-( Not having a pppd available on this machine, I'm not sure what facility you're using for pppd -- you may be able to turn it off if no other daemon/service uses the same facility. You can test this by directing the facility used by pppd (usually daemon or local2 ?) to a separate file and review it's contents. Even so, I can't recommend going without any pppd logging -- perhaps a separate file in combo with logrotate. hth, prg email above disabled |