[mrtg] cfgmaker 2.17.4 global option
Howard Leadmon
howard at leadmon.net
Sat May 19 03:50:40 CEST 2012
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: mrtg-bounces+howard=leadmon.net at lists.oetiker.ch
[mailto:mrtg-bounces+howard=leadmon.net at lists.oetiker.ch] On Behalf Of Pavel
Ruzicka
Sent: Monday, May 14, 2012 5:33 AM
To: mrtg at lists.oetiker.ch
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 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
More information about the mrtg
mailing list