[mrtg] Maximum hosts passed to cfgmaker?

Brown, Mason - (Turner) mbrown at tcco.com
Wed Jun 9 15:07:29 MEST 2004


I think I may have hit a limit of the maximum number of hosts that can
be passed as command-line arguments to cfgmaker.  I have some custom
code that determines which devices should be added (runs nightly), then
passes all devices to a single instance of cfgmaker to create a single
.cfg file for monitoring.  Lately I've seen some of the devices dropped
from the output .cfg file, and odd behavior for the first device polled.


Below you can find the first portion of a .cfg file showing the problem.
SNMP communities and IPs have been altered to preserve anonymity.
Notice how the first device / interface polled shows a different IP in
the error description than in the commented-out interface.  The last
device successfully polled by cfgmaker is 10.20.1.97 (output not
included), which means the last 6 devices weren't touched.  Also, at the
end of the .cfg file are 6 empty description blocks (with System:
Description: Contact: Location:).

Have I reached a hard-coded limitation for cfgmaker?  Do I need to split
this up into multiple subsets to handle this many devices?

Thanks in advance for all your help.  I've used and loved MRTG for years
now, and really enjoy learning how to extend its functionality through
custom scripts using RRDTool.

-Mason



# Created by 
# /usr/local/mrtg-2/bin/cfgmaker --output=/var/www/mrtg/turner-buwan.cfg
--ifref=name --ifdesc=descr --no-down --noreversedns --global 'workdir:
/var/www/mrtg' --global 'Options[_]: bits' --global 'Unscaled[_]: ymwd'
--global 'LogFormat: rrdtool' --global 'PathAdd:
/usr/local/rrdtool-1.0.46/bin/' --global 'LibAdd:
/usr/local/rrdtool-1.0.46/lib/perl/' travel2=return3 at 10.18.20.1
travel2=return3 at 10.18.21.1 travel2=return3 at 10.18.22.1
travel2=return3 at 10.18.23.1 travel2=return3 at 10.18.24.1
travel2=return3 at 10.18.25.1 travel2=return3 at 10.18.26.1
travel2=return3 at 10.18.27.1 travel2=return3 at 10.18.28.1
travel2=return3 at 10.18.29.1 travel2=return3 at 10.18.30.1
travel2=return3 at 10.18.31.1 travel2=return3 at 10.18.32.1
travel2=return3 at 10.18.33.1 travel2=return3 at 10.18.34.1
travel2=return3 at 10.18.35.1 travel2=return3 at 10.18.36.1
travel2=return3 at 10.18.37.1 travel2=return3 at 10.18.38.1
travel2=return3 at 10.18.39.1 travel2=return3 at 10.18.40.1
travel2=return3 at 10.18.42.1 travel2=return3 at 10.18.43.1
travel2=return3 at 10.18.44.1 travel2=return3 at 10.18.46.1
travel2=return3 at 10.18.47.1 travel2=return3 at 10.18.48.1
travel2=return3 at 10.18.49.1 travel2=return3 at 10.18.50.1
travel2=return3 at 10.18.51.1 travel2=return3 at 10.18.52.1
travel2=return3 at 10.18.53.1 travel2=return3 at 10.18.54.1
travel2=return3 at 10.18.55.1 travel2=return3 at 10.18.56.1
travel2=return3 at 10.18.57.1 travel2=return3 at 10.18.58.1
travel2=return3 at 10.18.59.1 travel2=return3 at 10.18.60.1
travel2=return3 at 10.18.61.1 travel2=return3 at 10.18.62.1
travel2=return3 at 10.18.63.1 travel2=return3 at 10.18.64.1
travel2=return3 at 10.18.66.1 travel2=return3 at 10.18.67.1
travel2=return3 at 10.18.68.1 travel2=return3 at 10.18.69.1
travel2=return3 at 10.18.70.1 travel2=return3 at 10.18.71.1
travel2=return3 at 10.18.72.1 travel2=return3 at 10.18.74.1
travel2=return3 at 10.18.76.1 travel2=return3 at 10.18.77.1
travel2=return3 at 10.18.78.1 travel2=return3 at 10.18.79.1
travel2=return3 at 10.18.80.1 travel2=return3 at 10.18.81.1
travel2=return3 at 10.18.82.1 travel2=return3 at 10.18.83.1
travel2=return3 at 10.18.84.1 travel2=return3 at 10.18.86.1
travel2=return3 at 10.18.87.1 travel2=return3 at 10.18.100.1
travel2=return3 at 10.18.101.1 travel2=return3 at 10.18.102.1
travel2=return3 at 10.20.1.1 travel2=return3 at 10.20.1.33
travel2=return3 at 10.20.1.49 travel2=return3 at 10.20.1.65
travel2=return3 at 10.20.1.97 travel2=return3 at 10.20.1.129
travel2=return3 at 10.20.1.145 travel2=return3 at 10.20.1.161
travel2=return3 at 10.20.1.225 travel2=return3 at 10.20.4.1
travel2=return3 at 10.20.6.1


### 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: /var/www/mrtg
Options[_]: bits
Unscaled[_]: ymwd
LogFormat: rrdtool
PathAdd: /usr/local/rrdtool-1.0.46/bin/
LibAdd: /usr/local/rrdtool-1.0.46/lib/perl/

######################################################################
# System: TURNDAL1
# Description: Cisco Internetwork Operating System Software 
#          IOS (tm) C2600 Software (C2600-IS-M), Version 12.0(7)T,
RELEASE SOFTWARE (fc2)
#          Copyright (c) 1986-1999 by cisco Systems, Inc.
#          Compiled Tue 07-Dec-99 02:21 by phanguye
# Contact: 
# Location: 
######################################################################


### Interface 1 >> Descr: 'Serial0/0' | Name: 'Se0/0' | Ip: '' | Eth: ''
###
### The following interface is commented out because:
### * got 'no response received
###     SNMPv1_Session (remote host: "10.20.6.1" [10.20.6.1].161)
###                       community: "travel2=return3"
###                      request ID: -1664486235
###                     PDU bufsize: 8000 bytes
###                         timeout: 2s
###                         retries: 5
###                         backoff: 1)' from interface when trying to
query
# 
# Target[10.18.20.1_Se0_0]: #Se0/0:travel2=return3 at 10.18.20.1:
# SetEnv[10.18.20.1_Se0_0]: MRTG_INT_IP="" MRTG_INT_DESCR="Serial0/0"
# MaxBytes[10.18.20.1_Se0_0]: 192000
# Title[10.18.20.1_Se0_0]: Serial0/0 -- TURNDAL1
# PageTop[10.18.20.1_Se0_0]: <H1>Serial0/0 -- TURNDAL1</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>TURNDAL1 in </TD></TR>
#    <TR><TD>Maintainer:</TD> <TD></TD></TR>
#    <TR><TD>Description:</TD><TD>Serial0/0 t1 kbps link  TURNDAL1
DHEC740012.ATI </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>frame-relay (32)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD>Se0/0</TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>1536.0 kbits/s</TD></TR>
#  </TABLE>


### Interface 2 >> Descr: 'FastEthernet0/0' | Name: 'Fa0/0' | Ip:
'10.18.20.1' | Eth: '00-08-a3-ae-51-80' ###

Target[10.18.20.1_Fa0_0]: #Fa0/0:travel2=return3 at 10.18.20.1:
SetEnv[10.18.20.1_Fa0_0]: MRTG_INT_IP="10.18.20.1"
MRTG_INT_DESCR="FastEthernet0/0"
MaxBytes[10.18.20.1_Fa0_0]: 12500000
Title[10.18.20.1_Fa0_0]: FastEthernet0/0 -- TURNDAL1
PageTop[10.18.20.1_Fa0_0]: <H1>FastEthernet0/0 -- TURNDAL1</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>TURNDAL1 in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>FastEthernet0/0 customer LAN supporting
IP </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>Fa0/0</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>100.0 Mbits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>10.18.20.1 ()</TD></TR>
 </TABLE>

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list