[mrtg] Re: Modem utilization and CPU usage
Roth, Gabrielle
gabrielle.roth at xo.com
Fri Oct 6 18:05:49 MEST 2000
If you are getting a duplicate target error, that means that whatever's in
the square brackets on the target line occurs more than once in your config.
(Examples from my confg, which uses an external script for cpu usage)
This config will give you a duplicat target error:
Target[ras]:
1.3.6.1.4.1.9.9.47.1.1.6.0&1.3.6.1.4.1.9.9.47.1.1.7.0:community at ras
Legend1[ras]: Modems in Use
Legend2[ras]: Modems Available
<blah>
#---------------------------------------------------------------
Target[ras]: `/usr/local/mrtg/bin/mrtg-cpustate ras`
Legend1[ras]: 5 min exponentially decayed moving average of the CPU busy
percentage
Legend2[ras]: Percentage of available memory used
<blah>
#---------------------------------------------------------------
This one will not:
Target[ras]:
1.3.6.1.4.1.9.9.47.1.1.6.0&1.3.6.1.4.1.9.9.47.1.1.7.0:community at ras
Legend1[ras]: Modems in Use
Legend2[ras]: Modems Available
<blah>
#---------------------------------------------------------------
Target[ras.cpu]: `/usr/local/mrtg/bin/mrtg-cpustate ras`
Legend1[ras.cpu]: 5 min exponentially decayed moving average of the CPU busy
percentage
Legend2[ras.cpu]: Percentage of available memory used
<blah>
#---------------------------------------------------------------
See the difference?
Try giving one of them a different, more descriptive name, like 'ras.modems'
or 'ras.cpu'.
> There is a way to use in the same script, the modem utilization and
> the CPU usage targets. If I specified the same Ip address for
> both, mrtg
> correctly report a duplicate target. I miss something?!?
> Is this address correct for the CPU/Modem target: ex. [10.0.0.1]
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list