[mrtg] Odd behavior
Thomas B. Granier
briang at zebec.net
Tue Sep 17 23:21:13 MEST 2002
I'm working on migrating my MRTG infrastructure off of windows and over
to Linux. I've been having fairly good success with doing so. In some
cases I am migrating my RRD databases and in others my old MRTG log
files and converting them to rrd style as part of the migration. I've
encountered some odd behavior in trying to get one of the configuration
files to work. When I run mrtg against the config file I get the
following lines:
Use of uninitialized value in chomp at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1306, <R> line 1.
Use of uninitialized value in split at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1307, <R> line 1.
Argument "" isn't numeric in modulus (%) at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1310, <R> line 1.
Use of uninitialized value in multiplication (*) at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1369.
Use of uninitialized value in multiplication (*) at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1370.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1392.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1392.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
Use of uninitialized value in concatenation (.) or string at
/usr/local/mrtg-2/bin/../lib/mrtg2/MRTG_lib.pm line 1461.
ERROR: No </lastupdate> tag found
ERROR: Cannot update /var/mrtg/data/ZBC/atmside.rrd with
'1032295000:1521970134:437615566' opening
'/var/mrtg/data/ZBC/atmside.rrd': No such file or directory
I'm a bit puzzled by these error messages because I don't know what they
mean and because ALL of my other mrtg configurations are working. I've
poured over the config files and even resorted to recreating them from
scratch, but I can't figure it out. I've attached a sanitized version of
my config file. Thanks in advance.
Config file:
HtmlDir: /var/www/html/mrtg/zbcrrd
ImageDir: /var/www/html/mrtg/zbcrrd
LogDir: /var/mrtg/data/ZBC
Logformat: rrdtool
PathAdd: /usr/local/sbin/
LibAdd: /usr/local/rrdtool-1.0.39/lib/perl/
Interval: 5
RunAsDaemon: Yes
Options[_]: growright,bits
Target[atmside]: /3.5.7.9:Nopers at 5.6.7.8:
SetEnv[atmside]: MRTG_INT_IP="" MRTG_INT_DESCR="ATM1/0"
MaxBytes[atmside]: 5088000
Title[atmside]: Traffic Analysis for 1 -- ZB_INET
PageTop[atmside]: <H1>Traffic Analysis for 1 -- ZB_INET</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ZB_INET in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>ATM1/0 ATM Link to SBC </TD></TR>
<TR><TD>ifType:</TD> <TD>ds3 (30)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>5088.0 kBytes/s</TD></TR>
</TABLE>
#---------------------------------------------------------------
Target[e00zbc_inet]: /5.6.7.8:Nopers at 5.6.7.8:
SetEnv[e00zbc_inet]: MRTG_INT_IP="5.6.7.8"
MRTG_INT_DESCR="FastEthernet0/0"
MaxBytes[e00zbc_inet]: 12500000
Title[e00zbc_inet]: Traffic Analysis for 2 -- ZB_INET
PageTop[e00zbc_inet]: <H1>Traffic Analysis for 2 -- ZB_INET</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ZB_INET in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>FastEthernet0/0 Internet DMZ </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>12.5 MBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD></TD></TR>
</TABLE>
#---------------------------------------------------------------
Target[vlanzbc_inet]: /8.7.6.5:Nopers at 5.6.7.8:
SetEnv[vlanzbc_inet]: MRTG_INT_IP="8.7.6.5"
MRTG_INT_DESCR="FastEthernet2/0"
MaxBytes[vlanzbc_inet]: 12500000
Title[vlanzbc_inet]: Traffic Analysis for 3 -- ZB_INET
PageTop[vlanzbc_inet]: <H1>Traffic Analysis for 3 -- ZB_INET</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ZB_INET in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>FastEthernet2/0 </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD>Fa2/0</TD></TR>
<TR><TD>Max Speed:</TD> <TD>12.5 MBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD></TD></TR>
</TABLE>
#---------------------------------------------------------------
Target[reczbc_inet]: /9.8.7.6:Nopers at 4.5.6.7:
SetEnv[reczbc_inet]: MRTG_INT_IP="3.4.5.6"
MRTG_INT_DESCR="FastEthernet2/1"
MaxBytes[reczbc_inet]: 193000
Title[reczbc_inet]: Traffic Analysis for 4 -- ZB_INET
PageTop[reczbc_inet]: <H1>Traffic Analysis for 4 -- ZB_INET</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ZB_INET in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>FastEthernet2/1 Internal HSRP Interfaces
</TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD>Fa2/1</TD></TR>
<TR><TD>Max Speed:</TD> <TD>193.0 kBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>3.4.5.6 ()</TD></TR>
</TABLE>
#---------------------------------------------------------------
Target[atmDRH]: /4.5.6.7:Nopers at 5.6.7.8:
SetEnv[atmDRH]: MRTG_INT_IP="4.5.6.7" MRTG_INT_DESCR="ATM1/0.3-aal5
layer"
MaxBytes[atmDRH]: 5088000
Title[atmDRH]: Traffic Analysis for 20 -- ZB_INET
PageTop[atmDRH]: <H1>Traffic Analysis for 20 -- ZB_INET</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ZB_INET in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>ATM1/0.3-aal5 layer DRH PVC to SBIS
</TD></TR>
<TR><TD>ifType:</TD> <TD>aal5 (49)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>5088.0 kBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>4.5.6.7 ()</TD></TR>
</TABLE>
#---------------------------------------------------------------
Target[e00zbc_inet2]: /3.4.5.6:Nopers at 3.4.5.6:
SetEnv[e00zbc_inet2]: MRTG_INT_IP="2.3.4.5"
MRTG_INT_DESCR="FastEthernet0/0"
MaxBytes[e00zbc_inet2]: 12500000
Title[e00zbc_inet2]: Traffic Analysis for 2 -- ZB_INET2
PageTop[e00zbc_inet2]: <H1>Traffic Analysis for 2 -- ZB_INET2</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ZB_INET2 in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>FastEthernet0/0 Internet DMZ </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>12.5 MBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>2.3.4.5 ()</TD></TR>
</TABLE>
#---------------------------------------------------------------
Target[reczbc_inet2]: 4:Nopers at 3.4.5.6:
SetEnv[reczbc_inet2]: MRTG_INT_IP="2.3.4.5"
MRTG_INT_DESCR="FastEthernet2/1"
MaxBytes[reczbc_inet2]: 12500000
Title[reczbc_inet2]: Traffic Analysis for 4 -- ZB_INET2
PageTop[reczbc_inet2]: <H1>Traffic Analysis for 4 -- ZB_INET2</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ZB_INET2 in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>FastEthernet2/1 Internal HSRP Interface
</
TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD>Fa2/1</TD></TR>
<TR><TD>Max Speed:</TD> <TD>12.5 MBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>2.3.4.5 ()</TD></TR>
</TABLE>
#---------------------------------------------------------------
Target[S30ZBC_Inet]: /1.2.3.4:Nopers at 3.4.5.6:
SetEnv[S30ZBC_Inet]: MRTG_INT_IP="" MRTG_INT_DESCR="Serial3/0"
MaxBytes[S30ZBC_Inet]: 193000
Title[S30ZBC_Inet]: Traffic Analysis for 5 -- ZB_INET2
PageTop[S30ZBC_Inet]: <H1>Traffic Analysis for 5 -- ZB_INET2</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ZB_INET2 in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>Serial3/0 World Com access </TD></TR>
<TR><TD>ifType:</TD> <TD>frame-relay (32)</TD></TR>
<TR><TD>ifName:</TD> <TD>Se3/0</TD></TR>
<TR><TD>Max Speed:</TD> <TD>193.0 kBytes/s</TD></TR>
</TABLE>
#---------------------------------------------------------------
T. Brian Granier - CCNA, CCSE, MCSE (NT4&W2K), MCP+I, N+, A+
Information Security Specialist
Zebec Data Systems, Inc.
--
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