Usando rsyslogd com imrelp no Ubuntu?

1

Estou tentando usar imrelp no Ubuntu 14.04. No entanto, quando eu verifico usando lsof -i ou netstat -autp nada ouve na porta configurada.

O pacote librelp0 está instalado.

O que estou fazendo de errado?

NB: imudp e imtcp na porta 514 funcionam bem. Então, por favor, não sugira mudar para isso, isso seria simplesmente estar evitando o assunto em questão. A razão pela qual eu quero usar o imrelp é porque o RELP deve evitar a perda de mensagens:

From the user's point of view, imrelp works much like imtcp or imgssapi, except that no message loss can occur.

Relevantes /etc/rsyslog.conf estrofes:

$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support
#$ModLoad immark  # provides --MARK-- message capability

# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514

# provides RELP reception
$ModLoad imrelp # needs to be done just once
$InputRELPServerRun 55555

Também verifiquei que a porta 55555 não era usada antes de emitir service rsyslog restart .

/var/log/syslog mostra isso ao reiniciar rsyslogd (iniciei a depuração ativada):

May  5 20:28:38 hostname kernel: [88125.566625] init: Connection from private client
May  5 20:28:38 hostname kernel: [88125.569341] init: Connection from private client
May  5 20:28:38 hostname kernel: [88125.570618] init: rsyslog goal changed from start to stop
May  5 20:28:38 hostname kernel: [88125.570726] init: rsyslog state changed from running to pre-stop
May  5 20:28:38 hostname kernel: [88125.570823] init: rsyslog state changed from pre-stop to stopping
May  5 20:28:38 hostname kernel: [88125.570953] init: Handling stopping event
May  5 20:28:38 hostname rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="1212" x-info="http://www.rsyslog.com"] exiting on signal 15.
May  5 20:28:39 hostname rsyslogd: [origin software="rsyslogd" swVersion="7.4.4" x-pid="1249" x-info="http://www.rsyslog.com"] start
May  5 20:28:39 hostname rsyslogd: rsyslogd's groupid changed to 113
May  5 20:28:39 hostname rsyslogd: rsyslogd's userid changed to 107
May  5 20:28:39 hostname kernel: [88125.572594] init: rsyslog main process (1212) exited normally
May  5 20:28:39 hostname kernel: [88125.572666] init: rsyslog state changed from killed to post-stop
May  5 20:28:39 hostname kernel: [88125.572765] init: rsyslog state changed from post-stop to waiting
May  5 20:28:39 hostname kernel: [88125.572982] init: Handling stopped event
May  5 20:28:39 hostname kernel: [88125.573142] init: startpar-bridge (rsyslog--stopped) goal changed from stop to start
May  5 20:28:39 hostname kernel: [88125.573238] init: startpar-bridge (rsyslog--stopped) state changed from waiting to starting
May  5 20:28:39 hostname kernel: [88125.573419] init: Handling starting event
May  5 20:28:39 hostname kernel: [88125.573495] init: startpar-bridge (rsyslog--stopped) state changed from starting to security
May  5 20:28:39 hostname kernel: [88125.573593] init: startpar-bridge (rsyslog--stopped) state changed from security to pre-start
May  5 20:28:39 hostname kernel: [88125.573692] init: startpar-bridge (rsyslog--stopped) state changed from pre-start to spawned
May  5 20:28:39 hostname kernel: [88125.574885] init: startpar-bridge (rsyslog--stopped) main process (1241)
May  5 20:28:39 hostname kernel: [88125.574907] init: startpar-bridge (rsyslog--stopped) state changed from spawned to post-start
May  5 20:28:39 hostname kernel: [88125.575050] init: startpar-bridge (rsyslog--stopped) state changed from post-start to running
May  5 20:28:39 hostname kernel: [88125.575288] init: Handling started event
May  5 20:28:39 hostname kernel: [88125.575787] init: startpar-bridge (rsyslog--stopped) main process (1241) exited normally
May  5 20:28:39 hostname kernel: [88125.575899] init: startpar-bridge (rsyslog--stopped) goal changed from start to stop
May  5 20:28:39 hostname kernel: [88125.576001] init: startpar-bridge (rsyslog--stopped) state changed from running to stopping
May  5 20:28:39 hostname kernel: [88125.576115] init: Handling stopping event
May  5 20:28:39 hostname kernel: [88125.576187] init: startpar-bridge (rsyslog--stopped) state changed from stopping to killed
May  5 20:28:39 hostname kernel: [88125.576285] init: startpar-bridge (rsyslog--stopped) state changed from killed to post-stop
May  5 20:28:39 hostname kernel: [88125.576391] init: startpar-bridge (rsyslog--stopped) state changed from post-stop to waiting
May  5 20:28:39 hostname kernel: [88125.576734] init: Handling stopped event
May  5 20:28:39 hostname kernel: [88125.578591] init: Connection from private client
May  5 20:28:39 hostname kernel: [88125.579494] init: rsyslog goal changed from stop to start
May  5 20:28:39 hostname kernel: [88125.579582] init: rsyslog state changed from waiting to starting
May  5 20:28:39 hostname kernel: [88125.579705] init: Handling starting event
May  5 20:28:39 hostname kernel: [88125.579785] init: rsyslog state changed from starting to security
May  5 20:28:39 hostname kernel: [88125.579881] init: rsyslog state changed from security to pre-start
May  5 20:28:39 hostname kernel: [88125.581088] init: rsyslog pre-start process (1242)
May  5 20:28:39 hostname kernel: [88125.583975] init: Connection from private client
May  5 20:28:39 hostname kernel: [88125.588103] init: rsyslog pre-start process (1242) exited normally
May  5 20:28:39 hostname kernel: [88125.588172] init: rsyslog state changed from pre-start to spawned
May  5 20:28:39 hostname kernel: [88125.589433] init: rsyslog main process (1248)
May  5 20:28:39 hostname kernel: [88125.590290] init: rsyslog main process (1248) executable changed
May  5 20:28:39 hostname kernel: [88125.593495] init: rsyslog main process (1248) became new process (1249)
May  5 20:28:39 hostname kernel: [88125.593525] init: rsyslog state changed from spawned to post-start
May  5 20:28:39 hostname kernel: [88125.593729] init: rsyslog state changed from post-start to running
May  5 20:28:39 hostname kernel: [88125.593918] init: Handling started event
May  5 20:28:39 hostname kernel: [88125.594192] init: startpar-bridge (rsyslog--started) goal changed from stop to start
May  5 20:28:39 hostname kernel: [88125.594355] init: startpar-bridge (rsyslog--started) state changed from waiting to starting
May  5 20:28:39 hostname kernel: [88125.594705] init: Handling starting event
May  5 20:28:39 hostname kernel: [88125.594813] init: startpar-bridge (rsyslog--started) state changed from starting to security
May  5 20:28:39 hostname kernel: [88125.594949] init: startpar-bridge (rsyslog--started) state changed from security to pre-start
May  5 20:28:39 hostname kernel: [88125.595128] init: startpar-bridge (rsyslog--started) state changed from pre-start to spawned
May  5 20:28:39 hostname kernel: [88125.596402] init: startpar-bridge (rsyslog--started) main process (1254)
May  5 20:28:39 hostname kernel: [88125.596426] init: startpar-bridge (rsyslog--started) state changed from spawned to post-start
May  5 20:28:39 hostname kernel: [88125.596614] init: startpar-bridge (rsyslog--started) state changed from post-start to running
May  5 20:28:39 hostname kernel: [88125.596918] init: Handling started event
May  5 20:28:39 hostname kernel: [88125.597463] init: startpar-bridge (rsyslog--started) main process (1254) exited normally
May  5 20:28:39 hostname kernel: [88125.597533] init: startpar-bridge (rsyslog--started) goal changed from start to stop
May  5 20:28:39 hostname kernel: [88125.597674] init: startpar-bridge (rsyslog--started) state changed from running to stopping
May  5 20:28:39 hostname kernel: [88125.597814] init: Handling stopping event
May  5 20:28:39 hostname kernel: [88125.597884] init: startpar-bridge (rsyslog--started) state changed from stopping to killed
May  5 20:28:39 hostname kernel: [88125.598018] init: startpar-bridge (rsyslog--started) state changed from killed to post-stop
May  5 20:28:39 hostname kernel: [88125.598120] init: startpar-bridge (rsyslog--started) state changed from post-stop to waiting
May  5 20:28:39 hostname kernel: [88125.598472] init: Handling stopped event

Os arquivos auth.log , dmesg e kern.log não contêm nada relacionado à reinicialização de rsyslogd .

    
por 0xC0000022L 05.05.2015 / 22:33

1 resposta

0

Você pode encontrar o pacote rsyslog-relp nos repositórios. Acredito que isso será útil para fornecer o módulo de que você precisa.

    
por flickerfly 06.06.2015 / 00:39