From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Comment: RFC 2476 MSA function at mx18.yandex.ru logged sender identity as: vova1971 Date: Tue, 26 Apr 2005 14:15:17 +0400 From: =?koi8-r?B?98zBxMnNydIg59XTxdc=?= To: community@altlinux.ru Subject: Re: [Comm] mrtg.cfg References: <426E0F38.2070208@iop.kiev.ua> Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <426E0F38.2070208@iop.kiev.ua> User-Agent: Opera M2/8.0 (Linux, build 1095) X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 10:15:23 -0000 Archived-At: List-Archive: List-Post: On Tue, 26 Apr 2005 13:51:52 +0400, Andrey Rybak 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]:

proxy Cache Statistics: HTTP Hits / Requests

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 -- С уважением, Владимир Гусев