ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Morsov <samurai@ricom.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Squid2Mysql
Date: Fri, 05 Nov 2004 11:46:30 +0300
Message-ID: <418B3DE6.5090209@ricom.ru> (raw)
In-Reply-To: <1819222938.20041105104119@sodom.ru>

[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]


Sodom wrote:
> Здравствуйте, уважаемые!
> Некоторое время тестирую squid2mysql.
> В связи с чем возникла пара вопросов.
> 1. При попытке посмотреть трафик по юзеру за определенный период
> выдается такое сообщение "Пользователь не найден. Прекратите хакать
> программу."
> В логах mysql:
> 5437 Query
> select date,sum(bytes) as downloads,sum(elapsed) as timeused,sum(bill)
> as billings from logger where userident like 'SU' and date between '--' and '--' group
> by date order by date
Дык как там дата прописана? 04.10.2004 ему ж не покатит

> P.S. я знаю, что мне ответят "гуру от php" - возьми и напиши.
> Я знаю, что мои вопросы решаемы.
> Вот только сам решить их не могу - php я не знаю... совсем.. :-(
> И учить времени нет, потому как большой начальник с кучей бумажек, на
> настоящее дело времени не остается совсем :-(
> Остается только надеятся, что кто-то все же смилостивиться и напишет
> такие скрипты. Думаю, не мне одному это нужно, многие будут
> благодарны.
прилагаю свое "чудо"
trafficsql - перловый скрипт, собирает статистику в целом по 
каналу из счетчиков iptables, а по юзерам путем обработки логов 
squid ежедневно по крону (не заносит сайты которые полностью из 
кеша). Кладет все в mysql
струттура базы в traffic.sql

папка adsl содержит php "чудо" для просмотра всего соранного 
хозяйства через браузер.

Может пригодится (меня и мое начальство устраивает вроде).
Если какие вопросы - пиши в личку, в jabber, icq.

-- 
Всего наилучшего,
Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ"
Алексей Морсов
ICQ: 196766290
Jabber: Samurai@jabber.pibhe.com
http://www.ricom.ru
http://www.fondmarket.ru

[-- Attachment #2: traffic.tar.gz --]
[-- Type: application/x-gzip, Size: 12656 bytes --]

      reply	other threads:[~2004-11-05  8:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-05  7:41 Sodom
2004-11-05  8:46 ` Alexey Morsov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=418B3DE6.5090209@ricom.ru \
    --to=samurai@ricom.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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