리눅스의 명령어를 잘 익숙하지 않아서 이런 실수를 하였다.
메시지
mrtg error duplicate definition for target

아래 출처에서 말하듯 2개의 target 설정이 잘못되었다.

이것은 아래 명령어 때문에 발생하였다.
#cfgmaker public@192.168.0.1 >> /etc/mrtg.cfg

이전에 하나 추가했는데, 다시 명령어를 실행을 >> 로 추가하였기 때문이다.

현재 아는 방법은 다른 디바이스의 cfg을 각각 만들어
indexmaker로 합쳐주면 되는듯하다.
(나중에 확인 후 올릴 예정)

출처: http://www.mail-archive.com/mrtg@lists.oetiker.ch/msg29013.html
Flo,
You are using duplicate entries for 2 targets that is Target[10.17.5.201_1]:
this same name (10.17.5.201_1) occurs twice in your cfg file so just replace
the name (10.17.5.201_1) with (10.17.5.201_2) or any other suitable name....
you can not define two differnt target with the same name.. so replace any 1 target name....
and your problem will be solved.
hope it will help you out

Regards
S. Waqqas
[EMAIL PROTECTED] wrote:
Hi I have a problem with my mrtg.
I use mrtg and rrdtool to get informations from layer 3 switches (Traffic
and Broadcasts)
I use mrtg version 2.11.1 and Perl Version 5.8.8
mrtg works a few days, and then I have these error in the Log:
>First definition is on line 25
>contains a duplicate definition for target[10.17.5.201_1].
>2006-11-24 10:12:11 -- ERROR: Line 3101 (Target[10.17.5.201_1]:
>1:[EMAIL PROTECTED]:) in CFG file (D:/MONITORING/Config/mrtgnew.cfg)
If I delete all mrtg data and run the config script, mrtg works well, but
after a few days I have these problem.
If you need more informations , tell me.
Sorry for my poor english.
flo

Posted by 노을지기

티스토리 툴바