DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th June 2008
amiga505 amiga505 is offline
New User
 
Join Date: Jun 2008
Posts: 4
Thanked 0 Times in 0 Posts
Default good old syslog-ng issue

hi folks!

my /etc/syslog-ng/syslog-ng.conf has the folowing directive under the source section:

Code:
file("/dev/klog")
after making syslog-ng start

i get the following:

Code:
# syslog-ng start
Changing permissions on special file /dev/klog
Error opening file /dev/klog for reading (Device busy)
Error initializing configuration, exiting.
#
but with this directive commented it starts ok.

i googled just to find out that this is the common issue, but have found no sollution so far.

any ideas?
Reply With Quote
  #2   (View Single Post)  
Old 17th June 2008
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

Have you checked out this quick article? It mentions doing-

Code:
source local { internal(); pipe("/dev/klog" log_prefix("kernel: ")); unix-dgram("/dev/log"); };
__________________
Network Firefighter
Reply With Quote
  #3   (View Single Post)  
Old 22nd June 2008
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

Nice to see the OP has no response ... ... guess that's the way it goes sometimes.
__________________
Network Firefighter
Reply With Quote
  #4   (View Single Post)  
Old 22nd June 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,088
Thanked 198 Times in 156 Posts
Default

According to his profile:
Last Activity: 06-16-2008 12:05 PM

So he didn't even see your response ... Maybe he got the answer at another forum or something ... I often see people post the same question at several different places.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 22nd June 2008
ai-danno's Avatar
ai-danno ai-danno is offline
Spam Deminer
 
Join Date: May 2008
Location: Boca Raton, Florida
Posts: 284
Thanked 35 Times in 31 Posts
Default

Point well taken.
__________________
Network Firefighter
Reply With Quote
  #6   (View Single Post)  
Old 4th July 2008
amiga505 amiga505 is offline
New User
 
Join Date: Jun 2008
Posts: 4
Thanked 0 Times in 0 Posts
Default

easy now, guys.

i was quite bussy with my work and had no time to check my home OpenBSD box. i really appreciate your help, ai-danno!

now to the issue. i edited my syslog-ng config and now it includes the following:

Code:
source log_everything {

    internal();
    pipe("/dev/klog" log_prefix("kernel: "));
    unix-dgram("/dev/log");
    tcp(
        port(1468)
        max-connections(2)
        );

    };
still, the error is in place...
Reply With Quote
  #7   (View Single Post)  
Old 4th July 2008
amiga505 amiga505 is offline
New User
 
Join Date: Jun 2008
Posts: 4
Thanked 0 Times in 0 Posts
Default

issue resolved. it was native syslogd process that was "holding" /dev/klog. now when i killed native syslogd - syslog-ng starts OK. i will now edit /etc/rc and /etc/rc.conf to prevent the native syslogd daemon from starting.

Last edited by amiga505; 7th July 2008 at 08:43 AM.
Reply With Quote
  #8   (View Single Post)  
Old 4th July 2008
amiga505 amiga505 is offline
New User
 
Join Date: Jun 2008
Posts: 4
Thanked 0 Times in 0 Posts
Default

well... that's what we got after reboot:

Code:
#
# ps -ax | grep syslog
30793 ??  Is      0:00.03 /usr/local/sbin/syslog-ng -p /var/run/syslog-ng.pid
#
# netstat -anp tcp
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
..
skip
..
tcp        0      0  *.1468                 *.*                    LISTEN
#
that to indicate that no syslogd instances are running, syslog-ng is running and listening on port 1468 (as stated in configuration file). that seems pretty cool, but the thing is when i try to restart syslog-ng (due to configuration file changes, for example), i get the following:

Code:
#
# syslog-ng restart
Changing permissions on special file /dev/klog
Error opening file /dev/klog for reading (Device busy)
Error initializing configuration, exiting.
#
...
Reply With Quote
Reply

Tags
syslog-ng

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Good VPN service? guitarscn Off-Topic 2 15th December 2009 08:55 AM
are trackballs any good? ephemera General Hardware 11 31st July 2008 09:37 PM
Cisco Secure ACS 4.1 syslog OpenBSD 3.9 cyberpaisalegionair OpenBSD General 1 24th July 2008 06:42 PM
SYSLOG disappearance jaymax FreeBSD General 6 26th June 2008 02:53 AM
Good morning all SgtHarper Feedback and Suggestions 0 9th May 2008 08:20 AM


All times are GMT. The time now is 04:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick