syslogd memory buffers problem

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

syslogd memory buffers problem

Lars Hansson-5
I run a number of 4.9 i386 boxes that functions as routers and are
logging to memory buffers.
Today I noticed that if I sighup the syslogd process the memory
buffers are no longer being logged to.
Below is the output from "syslogd -d" and I'm guessing the problem has
something to do with the "Membuf no match" thing.

$ sudo syslogd -d
off & running....
init
[priv]: msg PRIV_CONFIG_MODIFIED received
[priv]: msg PRIV_OPEN_CONFIG received
cfline("*.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none
:256:messages", f, "*")
cfline("kern.debug;syslog,user.info
:256:messages2", f, "*")
cfline("auth.info
:256:authlog", f, "*")
cfline("authpriv.debug
:256:secure", f, "*")
cfline("cron.info
:256:cron", f, "*")
cfline("daemon.info
:256:daemon", f, "*")
cfline("ftp.info
:256:xferlog", f, "*")
cfline("lpr.debug
:256:lpd-errs", f, "*")
cfline("mail.info
:256:mail", f, "*")
cfline("*.emerg                                                 *", f, "*")
cfline("*.*
@loghost", f, "*")
[priv]: msg PRIV_GETHOSTSERV received
Initialize membuf messages at 0x7f859000
Membuf no match
Initialize membuf messages2 at 0x7f859800
Membuf no match
Initialize membuf authlog at 0x816fb000
Membuf no match
Initialize membuf secure at 0x816fb800
Membuf no match
Initialize membuf cron at 0x816fa800
Membuf no match
Initialize membuf daemon at 0x816fa000
Membuf no match
Initialize membuf xferlog at 0x7f858000
Membuf no match
Initialize membuf lpd at 0x7f858800
Membuf no match
Initialize membuf mail at 0x7f857000
Membuf no match
X X X 5 X 5 X 5 5 X X X 5 5 5 5 5 5 5 5 5 5 5 5 X MEMBUF: messages
7 6 X X X 6 X X X X X X X X X X X X X X X X X X X MEMBUF: messages2
X X X X 6 X X X X X X X X X X X X X X X X X X X X MEMBUF: authlog
X X X X X X X X X X 7 X X X X X X X X X X X X X X MEMBUF: secure
X X X X X X X X X 6 X X X X X X X X X X X X X X X MEMBUF: cron
X X X 6 X X X X X X X X X X X X X X X X X X X X X MEMBUF: daemon
X X X X X X X X X X X 6 X X X X X X X X X X X X X MEMBUF: xferlog
X X X X X X 7 X X X X X X X X X X X X X X X X X X MEMBUF: lpd
X X 6 X X X X X X X X X X X X X X X X X X X X X X MEMBUF: mail
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X WALL:
8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 X FORW: loghost
[priv]: msg PRIV_DONE_CONFIG_PARSE received
logmsg: pri 056, flags 0x4, from mizar, msg syslogd: start
Logging to MEMBUF
Logging to FORW loghost
syslogd: started
^Csyslogd: exiting on signal 2
syslogd: exiting on signal 2
logmsg: pri 053, flags 0x4, from mizar, msg syslogd: exiting on signal 2
Logging to MEMBUF
Logging to MEMBUF
Logging to FORW loghost
[unpriv] syslogd child about to exit

dmesg:
OpenBSD 4.9 (GENERIC.MP) #794: Wed Mar  2 07:19:02 MST 2011
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz ("GenuineIntel"
686-class) 2.94 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
real mem  = 2111008768 (2013MB)
avail mem = 2066317312 (1970MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/24/10, SMBIOS rev. 2.5 @
0xfc330 (62 entries)
bios0: vendor American Megatrends Inc. version "V1.10" date 08/24/2010
bios0: MSI MS-7592
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET GSCI SSDT
acpi0: wakeup devices P0P2(S4) P0P3(S4) P0P1(S4) PS2K(S1) PS2M(S1)
USB0(S4) USB1(S4) USB2(S4) USB3(S4) EUSB(S4) MC97(S4) P0P4(S4)
P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz ("GenuineIntel"
686-class) 2.94 GHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (P0P1)
acpiprt2 at acpi0: bus 1 (P0P4)
acpiprt3 at acpi0: bus 2 (P0P5)
acpiprt4 at acpi0: bus -1 (P0P6)
acpiprt5 at acpi0: bus -1 (P0P7)
acpiprt6 at acpi0: bus -1 (P0P8)
acpiprt7 at acpi0: bus -1 (P0P9)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xc600! 0xcc800/0x1000
cpu0: Enhanced SpeedStep 2934 MHz: speeds: 2936, 2670, 2403, 2136,
1870, 1603 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel G41 Host" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel G41 Video" rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0 at vga1: apic 2 int 16 (irq 10)
drm0 at inteldrm0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 2
int 16 (irq 10)
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01: apic 2
int 17 (irq 11)
pci2 at ppb1 bus 2
alc0 at pci2 dev 0 function 0 "Attansic Technology L1C" rev 0xc0: apic
2 int 17 (irq 11), address 6c:62:6d:91:0a:fd
atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 11
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2
int 23 (irq 5)
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2
int 19 (irq 6)
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2
int 18 (irq 10)
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2
int 16 (irq 10)
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 2
int 23 (irq 5)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "D-Link DGE-528T" rev 0x10:
RTL8169/8110SB (0x1000), apic 2 int 16 (irq 10), address
5c:d9:98:53:c0:79
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 3
re1 at pci3 dev 1 function 0 "D-Link DGE-528T" rev 0x10:
RTL8169/8110SB (0x1000), apic 2 int 17 (irq 11), address
5c:d9:98:53:c0:74
rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 3
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide1: using apic 2 int 19 (irq 6) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <WDC WD3200AAKX-001CA0>
wd0: 16-sector PIO, LBA48, 305244MB, 625140335 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic
2 int 19 (irq 6)
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: probed fifo depth: 15 bytes
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com1: probed fifo depth: 15 bytes
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b


Cheers,
Lars

Reply | Threaded
Open this post in threaded view
|

Re: syslogd memory buffers problem

Lars Hansson-5
Uhm...ok, never mind. I'm an idiot. it does work. Sorry for that unneeded noise.

Cheers,
Lars