[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]

 

     [snips-users] snipslogd dies("+++ killed by SIGKILL +++")

firstly i wanna say ive been usin nocol for a while(over a year)
and it works great!

im attempting to install snips alongside nocol(different
directory and different username). but am having trouble.

i compiled snips with -DDEBUG but it doesn't give any
additional info:

snips at it-wa:~/snips/bin$ ./snipslogd -d
snipslogd- Reading global config file /home/snips/snips/etc/snips.conf
(snipslogd).. locked pid-file, started new process (pid=29753)
snipslogd (info): Loghost set to be 'it-wa'
Make sure this logging daemon is running on the above host

snipslogd: DEBUG  ON, server not daemon-izing
snipslogd: WARNING- program NOT compiled with DEBUG option
snipslogd- Reading global config file /home/snips/snips/etc/snips.conf
Killed

my /home/snips/snips/etc/snips.conf:
## Global SNIPS config file for the C routines

# $Id: snips.conf,v 1.0 2001/07/09 03:06:24 vikas Exp $

# This file typically lives in /etc/ or in /usr/local/snips/

# NOTE: Also update  snipsperl.conf  for the Perl monitors

## host where snipslogd runs for central logging
LOGHOST		it-wa.graphon.com

#DATADIR		/home/snips/snips/data
#CONFIGDIR	/home/snips/snips/etc
#PIDDIR  	/home/snips/snips/run

i copied my noclogd-confg and renamed it because it
seems to have an identical structure. i just renamed
the directory from /usr/local/nocol to /home/snips/snips:

## $Id: noclogd-confg,v 1.4 1997/07/13 12:13:50 vikas Exp $
##
## Config file for nocol logging daemon (noclogd)
##
# The following hosts are permitted to log entries to this daemon:
# (NOTE: no hostnames, only IP addresses)
permithosts	127.0.0.1 192.168.50.6
##
## Give full pathnames in filenames since the daemon changes dir.
##
## SENDER	LEVEL		LOGFILE or PIPEFILE
##
*		critical	/home/snips/snips/logs/critical
*		error		/home/snips/snips/logs/error
*		warning		/home/snips/snips/logs/warning
*		info		/home/snips/snips/logs/info
##
trapmon		info		/home/snips/snips/logs/traps.info
#
# In piped commands, a ^ is replaced with a space.
#pingmon		critical	|/home/snips/snips/beep_oncall
#pingmon		error		|/nocol/etc/beep_oncall^peter


the one thing i am doing differently probably is im using
another port. 5353. I changed include/snipslogd.h line
28 to:
# define SNIPSLOG_PORT		5353

this is so i can run nocol on 5354 and snips at the
same time. i recompiled and reinstalled and i get
the same error. I tried with and without rrdtool
and get the same error.

If I run an strace on the process:
execve("./snipslogd", ["./snipslogd", "-d"], [/* 17 vars */]) = 0
brk(0)                                  = 0x8051128
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=11851, ...}) = 0
old_mmap(NULL, 11851, PROT_READ, MAP_PRIVATE, 3, 0) = 0x124000
close(3)                                = 0
open("/lib/libresolv.so.2", O_RDONLY)   = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=46624, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\'\0"..., 4096) =
4096
old_mmap(NULL, 59420, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x127000
mprotect(0x132000, 14364, PROT_NONE)    = 0
old_mmap(0x132000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa000)
= 0x132000
old_mmap(0x134000, 6172, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x134000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=887712, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\244\213"..., 4096) =
4096
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x136000
old_mmap(NULL, 902044, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x137000
mprotect(0x20c000, 29596, PROT_NONE)    = 0
old_mmap(0x20c000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xd4000) = 0x20c000
old_mmap(0x210000, 13212, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x210000
close(3)                                = 0
munmap(0x124000, 11851)                 = 0
getpid()                                = 12719
brk(0)                                  = 0x8051128
brk(0x80511f0)                          = 0x80511f0
brk(0x8052000)                          = 0x8052000
open("/etc/snips.conf", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/home/snips/snips/etc/snips.conf", O_RDONLY) = 3
write(2, "snipslogd- Reading global config"..., 71snipslogd- Reading global
config file /home/snips/snips/etc/snips.conf
) = 71
fstat(3, {st_mode=S_IFREG|0755, st_size=402, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x124000
read(3, "## Global SNIPS config file for "..., 4096) = 402
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x124000, 4096)                  = 0
uname({sys="Linux", node="it-wa.graphon.com", ...}) = 0
open("/home/snips/snips/run/snipslogd.pid", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=24, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x124000
read(3, "12680\nit-wa.graphon.com\n", 4096) = 24
close(3)                                = 0
munmap(0x124000, 4096)                  = 0
kill(12680, SIGKILL)                    = -1 ESRCH (No such process)
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({2, 0}, {2, 0})               = 0
getpid()                                = 12719
open("/home/snips/snips/run/snipslogd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x124000
write(3, "12719\nit-wa.graphon.com\n", 24) = 24
close(3)                                = 0
munmap(0x124000, 4096)                  = 0
write(2, "(snipslogd).. locked pid-file, s"..., 63(snipslogd).. locked pid-file,
started new process (pid=12719)
) = 63
umask(02)                               = 022
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {0x804b354, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804b354, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x804b354, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x804b12c, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR1, {0x804b0cc, [], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
write(2, "snipslogd (info): Loghost set to"..., 56snipslogd (info): Loghost set
to be 'it-wa.graphon.com'
) = 56
write(2, "Make sure this logging daemon is"..., 60Make sure this logging daemon
is running on the above host

) = 60
write(2, "snipslogd: DEBUG  ON, server not"..., 46snipslogd: DEBUG  ON, server
not daemon-izing
) = 46
write(2, "snipslogd: WARNING- program NOT "..., 59snipslogd: WARNING- program
NOT compiled with DEBUG option
) = 59
open("/etc/snips.conf", O_RDONLY)       = -1 ENOENT (No such file or directory)
open("/home/snips/snips/etc/snips.conf", O_RDONLY) = 3
write(2, "snipslogd- Reading global config"..., 71snipslogd- Reading global
config file /home/snips/snips/etc/snips.conf
) = 71
fstat(3, {st_mode=S_IFREG|0755, st_size=402, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x124000
read(3, "## Global SNIPS config file for "..., 4096) = 402
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x124000, 4096)                  = 0
uname({sys="Linux", node="it-wa.graphon.com", ...}) = 0
open("/home/snips/snips/run/snipslogd.pid", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=24, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x124000
read(3, "12719\nit-wa.graphon.com\n", 4096) = 24
close(3)                                = 0
munmap(0x124000, 4096)                  = 0
kill(12719, SIGKILL)                    = 0
+++ killed by SIGKILL +++

I also made a symlink that pointed /usr/local/snips
to /home/snips/snips just incase there was something
in the scripts/code that had /usr/local hard coded.

System Config:
Debian GNU/Linux 2.2r3 (Potato)
Perl 5.005_03 (as provided with debian)
GCC 2.95.2 (as provided with debian)

snips at it-wa:~/snips/bin$ hostname
it-wa.graphon.com

any ideas? i can provide more info if needed.

thanks!

nate


-- 
Nate Amsden
System Administrator
GraphOn
http://www.graphon.com

Zyrion Traverse Network Monitoring & Network Management Software