[mrtg] problem with complex target

Thodoris tgol at kinetix.gr
Mon Jan 28 20:09:04 CET 2008


Hello list,
    I have installed a fresh linux box using CentOS 5.1 and mrtg-2.14.5. 
I was planning to monitor my network by backing up my previous 
installation. Well in that installation (mentioned all this blah-blah 
because mrtg worked before) I used something like this in a conf file:

Target[test.cpu]: ssCpuRawUser.0&ssCpuRawUser.0:mrtg2read@<ip-adress> + 
ssCpuRawSystem.0&ssCpuRawSystem.0:mrtg2read@<ip-adress> + 
ssCpuRawNice.0&ssCpuRawNice.0:mrtg2read@<ip-adress>

assuming that <ip-adress> is the same valid IP address in all cases. 
While trying to run indexmaker this is what I get without defining the 
test.cpu multiple times but just once.

[root at host mrtg]# indexmaker --output index.html /etc/mrtg/mrtg.cfg
ERROR: Line 6 (Target[test.cpu]: 
ssCpuRawUser.0&ssCpuRawUser.0:mrtg2read@<ip-adress> + 
ssCpuRawSystem.0&ssCpuRawSystem.0:mrtg2read@<ip-adress> + 
ssCpuRawNice.0&ssCpuRawNice.0:mrtg2read@<ip-adress>) in CFG file (test.cfg)
contains a duplicate definition for target[test.cpu].
First definition is on line 6

I should say that the file test.cfg is included in the mrtg.cfg but I am 
sure that not duplicate entries in the included files exist. I had the 
same problem before and I solved by just leaving the complex targets out 
(although I need them) so please any help would be very appreciated.

Thanks in advance for tolerating me.

-- 
Thodoris



More information about the mrtg mailing list