[mrtg] Re: Help: What went wrong??
Matt Zufelt
mzufelt at suu.edu
Fri Jan 7 16:45:32 MET 2005
Your errors, though the line numbers don't match, all seem to be in the PageTop[127.0.0.1_1] section. Specifically, I think that all of the html code beginning with <TABLE> and ending with </TABLE> needs to be indented. The number of spaces isn't significant, so long as there is some white space at the beginning of the line. I like to indent mine with tabs to set them off, but even a single space is sufficient.
So, something like the following should work:
PageTop[127.0.0.1_1]: <H1>Traffic Analysis for 1 -- ESPPHOTOGRAPHY</H1>
<TABLE>
<TR><TD>System:</TD> <TD>ESPPHOTOGRAPHY in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></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 (localhost)</TD></TR>
</TABLE>
>>> Evan Platt <evan at espphotography.com> 1/7/2005 12:22 AM >>>
This has happened before, and it seems to only happen when I reboot (good
old Windows). My mrtg stops working.
My config file is at http://www.espphotography.com/mrtgcfg.html (this isn't
obviously my REAL config file but pasted to HTML).
When I run perl mrtg, I get a whole slew of errors. I've copied and pasted
them below. I just upgraded to 2.11.1, but that didn't solve anything.
You can see my graph at http://www.espphotography.com/mrtg/ .
I put a copy of the mrtg.cfg in an editor to help with the line numbers:
http://www.espphotography.com/mrtg.jpg
Any help appreciated.
Thanks.
Evan
Array found where operator expected at mrtg.cfg line 35, at end of line
Bareword found where operator expected at mrtg.cfg line 36, near
""127.0.0.1" MR
TG_INT_DESCR"
(Missing operator before MRTG_INT_DESCR?)
Semicolon seems to be missing at mrtg.cfg line 36.
Semicolon seems to be missing at mrtg.cfg line 37.
Bareword found where operator expected at mrtg.cfg line 38, near "--
ESPPHOTOGRA
PHY"
(Missing operator before ESPPHOTOGRAPHY?)
Bareword found where operator expected at mrtg.cfg line 39, near "<H1>Traffic"
(Missing operator before Traffic?)
Bareword found where operator expected at mrtg.cfg line 39, near "--
ESPPHOTOGRA
PHY"
(Missing operator before ESPPHOTOGRAPHY?)
Bareword found where operator expected at mrtg.cfg line 41, near
"<TR><TD>System
:</TD"
(Might be a runaway multi-line // string starting on line 39)
(Missing operator before TD?)
Bareword found where operator expected at mrtg.cfg line 41, near
"<TD>ESPPHOTOGR
APHY"
(Missing operator before ESPPHOTOGRAPHY?)
Bareword found where operator expected at mrtg.cfg line 42, near
"<TR><TD>Mainta
iner:</TD"
(Might be a runaway multi-line // string starting on line 41)
(Missing operator before TD?)
Bareword found where operator expected at mrtg.cfg line 42, near "/TD></TR"
(Missing operator before TR?)
Bareword found where operator expected at mrtg.cfg line 43, near "/TD></TR"
(Missing operator before TR?)
Bareword found where operator expected at mrtg.cfg line 44, near "/TD></TR"
(Missing operator before TR?)
Bareword found where operator expected at mrtg.cfg line 46, near
"<TR><TD>Max Sp
eed:</TD"
(Might be a runaway multi-line // string starting on line 45)
(Missing operator before TD?)
Number found where operator expected at mrtg.cfg line 46, near "<TD>1250.0"
(Missing operator before 1250.0?)
Bareword found where operator expected at mrtg.cfg line 46, near "1250.0
kBytes"
(Missing operator before kBytes?)
Bareword found where operator expected at mrtg.cfg line 47, near "<TD>Ip"
(Missing operator before Ip?)
Bareword found where operator expected at mrtg.cfg line 47, near "/TD></TR"
(Missing operator before TR?)
Semicolon seems to be missing at mrtg.cfg line 64.
Backslash found where operator expected at mrtg.cfg line 65, near "www\"
syntax error at mrtg.cfg line 16, near "Options["
"no" not allowed in expression at mrtg.cfg line 19, near ": "
Execution of mrtg.cfg aborted due to compilation errors.
--
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
--
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