ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Fwd: Re: статистика
@ 2004-08-16  8:47 Michael Shigorin
  0 siblings, 0 replies; only message in thread
From: Michael Shigorin @ 2004-08-16  8:47 UTC (permalink / raw)
  To: community

JFYI

----- Forwarded message from Eugene Onischenko <oneugene@ukr.net> -----

Date: Mon, 16 Aug 2004 09:49:00 +0300
From: Eugene Onischenko <oneugene@ukr.net>
To: debian-russian@lists.debian.org
Subject: Re: статистика

Paull wrote:

> Hello
> Есть сервер, у него 2 сетевухи и соотв. 2 подсети, есть ещё pppd.
> Никаких средств по разделению канала, etc. нету. есть iptables.
> 
> Хочется статистики использования хостами ppp. т.е. кто, когда, и
> сколько юзал.
> 
> В какую сторону смотреть ?
> 
>   
>

Простейший вариант добавить в /etc/ppp/ip-down.d/ файл примерно с таким
содержанием

#!/bin/sh

echo Login:${PEERNAME} `date +'%d/%m/%Y %T' -d "-${CONNECT_TIME} sec"` - \
`date +'%T'` " Time: $[$CONNECT_TIME]s, Sent: $[$BYTES_SENT]b, \
Rcvd: $[$BYTES_RCVD]b" |logger -p user.info -t ppp



----- End forwarded message -----

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-16  8:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-16  8:47 [Comm] Fwd: Re: статистика Michael Shigorin

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