[mrtg] cfgmaker 2.17.4 global option

Pavel Ruzicka pavouk at pavouk.org
Mon May 14 11:32:43 CEST 2012


Hello,

I have troubles, that new version 2.17.4 of cfgmaker prints errors to console when used with "--global"
options. Version 2.17.2 works great.

Here is simplest example:
------------------------------------

[mrtg at mrtg bin]$ ./cfgmaker --nointerfaces --global "WorkDir: /usr/local/mrtg/data" public at router.company.cz
Use of uninitialized value in substitution (s///) at ./cfgmaker line 1375.
Use of uninitialized value in substitution (s///) at ./cfgmaker line 1376.
Use of uninitialized value in substitution (s///) at ./cfgmaker line 1377.
Use of uninitialized value in pattern match (m//) at ./cfgmaker line 1382.
Use of uninitialized value in hash element at ./cfgmaker line 1383.
Use of uninitialized value in substitution (s///) at ./cfgmaker line 1375.
Use of uninitialized value in substitution (s///) at ./cfgmaker line 1376.
Use of uninitialized value in substitution (s///) at ./cfgmaker line 1377.
Use of uninitialized value in pattern match (m//) at ./cfgmaker line 1382.
Use of uninitialized value in hash element at ./cfgmaker line 1383.
# Created by 
# ./cfgmaker --nointerfaces --global "WorkDir: /usr/local/mrtg/data" public at router.company.cz


### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no
WorkDir: /usr/local/mrtg/data

######################################################################
# System: router.company.cz
# Description: Cisco IOS Software, 7200 Software (C7200-K91P-M), Version 12.2(31)SB19, RELEASE SOFTWARE (fc1)
#          Technical Support: http://www.cisco.com/techsupport
#          Copyright (c) 1986-2010 by Cisco Systems, Inc.
#          Compiled Mon 06-Sep-10 05:54 by debajpal
# Contact: 
# Location: 
######################################################################
----------------------------------------

I am not much good in perl code. Debug options are same: @main::DEBUG=qw();
I use machine with Centos5 which has PERL v5.8.8.
I used --nointerfaces only for shorter output...
It works, but many messages in log can hide real troubles.

Can somebody try it?

Best regards,

Pavel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20120514/86876bf4/attachment.htm 


More information about the mrtg mailing list