ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Владимир Гусев" <vova1971@narod.ru>
To: community@altlinux.ru
Subject: Re: [Comm] mrtg.cfg
Date: Tue, 26 Apr 2005 14:15:17 +0400
Message-ID: <op.spt33rg7glg102@post.cnt.ru> (raw)
In-Reply-To: <426E0F38.2070208@iop.kiev.ua>

On Tue, 26 Apr 2005 13:51:52 +0400, Andrey Rybak <ra@iop.kiev.ua> wrote:

> Владимир Гусев wrote:
>
>> Здравствуйте!
>>
>> Есть у кого-нибудь реально работающий на альте mrtg.cgf со статистикой
>> по страницам, по локальным IP, откуда идут вызовы этих страниц?
>> Игрался с конфигом, но кроме дефолтной статистики по CPU не
>> получилось.. точнее получилось, но не так, как хочется и с ошибками на
>> пол-консоли... запускал mrtg как демон.. Изучал сабж на
>> squid.opennet.ru, но там все "прыг-скок" и "быка за рога"...
>>
>>
> Покажите ваш mrtg.cfg

я его только что потер.. восстановил дефолтный..
вот один абзац оттуда (взят с сайта):

Target[cacheHits]: cacheHttpHits&cacheProtoClientHttpRequests:squidmrtg@detotam.com:3401
Title[cacheHits]: HTTP Hits
PageTop[cacheHits]: <H1>proxy Cache Statistics: HTTP Hits / Requests</H1>
MaxBytes[cacheHits]: 10000000
Suppress[cacheHits]: y
LegendI[cacheHits]: HTTP hits
LegendO[cacheHits]: HTTP requests
Legend1[cacheHits]: HTTP hits
Legend2[cacheHits]: HTTP requests
YLegend[cacheHits]: perminute
ShortLegend[cacheHits]: req/min
Options[cacheHits]: nopercent, perminute, dorelpercent

и еще я включил интервал 5 мин.

а выводилось в консоль следующее:

[root@gate mrtg]# mrtg --daemon /etc/mrtg/mrtg.cfg
Daemonizing MRTG ...
[root@gate mrtg]# ERROR: Target[cachehits][_IN_] 'cacheHttpHits&cacheProtoClientHttpRequests' (warn): Ambiguous use of & resolved as operator & at (eval 3692) line 2.
ERROR: Target[cachehits][_OUT_] 'cacheHttpHits&cacheProtoClientHttpRequests' (warn): Ambiguous use of & resolved as operator & at (eval 3693) line 2.
Rateup WARNING: /usr/bin/rateup could not read the primary log file for cachehits
Rateup WARNING: /usr/bin/rateup The backup log file for cachehits was invalid as well
Rateup WARNING: /usr/bin/rateup Can't remove cachehits.old updating log file
Rateup WARNING: /usr/bin/rateup Can't rename cachehits.log to cachehits.old updating log file
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1199.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1199.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1208.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1208.
Use of uninitialized value in concatenation (.) or string at /usr/bin/mrtg line 1213.

[root@gate mrtg]# killall mrtg




-- 
С уважением, Владимир Гусев


  reply	other threads:[~2005-04-26 10:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-26  9:22 Владимир Гусев
2005-04-26  9:51 ` Andrey Rybak
2005-04-26 10:15   ` Владимир Гусев [this message]
2005-04-26 10:29     ` Andrey Rybak
2005-04-26 16:05       ` Владимир Гусев
2005-04-27  9:42         ` Andrey Rybak
2005-04-28 20:12 ` [Comm] mrtg.cfg Michael Shigorin

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=op.spt33rg7glg102@post.cnt.ru \
    --to=vova1971@narod.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