Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Terminal spam...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Thu Sep 21, 2017 2:17 pm    Post subject: Terminal spam... Reply with quote

OK, the AMD64 handbook was changed a while back and instead of recommending syslog-ng, it recommends sysklogd. This is fine with me as I never took advantage of the insanely advanced features of syslog-ng. However, every system I use sysklogd on is now spamming the terminals with an error about /dev/xconsole. How do I fix this? I am NOT wanting to reinstall my systems if it can be helped.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Sep 21, 2017 4:23 pm    Post subject: Reply with quote

Presumably it isn't sending messages about pharmaceuticals or a Nigerian prince, so depending on what they actually are, you might check out /etc/syslog.conf and its use of /dev/xconsole.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Thu Sep 21, 2017 6:28 pm    Post subject: Reply with quote

I did check syslog.conf but saw nothing about xconsole, which is why I thought I'd better ask here.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Thu Sep 21, 2017 7:09 pm    Post subject: Reply with quote

Interesting. Maybe it is preserved from a previously instlaled syslog daemon?

This is from my AMD64 system which I installed within the last couple/few weeks or so.
Code:
$ qlist -Iv sysklogd
app-admin/sysklogd-1.5.1
Code:
$ tail -22 /etc/syslog.conf
#
# I like to have messages displayed on the console, but only on a virtual
# console I usually leave idle.
#
#daemon,mail.*;\
#       news.=crit;news.=err;news.=notice;\
#       *.=debug;*.=info;\
#       *.=notice;*.=warn       /dev/tty8

# The named pipe /dev/xconsole is for the `xconsole' utility.  To use it,
# you must invoke `xconsole' with the `-file' option:
#
#    $ xconsole -file /dev/xconsole [...]
#
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
#      busy site..
#
daemon.*;mail.*;\
        news.err;\
        *.=debug;*.=info;\
        *.=notice;*.=warn       |/dev/xconsole
I'm not having the problem, but my presumption was that you'd be able to reduce the amount of logging.

Also, I don't have xconsole installed:
Code:
$ eix -I xconsole
No matches found
$ eix -cs '^xconsole'
[N] x11-apps/xconsole (1.0.7): monitor system console messages with X

_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Thu Sep 21, 2017 8:20 pm    Post subject: Reply with quote

Whoops, you are correct. I looked at /etc/conf.d/sysklogd.conf. My bad. Are you not getting an error on your terminals (1-4) which says something along the lines of "sysklogd: /dev/xconsole no such device"? After noticing it on mine I went to a server we upgraded a while back and the monitor was spammed from top to bottom with it.

All of that aside, I am not sure how to fix this. Do I change the pipe to something else? If so, what do I change it to?
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Sep 22, 2017 5:38 am    Post subject: Reply with quote

I hadn't noticed any while working at the terminal, but that wasn't often. I'll verify in the morning.

Are the messages only "/dev/xconsole no such device"? You could try a different device (such as /dev/tty8 or tty12) instead of /dev/xconsole (if you have a similar entry as I posted previously).

Whether or not you want actual messages is a different matter. Some consider it a "Good Thing," at least for critical messages. Oc course, not everyone agrees. You can see a related discussion on that in this conversation. Somewhat ironic that a poster there "lost that feature" by switching to sysklogd.

Oh, to stop the messages entirely, I think you can simply comment out those lines at the end of the config, if you have them:
Code:
daemon.*;mail.*;\
        news.err;\
        *.=debug;*.=info;\
        *.=notice;*.=warn       |/dev/xconsole

_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Fri Sep 22, 2017 6:49 am    Post subject: Reply with quote

pjp wrote:
Somewhat ironic that a poster there "lost that feature" by switching to sysklogd.
And the poster never got any "sysklogd: /dev/xconsole no such device" although frequently switching between console and X.
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 541
Location: Germany

PostPosted: Fri Sep 22, 2017 8:24 am    Post subject: Reply with quote

Just to confirm. I've also had the same problem on 2 or 3 new installations of Gentoo that I've done recently. The /dev/xconsole is missing, so the default configuration /etc/syslog.conf causes "spam" messages on first linux console. The solution was to comment those offending lines.
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Fri Sep 22, 2017 2:54 pm    Post subject: Reply with quote

OK, so commenting the lines removes any advanced warning of impending doom. Where does syslog-ng log this stuff by default? Can I redirect to there?

Also, upon installing sysklogd you get four spam issues, not one. Creating /var/log/news removes three of those warnings/errors and leaves only the one discussed in this thread.
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Sep 22, 2017 3:35 pm    Post subject: Reply with quote

Turns out I did have those messages, just not when I previously used the system itself. I just commented out logging to the xconsole.


What else do you ave in /etc/syslog?

For example, daemon and mail logging:
Code:
daemon.*                        -/var/log/daemon.log
mail.*                          -/var/log/mail.log
mail.info                       -/var/log/mail.info
mail.warn                       -/var/log/mail.warn
mail.err                        /var/log/mail.err


The entries going to xconsole for *.=debug , *.=info , etc. are for all of those message types for any facility.

So the messages sent to xconsole are very likely duplicates. The only way to know is to see what is in your /etc/syslog.conf.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Sat Sep 23, 2017 5:02 am    Post subject: Reply with quote

I've seen this for years, I kindof ignored it. What bugs me more is the lines for /var/log/news/news.{crit|err|notice} on boot. I have to create those empty files on every install.
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Sat Sep 23, 2017 10:18 pm    Post subject: Reply with quote

You should only need to create /var/log/mail as root once. I have never had that directory disappear and the mail spam has never come back. I will comment the xconsole stuff out and paste my entire configuration later. I am exhausted now. Spent the day at an antique tractor show. I do old tractors for fun. Also, I got to meet the crew from Lizard Lick Towing, if you know of the series on TV. Very cool, down to earth people. Now it is time for a nap...
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
The_Great_Sephiroth
Veteran
Veteran


Joined: 03 Oct 2014
Posts: 1602
Location: Fayetteville, NC, USA

PostPosted: Mon Sep 25, 2017 5:39 pm    Post subject: Reply with quote

Just to let you know, commenting those lines fixed the xconsole spam. The rest of the configuration was stock and appears to match yours, pjp. Thanks for the help!
_________________
Ever picture systemd as what runs "The Borg"?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum