Hi, I think your looking for host or interface-templates; you can find some more at http://mrtg.gvolk.com/ the below example from my host-template works fine for me; it can be used with cfgmaker as usual where you can submit all of your devices as parameter my cfgmaker commandline: /usr/local/mrtg/bin/cfgmaker --ifdesc=descr --if-template=interface-genericsnmp.template --host-template=host-genericsnmp.template --community='xxx' --subdirs=HOSTNAME
Michael --- cut host-template-cfg --- my $directory_name = $directory_name . ""; my $target_name = $router_name . ".cpu"; $target_lines .= <<ECHO; #--------------------------------------------------------------------- # W2k-CPU #--------------------------------------------------------------------- Target[$target_name]: 1.3.6.1.2.1.25.3.3.1.2.1&1.3.6.1.2.1.25.3.3.1.2.1:$router_connect Directory[$target_name]: $directory_name MaxBytes[$target_name]: 100 Title[$target_name]: CPU Usage -- $sysname PageTop[$target_name]: <H1>CPU Usage -- $sysname (W2k)</H1> Options[$target_name]: gauge, nopercent Unscaled[$target_name]: dwmy YLegend[$target_name]: CPU Usage (%) ShortLegend[$target_name]: % Legend1[$target_name]: CPU1 usage % Legend2[$target_name]: CPU1 usage % LegendI[$target_name]: CPU1 LegendO[$target_name]: CPU1 ECHO --- cut host-template-cfg --- -----Original Message----- From: Charles R. Wolfe [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 10:35 PM To: [EMAIL PROTECTED] Subject: [mrtg] Multi Target list Does anyone know how to feed a list to the the Target configuration. I have about 130 devices that I would like to sum a certain variable from all of them. Having to enter all of them in the mrtg.cfg file is a serious pain. I would like to be able to reference a external file in the mrtg.cfg file. An example, if this is possible, would be greatly appreciated. Thanks, -Chuck -- Unsubscribe mailto:[EMAIL PROTECTED] 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 -- Unsubscribe mailto:[EMAIL PROTECTED] 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
