[mrtg] Using cfgmaker with template and multiple targets on NT

Steve Shipway s.shipway at auckland.ac.nz
Fri Aug 28 00:00:45 CEST 2009


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:robert.mersberger at goldenliving.com]
Sent: Friday, 28 August 2009 3:41 a.m.
To: Steve Shipway; mrtg at lists.oetiker.ch
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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20090828/5b276524/attachment-0001.htm 


More information about the mrtg mailing list