Jump to content

Recommended Posts

Posted

Подскажите пожалуйста , что я не так делаю?

Вот конфиг mrtg и ошибка:

# Created by

# cfgmaker public@193.109.249.232 --global "WorkDir: c:\www\mrtg" --output mrtg.cfg

 

 

### Global Config Options

 

# for UNIX

# WorkDir: /home/http/mrtg

 

# or for NT

# WorkDir: c:\mrtgdata

WorkDir: C:\WebServers\home\\www\mrtg

### Global Defaults

######################################################################

# Description: LCP SUWGB

# Contact: Administrator

# System Name: LC-Bridge

# Location: Here

#.....................................................................

Target[193.109.249.232]: 1:public@193.109.249.232

 

# to get bits instead of bytes and graphs growing to the right

# Options[125000_]: growright, bits

MaxBytes[193.109.249.232]: 1250000

Title[193.109.249.232]: LC-Bridge (sample.device): inet

 

 

PageTop[193.109.249.232]: <H1>Traffic Analysis for ether0</H1>

<TABLE>

<TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>

<TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>

<TR><TD>Interface:</TD><TD>ether0(1)</TD></TR>

<TR><TD>IP:</TD><TD>sample.device(10.10.10.1)</TD></TR>

<TR><TD>Max Speed:1250000</TD>

<TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>

</TABLE>

 

Target[10.10.10.1.2]: 2:public@10.10.10.1

MaxBytes[10.10.10.1.2]: 1250000

Title[10.10.10.1.2]: LC-Bridge (): ulink0

PageTop[10.10.10.1.2]: <H1>Traffic Analysis for ulink0</H1>

<TABLE>

<TR><TD>System:</TD><TD>LC-Bridge inAndover</TD></TR>

<TR><TD>Maintainer:</TD><TD>Administrator</TD></TR>

<TR><TD>Interface:</TD><TD>ulink0(2)</TD></TR>

<TR><TD>IP:</TD><TD>()</TD></TR>

<TR><TD>Max Speed:</TD>

<TD>1250.0 kBytes/s (ethernetCsmacd)</TD></TR>

</TABLE>

 

#---------------------------------------------------------------

 

EnableIPv6: no

 

######################################################################

# System:

# Description:

# Contact:

# Location:

######################################################################

 

 

WorkDir: c:\www\mrtg

________________________________________________________________________________

C:\mrtg-2.15.2\bin>perl mrtg mrtg.cfg

SNMP Error:

receiving response PDU: Unknown error

SNMPv1_Session (remote host: "193.109.249.232" [193.109.249.232].161)

community: "public"

request ID: 507050085

PDU bufsize: 8000 bytes

timeout: 2s

retries: 5

backoff: 1)

SNMPGET Problem for ifInOctets.1 ifOutOctets.1 sysUptime sysName on public@193.1

09.249.232::::::v4only

2007-11-10 09:52:23: ERROR: Target[193.109.249.232][_IN_] ' $target->[0]{$mode}

' did not eval into defined data

2007-11-10 09:52:23: ERROR: Target[193.109.249.232][_OUT_] ' $target->[0]{$mode}

' did not eval into defined data

2007-11-10 09:52:23, Rateup WARNING: C:/mrtg-2.15.2/bin\rateup could not read th

e primary log file for 193.109.249.232

2007-11-10 09:52:23, Rateup WARNING: C:/mrtg-2.15.2/bin\rateup The backup log fi

le for 193.109.249.232 was invalid as well

2007-11-10 09:52:23, Rateup WARNING: C:/mrtg-2.15.2/bin\rateup Can't remove 193.

109.249.232.old updating log file

2007-11-10 09:52:23, Rateup WARNING: C:/mrtg-2.15.2/bin\rateup Can't rename 193.

109.249.232.log to 193.109.249.232.old updating log file

Posted

я с ним игрался тоже несумел, но потом окольным путем пошел, если нужно только замерить общий трафик смогу расказать детально как и что (даже с картинками) :) (задействовал внутрение ресурсы и возможности + мртг)

Posted

А заюзать cfgmaker из пакета mrtg никак? Он автоматически напишет правильный конфиг для девайса =)

Объясни плиз как его заюзать?это gui? или ручками надо прописывать?я в англицком не сильно :(

Posted

Установил MRTG CFG Creator, но на первой же вкладке не удается подконнектится к внешнему айпишниу. Пишет cannot comminacate device, службу SNMP установил...

Posted

Создал конфиг, теперь после запуска perl mrtg.cfg

 

C:\mrtg-2.15.2\bin>perl mrtg.cfg

Backslash found where operator expected at mrtg.cfg line 10, near "WebServers\"

Backslash found where operator expected at mrtg.cfg line 10, near "home\"

Backslash found where operator expected at mrtg.cfg line 10, near "ua\"

Backslash found where operator expected at mrtg.cfg line 10, near "www\"

Semicolon seems to be missing at mrtg.cfg line 11.

Semicolon seems to be missing at mrtg.cfg line 13.

Bareword found where operator expected at mrtg.cfg line 23, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Operator or semicolon missing before &ifOutOctets at mrtg.cfg line 23.

Ambiguous use of & resolved as operator & at mrtg.cfg line 23.

Array found where operator expected at mrtg.cfg line 23, at end of line

Bareword found where operator expected at mrtg.cfg line 24, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Bareword found where operator expected at mrtg.cfg line 25, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Bareword found where operator expected at mrtg.cfg line 26, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Bareword found where operator expected at mrtg.cfg line 27, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Bareword found where operator expected at mrtg.cfg line 28, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Semicolon seems to be missing at mrtg.cfg line 28.

Bareword found where operator expected at mrtg.cfg line 29, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Bareword found where operator expected at mrtg.cfg line 30, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Bareword found where operator expected at mrtg.cfg line 31, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Number found where operator expected at mrtg.cfg line 31, near "interface 65541"

 

(Do you need to predeclare interface?)

Semicolon seems to be missing at mrtg.cfg line 31.

Bareword found where operator expected at mrtg.cfg line 32, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Bareword found where operator expected at mrtg.cfg line 33, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Bareword found where operator expected at mrtg.cfg line 34, near "193.109.249.23

2_65541_IntUtil"

(Missing operator before IntUtil?)

Number found where operator expected at mrtg.cfg line 35, near "<br><font face='

Arial' size=2>Link Description : Intel® PRO/100"

(Might be a runaway multi-line // string starting on line 34)

(Missing operator before 100?)

Bareword found where operator expected at mrtg.cfg line 36, near "<font face='Ar

ial' size=2>Device"

(Missing operator before Device?)

Bareword found where operator expected at mrtg.cfg line 37, near "<font face='Ar

ial' size=2>Speed"

(Missing operator before Speed?)

Bareword found where operator expected at mrtg.cfg line 38, near "<font face='Ar

ial' size=2>System"

(Missing operator before System?)

Bareword found where operator expected at mrtg.cfg line 39, near "'Arial' size"

(Missing operator before size?)

Bareword found where operator expected at mrtg.cfg line 39, near "15 Model"

(Missing operator before Model?)

Number found where operator expected at mrtg.cfg line 39, near "Model 4"

(Do you need to predeclare Model?)

Bareword found where operator expected at mrtg.cfg line 39, near "4 Stepping"

(Missing operator before Stepping?)

Number found where operator expected at mrtg.cfg line 39, near "Stepping 1"

(Do you need to predeclare Stepping?)

Bareword found where operator expected at mrtg.cfg line 39, near "1 AT"

(Missing operator before AT?)

Number found where operator expected at mrtg.cfg line 39, near "Build 3790"

(Do you need to predeclare Build?)

Bareword found where operator expected at mrtg.cfg line 39, near "3790 Multiproc

essor"

(Missing operator before Multiprocessor?)

String found where operator expected at mrtg.cfg line 42, at end of line

(Missing semicolon on previous line?)

syntax error at mrtg.cfg line 10, near "WorkDir: C:"

Can't find string terminator '"' anywhere before EOF at mrtg.cfg line 42.

 

Выдает только ТАКОЕ Не граффиков, ничего нет...

Posted
http://www.profi-kom.lt/MRTG.doc Вот раскопал мануал, делал иностранцам надеюсь перевод не потребуется :) делался под тупой спутниковый модем. Подсоединение расписано в нутри.
Posted

Я тоже за PRTG вещь просто супер, у меня махенький серверочек специально для етого, тянет данные с всех свитчей и очень красиво НАМНОГО красивее mrtg рисует графы.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...