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

Mersberger, Robert robert.mersberger at goldenliving.com
Fri Aug 28 17:09:03 CEST 2009


I added this to the cfgmaker below and rename cfgmaker but the results did not change. the cfg file gets saved as BLSWR5E3All but it still shows up in routers2.cgi as BLSWR5E3b8.



I am not sure that I understand your comments on Another way. could you clarify this? maybe example?


________________________________
From: Steve Shipway [mailto:s.shipway at auckland.ac.nz]
Sent: Thursday, August 27, 2009 5:01 PM
To: Mersberger, Robert; mrtg at lists.oetiker.ch
Subject: RE: Using cfgmaker with template and multiple targets on NT

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.



________________________________
Please consider the environment before printing this e-mail.

CONFIDENTIAL NOTICE:
This e-mail message and any attachment(s) (collectively,
this 'Email') are intended only for the confidential use of
the recipient(s) named above. If the reader of this message
is not the intended recipient named above or an agent
responsible for delivering it to the intended recipient
named above, you have received this Email in error.
Please notify the sender immediately and permanently delete
this Email and any copies thereof.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20090828/efb7bf14/attachment.htm 


More information about the mrtg mailing list