cfgmaker 2.17.4 global option

Pavel Ruzicka <[email protected]>
Newsgroups gmane.network.mrtg.user
Message-ID <[email protected]>
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@mrtg bin]$ ./cfgmaker --nointerfaces --global "WorkDir: /usr/local/mrtg/data" [email protected]
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" [email protected]


### 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

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.