I am seeing the same issue, not sure why yet, but inclusion of any --global options causes all kinda hate and discontent now with cfgmaker. I am just trying to query some Cisco switches, as I have done for years. My perl version is 5.12.4, and I am running on FreeBSD 8 if that matters at all. It does still seem to generate a config, but just pages and pages of errors while it does the generation.
Any ideas what's changed, or how to fix this?? --- Howard Leadmon From: [email protected] [mailto:[email protected]] On Behalf Of Pavel Ruzicka Sent: Monday, May 14, 2012 5:33 AM To: [email protected] Subject: [mrtg] cfgmaker 2.17.4 global option 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
