[mrtg] Template Error

Britt Tabor Britt_Tabor at Jabil.com
Thu Jun 10 23:00:32 MEST 2004


I get the following error when I run indexmaker. I have had mrtg running on
my server for basic router interface monitoring but wanted to expand.
Running some test I ran into this problem. I have included my .cfg file and
the indexmaker syntax I used. Running fedora fc1 on an intel box,
mrtg-2.10.5. It is definitely a problem with the CPU section because when I
comment it out it works. 

Use of uninitialized value in pattern match (m//) at /usr/bin/indexmaker
line 348.
Use of uninitialized value in concatenation (.) or string at
/usr/bin/indexmaker line 349.

***********************************************************************

MY CONFIG FILE

# Created by 
# /usr/bin/cfgmaker --global 'WorkDir: /var/www/mrtg/jgs' --global 'IconDir:
/images' --global 'RunAsDaemon: Yes' --global 'Interval: 5' --noreversedns
--show-op-down --ifdesc=descr --community=public --subdirs=HOSTNAME
--host-template=/etc/mrtg/jgs/host.template jgsbkup01
--output=/etc/mrtg/jgs/jgs.cfg


### 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/jgs
IconDir: /images
RunAsDaemon: Yes
Interval: 5

######################################################################
# System: JGSBKUP01
# Description: Hardware: x86 Family 15 Model 2 Stepping 4 AT/AT COMPATIBLE -
Software: Windows 2000 Version 5.0 (Build 2195 Multiprocessor Free)
# Contact: Sys Admin
# Location: Here
######################################################################
#---------------------------------------------------------------------

Target[jgsbkup01.cpu]:
.1.3.6.1.2.1.25.3.3.1.2.1&.1.3.6.1.2.1.25.3.3.1.2.2:public at jgsbkup01
Title[jgsbkup01.cpu]: CPU Percentage for routername
MaxBytes[jgsbkup01.cpu]: 100
Options[jgsbkup01.cpu]: integer gauge noo
PageTop[jgsbkup01.cpu]: dummy
  <TABLE>
    <TR><TD>System:</TD><TD>jgsbkup01 in Here</TD></TR>
    <TR><TD>Maintainer:</TD><TD>Sys Admin</TD></TR>
    <TR><TD>Description:</TD><TD>Hardware: x86 Family 15 Model 2 Stepping 4
AT/AT COMPATIBLE - Software: Windows 2000 Version 5.0 (Build 2195
Multiprocessor Free)</TD></TR>
    <TR><TD>Resource:</TD><TD>CPU.</TD></TR>
  </TABLE>


### Interface 1 >> Descr: 'MS-TCP-Loopback-interface' | Name: '' | Ip:
'127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
# 
# Target[jgsbkup01_1]: 1:public at jgsbkup01:
# SetEnv[jgsbkup01_1]: MRTG_INT_IP="127.0.0.1"
MRTG_INT_DESCR="MS-TCP-Loopback-interface"
# Directory[jgsbkup01_1]: jgsbkup01
# MaxBytes[jgsbkup01_1]: 1250000
# Title[jgsbkup01_1]: MS TCP Loopback interface -- JGSBKUP01
# PageTop[jgsbkup01_1]: <H1>MS TCP Loopback interface -- JGSBKUP01</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>JGSBKUP01 in Here</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Sys Admin</TD></TR>
#    <TR><TD>Description:</TD><TD>MS-TCP-Loopback-interface  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>softwareLoopback (24)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>1250.0 kBytes/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>127.0.0.1 ()</TD></TR>
#  </TABLE>


### Interface 16777219 >> Descr: '3Com-EtherLink-PCI' | Name: '' | Ip:
'172.31.40.90' | Eth: '00-04-75-c3-60-4a' ###

Target[jgsbkup01_16777219]: 16777219:public at jgsbkup01:
SetEnv[jgsbkup01_16777219]: MRTG_INT_IP="172.31.40.90"
MRTG_INT_DESCR="3Com-EtherLink-PCI"
Directory[jgsbkup01_16777219]: jgsbkup01
MaxBytes[jgsbkup01_16777219]: 12500000
Title[jgsbkup01_16777219]: 3Com EtherLink PCI -- JGSBKUP01
PageTop[jgsbkup01_16777219]: <H1>3Com EtherLink PCI -- JGSBKUP01</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>JGSBKUP01 in Here</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Sys Admin</TD></TR>
   <TR><TD>Description:</TD><TD>3Com-EtherLink-PCI  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>12.5 MBytes/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>172.31.40.90 ()</TD></TR>
 </TABLE>

*****************************************************************
MY INDEXMAKER SYNTAX

indexmaker					\
	--sort=name				\
	--perhost				\
	--section=descr				\
	--show=none				\
	/etc/mrtg/jgs/jgs.cfg			\
	--output=/var/www/mrtg/jgs/index.html


Britt



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