Routers2 assumes one file per device; so unless you specify the Device name 
using
  routers.cgi*ShortName: Menu name
then it will default to choosing the device name as in one of the Targets.  You 
have 4 different hosts in the targets so it is picking a different one; just 
ass the cfgmaker directive
  --global="routers.cgi*ShortName: BLSWR5E3"
and you'll get this name in the Devices menu instead.

Another way to do this with Routers2 is to create a separate file per device, 
but then make a separate cfg file that uses 'Include:' to include all of them 
(but this file is not run via MRTG).  You can then view devices either 
individually or via the combined virtual device.

Steve

________________________________
From: Mersberger, Robert [mailto:[email protected]]
Sent: Friday, 28 August 2009 3:41 a.m.
To: Steve Shipway; [email protected]
Subject: Using cfgmaker with template and multiple targets on NT

I have a c7000 blade server enclosure with 6 3020 switches that I would like to 
monitor with one config file.
I thought I read somewhere that this could be done using cfgmaker with multiple 
targets defined so I tried this with the following definitions
perl c:\mrtg-2.16.2\bin\cfgmaker  --host-template=cisco.htp 
--snmp-options=:::::1 --community=mybusy --ifref=name --show-op-down 
--global="Workdir: c:\Progra~1\RRDtool\rrd_data"  --global="PathAdd: 
c:\Progra~1\RRDtool"  --global="LogFormat: rrdtool" 
--global="routers.cgi*Options[_]: scaled" --global="Options[_]: bits,growright" 
--output="c:\mrtg_setup\configs\BLSWR5E3A1.cfg" BLSWR5E3A1 BLSWR5E3B2 
BLSWR5e3A5 BLSWR5E3b6

This runs and builds a cfg file BLSWR5E3A1.cfg but it shows up in mrtg (using 
rrdtools and routers2.cgi) as BLSWR5E3b6 under devices.
All information is displayed and monitored but why is the device name wrong and 
how can I correct it.


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

Reply via email to