ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] syslog
@ 2006-05-05  0:13 Terechkov Evgenii
  2006-05-05  9:01 ` Michael Shigorin
  0 siblings, 1 reply; 3+ messages in thread
From: Terechkov Evgenii @ 2006-05-05  0:13 UTC (permalink / raw)
  To: ALT Linux community


Стоит Мастер2.4 с обновлениями и парочкой бэкпортов (но не суть).

Вот столкнулся каким-то образом об следующую неприятность:

Стали логи кидаться не в соответствующие файлы, а на текущую виртуальную
консоль. Причём не все логи, а только часть: от iptables, ядра (ipt_ULOG:
error during NLMSG_PUT, упоминал недавно в backports), про марсианские
пакеты. Произошло это видимо при переключений с syslogd на syslog-ng (до
того работало штатно) - остановил одно и запустил другое.

Читал рассылку и гуглил немножко. Поэтому предвижу вопрос: "Что в
конфиге?". Ответ: конфиг syslog-ng-1.6.2-alt2 плюс такой патч:

--- /root/syslog-ng.conf        2002-02-05 22:42:49 +0700
+++ /etc/syslog-ng.conf 2006-05-03 16:02:08 +0800
@@ -165,3 +165,11 @@
 #log { source(net); filter(f_authall); destination(remote_auth); };
 #log { source(net); filter(f_user); destination(remote_user); };
 #log { source(net); filter(f_boot); destination(remote_boot); };
+
+destination firewall { file("/var/log/firewall"); };
+filter f_iptables   { match(" IN=") and match(" OUT="); };
+log { source(sys); filter(f_iptables); destination(firewall); };
+
+filter f_flow { match("fprobe-ulog") or match("flow-capture") or match("ipcad"); };
+destination flow { file("/var/log/flow"); };
+log { source(sys); filter(f_flow); destination(flow); };

Как же вернуть всё в норму? Дёрганье самого сервиса syslog-ng ничего не
дали. Перегружать всю машину - очень не хочется (работает).

-- 
                                        С уважением, системный
                                        администратор ООО "Крастел",
                                        Терешков Евгений.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] syslog
  2006-05-05  0:13 [Comm] syslog Terechkov Evgenii
@ 2006-05-05  9:01 ` Michael Shigorin
  2006-05-05  9:13   ` Terechkov Evgenii
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Shigorin @ 2006-05-05  9:01 UTC (permalink / raw)
  To: ALT Linux community

On Fri, May 05, 2006 at 08:13:30AM +0800, Terechkov Evgenii wrote:
> Стали логи кидаться не в соответствующие файлы, а на текущую
> виртуальную консоль. Причём не все логи, а только часть: от
> iptables, ядра (ipt_ULOG: error during NLMSG_PUT, упоминал

service klogd status
?

Если не был положен, а упал -- рекомендую monit, свежий живёт
в backports.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] syslog
  2006-05-05  9:01 ` Michael Shigorin
@ 2006-05-05  9:13   ` Terechkov Evgenii
  0 siblings, 0 replies; 3+ messages in thread
From: Terechkov Evgenii @ 2006-05-05  9:13 UTC (permalink / raw)
  To: shigorin; +Cc: ALT Linux Community

Michael Shigorin пишет:

>> Стали логи кидаться не в соответствующие файлы, а на текущую
>> виртуальную консоль. Причём не все логи, а только часть: от
>> iptables, ядра (ipt_ULOG: error during NLMSG_PUT, упоминал
> service klogd status
> ?

running. Разобрался - забыл klogd перегрузить. Полегчало.

> Если не был положен, а упал -- рекомендую monit, свежий живёт
> в backports.

К меня этим cfengine занимается. Щас настрою чтоб и сислог/клог
мониторились.

P.S.: таки никто nrpe через xinetd не запускал? Попробую тогда как
standalone. Очень уж не хочется ещё один нагиос поднимать (зато привычно,
опыт есть).

-- 
                                        С уважением, системный
                                        администратор ООО "Крастел",
                                        Терешков Евгений.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-05  9:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-05  0:13 [Comm] syslog Terechkov Evgenii
2006-05-05  9:01 ` Michael Shigorin
2006-05-05  9:13   ` Terechkov Evgenii

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git