URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 57100
[ Назад ]

Исходное сообщение
"MRTG + SQUID"

Отправлено AlexanderKim , 06-Июн-05 12:58 
Привет что я не так сделал?
Конфиг для mrtg_squid.cfg

WorkDir: /usr/local/www/squid
LoadMIBs: /usr/local/squid/etc/mib.txt
Language: russian

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

Target[proxy-srvkbinout]: cacheServerInKb&cacheServerOutKb:public@localhost:3401
Title[proxy-srvkbinout]: Cache Server Traffic In / Out
PageTop[proxy-srvkbinout]: <H1>Cache Statistics: Server traffic volume (In/Out) </H1>
MaxBytes[proxy-srvkbinout]: 10000000
Suppress[proxy-srvkbinout]: y
LegendI[proxy-srvkbinout]:  Traffic In
LegendO[proxy-srvkbinout]:  Traffic Out
Legend1[proxy-srvkbinout]:  Traffic In
Legend2[proxy-srvkbinout]:  Traffic Out
YLegend[proxy-srvkbinout]: per minute
ShortLegend[proxy-srvkbinout]: b/min
kMG[proxy-srvkbinout]: k,M,G,T
kilo[proxy-srvkbinout]: 1024
Options[proxy-srvkbinout]: nopercent, perminute

В squid открыл SNMP
При запуске mrtg дает вот такие ошибки

mrtg mrtg_squid.cfg
Unknown SNMP var cacheHttpHits
at /usr/local/bin/mrtg line 1920
Unknown SNMP var cacheProtoClientHttpRequests
at /usr/local/bin/mrtg line 1920
Unknown SNMP var cacheUptime
at /usr/local/bin/mrtg line 1920
Unknown SNMP var cacheSoftware
at /usr/local/bin/mrtg line 1920
Unknown SNMP var cacheVersionId
at /usr/local/bin/mrtg line 1920
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line 1930.
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line 1930.
Unknown SNMP var cacheServerInKb
at /usr/local/bin/mrtg line 1920
Unknown SNMP var cacheServerOutKb
at /usr/local/bin/mrtg line 1920
Unknown SNMP var cacheUptime
at /usr/local/bin/mrtg line 1920
Unknown SNMP var cacheSoftware
at /usr/local/bin/mrtg line 1920
Unknown SNMP var cacheVersionId
at /usr/local/bin/mrtg line 1920
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line 1930.
Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line 1930.
ERROR: Target[proxy-hit][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[proxy-hit][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
ERROR: Target[proxy-srvkbinout][_IN_] ' $target->[1]{$mode} ' did not eval into defined data
ERROR: Target[proxy-srvkbinout][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data

подскажите что не так сделал а


Содержание

Сообщения в этом обсуждении
"MRTG + SQUID"
Отправлено Hammer , 07-Июн-05 07:04 
>Привет что я не так сделал?
>Конфиг для mrtg_squid.cfg
>
>WorkDir: /usr/local/www/squid
>LoadMIBs: /usr/local/squid/etc/mib.txt
>Language: russian
>
>Target[proxy-hit]: cacheHttpHits&cacheProtoClientHttpRequests:public@localhost:3401
>Title[proxy-hit]: HTTP Hits
>PageTop[proxy-hit]: <H1>proxy Cache Statistics: HTTP Hits / Requests</H1>
>MaxBytes[proxy-hit]: 10000000
>Suppress[proxy-hit]: y
>LegendI[proxy-hit]:  HTTP hits
>LegendO[proxy-hit]:  HTTP requests
>Legend1[proxy-hit]:  HTTP hits
>Legend2[proxy-hit]:  HTTP requests
>YLegend[proxy-hit]: perminute
>ShortLegend[proxy-hit]: req/min
>Options[proxy-hit]: nopercent, perminute, dorelpercent
>
>Target[proxy-srvkbinout]: cacheServerInKb&cacheServerOutKb:public@localhost:3401
>Title[proxy-srvkbinout]: Cache Server Traffic In / Out
>PageTop[proxy-srvkbinout]: <H1>Cache Statistics: Server traffic volume (In/Out) </H1>
>MaxBytes[proxy-srvkbinout]: 10000000
>Suppress[proxy-srvkbinout]: y
>LegendI[proxy-srvkbinout]:  Traffic In
>LegendO[proxy-srvkbinout]:  Traffic Out
>Legend1[proxy-srvkbinout]:  Traffic In
>Legend2[proxy-srvkbinout]:  Traffic Out
>YLegend[proxy-srvkbinout]: per minute
>ShortLegend[proxy-srvkbinout]: b/min
>kMG[proxy-srvkbinout]: k,M,G,T
>kilo[proxy-srvkbinout]: 1024
>Options[proxy-srvkbinout]: nopercent, perminute
>
>В squid открыл SNMP
>При запуске mrtg дает вот такие ошибки
>
>mrtg mrtg_squid.cfg
>Unknown SNMP var cacheHttpHits
> at /usr/local/bin/mrtg line 1920
>Unknown SNMP var cacheProtoClientHttpRequests
> at /usr/local/bin/mrtg line 1920
>Unknown SNMP var cacheUptime
> at /usr/local/bin/mrtg line 1920
>Unknown SNMP var cacheSoftware
> at /usr/local/bin/mrtg line 1920
>Unknown SNMP var cacheVersionId
> at /usr/local/bin/mrtg line 1920
>Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line
>1930.
>Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line
>1930.
>Unknown SNMP var cacheServerInKb
> at /usr/local/bin/mrtg line 1920
>Unknown SNMP var cacheServerOutKb
> at /usr/local/bin/mrtg line 1920
>Unknown SNMP var cacheUptime
> at /usr/local/bin/mrtg line 1920
>Unknown SNMP var cacheSoftware
> at /usr/local/bin/mrtg line 1920
>Unknown SNMP var cacheVersionId
> at /usr/local/bin/mrtg line 1920
>Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line
>1930.
>Use of uninitialized value in concatenation (.) or string at /usr/local/bin/mrtg line
>1930.
>ERROR: Target[proxy-hit][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
>ERROR: Target[proxy-hit][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
>ERROR: Target[proxy-srvkbinout][_IN_] ' $target->[1]{$mode} ' did not eval into defined data
>ERROR: Target[proxy-srvkbinout][_OUT_] ' $target->[1]{$mode} ' did not eval into defined data
>
>подскажите что не так сделал а


не подгрузился LoadMIBs: /usr/local/squid/etc/mib.txt


"MRTG + SQUID"
Отправлено alex , 14-Фев-08 18:42 
>не подгрузился LoadMIBs: /usr/local/squid/etc/mib.txt

У меня такая же проблема, mib.txt подгружаю правильный, как побороть?