[Comm] mrtg.cfg

Владимир Гусев =?iso-8859-1?q?vova1971_=CE=C1_narod=2Eru?=
Вт Апр 26 14:15:17 MSD 2005


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




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



Подробная информация о списке рассылки community