Hi Steve

Not sure if I ran it right but used cfgmaker with the -if-template
option and the output in the config file was like the following. All the
interfaces in the output config file were commented out. Any ideas?



Rgds

Derek

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

Cfgmaker call ...

      $ReturnCode = system("perl $main::MrtgBinDir/cfgmaker --global
\"WorkDir: WEBSITE_BASE_DIR\" --global \"Options[_]: growright, bits,
unknaszero, pngdate\" --snmp-options=::1:1::1
$main::TgtData{$TgtName}{CfgMkrOptions} --noreversedns
--subdirs=\"$TgtName\" --ifdesc=descr --ifref=name
--if-template=$main::MrtgScriptsDir/CustomConfigs/nortel_template_file
$comms...@$tgtname > $main::MrtgCfgDir/Base/$TgtName.base.cfg 2> nul");

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

nortel_template_file content:

my($hpdescr)="";



my($hpoid) =
oid_pick($router_connect,$v3opt,"1.3.6.1.4.1.11.2.3.7.11.33.4.2.1.1.2.2.
1.15.$ifindex");



$hpdescr = snmpget($router_connect,$v3opt,$hpoid) if($hpoid);



$hpdescr = $if_description if(!$hpdescr); # in case nothing found



$target_lines = $default_target_directive."\n"



      ."Title[$target_name]: Traffic analysis for $hpdescr --
$sysname\n"



      ."SetEnv[$target_name]: MRTG_INT_IP=\"$if_ip\"
MRTG_INT_DESCR=\"$if_snmp_name\"\n"



      .$default_maxbytes_directive."\n"



      .$default_pagetop_directive."\n"



      .$default_directory_directive."\n"



      ."routers.cgi*ShortDesc[$target_name]: $hpdescr\n";

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

Cfgmaker output ...
### Interface 271 >> Descr: '' | Name: '' | Ip: '' | Eth: '' ###

### The following interface is commented out because:

### * --ifref=name is not unique for this interface

# Target[bs12.bm.syd_271]: 271:[email protected]::1:1::1

# Title[bs12.bm.syd_271]: Traffic analysis for    -- BS12.BM.SYD

# SetEnv[bs12.bm.syd_271]: MRTG_INT_IP="" MRTG_INT_DESCR=""

# MaxBytes[bs12.bm.syd_271]: 125000000

# PageTop[bs12.bm.syd_271]: <snip>

#

#                                  <table>

#                                              <tr>

#
<td>System:</td>

#
<td>BS12.BM.SYD in </td>

#                                              </tr>

#                                              <tr>

#
<td>Maintainer:</td>

#                                                          <td></td>

#                                              </tr>

#                                              <tr>

#
<td>Description:</td>

#                                                          <td>  </td>

#                                              </tr>

#                                              <tr>

#
<td>ifType:</td>

#
<td>ethernetCsmacd (6)</td>

#                                              </tr>

#                                              <tr>

#
<td>ifName:</td>

#                                                          <td></td>

#                                              </tr>

#                                              <tr>

#                                                          <td>Max
Speed:</td>

#                                                          <td>1000.0
Mbits/s</td>

#                                              </tr>

#                                  </table>

#

# Directory[bs12.bm.syd_271]: bs12.bm.syd

# routers.cgi*ShortDesc[bs12.bm.syd_271]:





### Interface 272 >> Descr: '' | Name: '' | Ip: '' | Eth: '' ###

### The following interface is commented out because:

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



Derek Hazell | System Administrator

  <http://www.aap.com.au/>

Australian Associated Press
L5 3 Rider Boulevard Rhodes Waterside, Rhodes, NSW, 2138

T +61 0293228910 | F +61 0293228086 | E [email protected]




**********************************************************************
This email is intended for the use of the addressee only. If you receive this 
email in error, please delete it immediately. This email may contain 
information which is confidential and/or legally privileged. You must not use 
or disclose the contents of this email, or add the sender's email address to 
any database, list or mailing list unless you are expressly authorised to do so.

The statements or views expressed in this email are those of the individual 
sender and are not those of Australian Associated Press Pty Ltd (AAP). These 
statements are not binding on AAP, except where the sender expressly and with 
authority, states them to be.

AAP is unable to review the contents of all the email on its system. To the 
extent permitted by law, AAP disclaims all liability for any loss or damage 
caused by the contents of this email.

www.aap.com.au
**********************************************************************

<<image001.gif>>

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to