[mrtg] Re: I cant get Images under Redhat 9.0.

Rodolfo J. Paiz rpaiz at simpaticus.com
Thu Oct 23 00:12:24 MEST 2003


At 15:44 10/22/2003, Tayfun Özdemir wrote:
>Hello Rodolfo thanx again for everthing.

Anytime, Tayfun. Please always copy such correspondence to the list, so 
that others can help too. Also, since the list is archived, the questions 
and answers will help other people as well. Most people (including me) 
prefer not to do one-on-one technical support sessions but rather to keep 
everything on-list.

>here is my cfg file.
>
>[shootgun at psycoder shootgun]$ cat mrtg.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: /home/httpd/vhosts/psycoder.gen.tr/httpdocs/mrtg
>Options[_]: bits,growright
>
>######################################################################
># System:
># Description:
># Contact:
># Location:
>######################################################################

You have no targets!!! If you have no targets, MRTG does not know what you 
want to graph. Let me show you mine (be careful with the WORD WRAP, many 
things are one long line and the email message must have wrapped them around:

[rpaiz at apollo mrtg]$ cat /etc/mrtg/mrtg.cfg
# Created by
# /usr/bin/cfgmaker --global 'WorkDir: /var/www/apollo.simpaticus.com/mrtg' 
--global 'Options[_]: bits,growright' --output /etc/mrtg/mrtg.cfg.rjp 
apollo-snmp at apollo.simpaticus.com


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

WorkDir: /var/www/apollo.simpaticus.com/mrtg
Options[_]: bits,growright

######################################################################
# System: apollo.simpaticus.com
# Description: Linux apollo.simpaticus.com 2.4.20-2.31sparc #1 Wed Sep 24 
18:10:45 EDT 2003 sparc
# Contact: Rodolfo J. Paiz <rpaiz at simpaticus.com>
# Location: Guatemala (Factorrent)
######################################################################


### Interface 1 >> Descr: 'lo' | Name: '' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[apollo.simpaticus.com_1]: 1:apollo-snmp at apollo.simpaticus.com:
# SetEnv[apollo.simpaticus.com_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[apollo.simpaticus.com_1]: 1250000
# Title[apollo.simpaticus.com_1]: Traffic Analysis for 1 -- 
apollo.simpaticus.com
# PageTop[apollo.simpaticus.com_1]: <H1>Traffic Analysis for 1 -- 
apollo.simpaticus.com</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>apollo.simpaticus.com in Guatemala 
(Factorrent)</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Rodolfo J. Paiz 
&lt;rpaiz at simpaticus.com&gt;</TD></TR>
#    <TR><TD>Description:</TD><TD>lo  </TD></TR>
#    <TR><TD>ifType:</TD>     <TD>softwareLoopback (24)</TD></TR>
#    <TR><TD>ifName:</TD>     <TD></TD></TR>
#    <TR><TD>Max Speed:</TD>  <TD>10.0 Mbits/s</TD></TR>
#    <TR><TD>Ip:</TD>         <TD>127.0.0.1 (localhost.localdomain)</TD></TR>
#  </TABLE>


### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '200.30.141.30' | Eth: '' ###

Target[apollo_external]: 2:apollo-snmp at apollo.simpaticus.com:
SetEnv[apollo_external]: MRTG_INT_IP="200.30.141.30" MRTG_INT_DESCR="eth0"
MaxBytes[apollo_external]: 32000
Title[apollo_external]: Traffic Analysis for apollo.simpaticus.com -- Internet
PageTop[apollo_external]: <H1>Traffic Analysis for apollo.simpaticus.com -- 
Internet</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>apollo.simpaticus.com in Guatemala 
(Factorrent)</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>Rodolfo J. Paiz 
&lt;rpaiz at simpaticus.com&gt;</TD></TR>
    <TR><TD>Description:</TD><TD>eth0  </TD></TR>
    <TR><TD>ifName:</TD>     <TD>Internet</TD></TR>
    <TR><TD>Max Speed:</TD>  <TD>256 Kbps allowed, 10 Mbps interface</TD></TR>
    <TR><TD>Ip:</TD>         <TD>200.30.141.30 
(apollo.simpaticus.com)</TD></TR>
  </TABLE>


### Interface 3 >> Descr: 'eth1' | Name: '' | Ip: '192.200.9.99' | Eth: '' ###

Target[apollo_factorrent]: 3:apollo-snmp at apollo.simpaticus.com:
SetEnv[apollo_factorrent]: MRTG_INT_IP="192.200.9.99" MRTG_INT_DESCR="eth1"
MaxBytes[apollo_factorrent]: 1250000
Title[apollo_factorrent]: Traffic Analysis for apollo.simpaticus.com -- 
Factorrent
PageTop[apollo_factorrent]: <H1>Traffic Analysis for apollo.simpaticus.com 
-- Factorrent</H1>
  <TABLE>
    <TR><TD>System:</TD>     <TD>apollo.simpaticus.com in Guatemala 
(Factorrent)</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>Rodolfo J. Paiz 
&lt;rpaiz at simpaticus.com&gt;</TD></TR>
    <TR><TD>Description:</TD><TD>eth1  </TD></TR>
    <TR><TD>ifName:</TD>     <TD>Factorrent</TD></TR>
    <TR><TD>Max Speed:</TD>  <TD>10 Mbps</TD></TR>
    <TR><TD>Ip:</TD>         <TD>192.200.9.99 (apollo.factorrent.com)</TD></TR>
  </TABLE>

### Interface 4 >> Get the uptime text for a separate file.
#
#Target[apollo_uptime]: 1:apollo-snmp at apollo.simpaticus.com:
#Suppress[apollo_uptime]: ymwd
#Title[apollo_uptime]:
#PageTop[apollo_uptime]:
#MaxBytes[apollo_uptime]: 10

------------------------------------------------------

I also used indexmaker to create an index.html file and customized it a little:

[rpaiz at apollo mrtg]$ cat index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
     <TITLE>MRTG Index Page -- apollo.paiz.org</TITLE>
     <META HTTP-EQUIV="Refresh" CONTENT="300">
     <META HTTP-EQUIV="Cache-Control" content="no-cache">
     <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
     <META HTTP-EQUIV="Expires" CONTENT="Thu, 16 Oct 2003 20:04:37 GMT">
</HEAD>

<BODY bgcolor="#ffffff" text="#000000" link="#000000" vlink="#000000" 
alink="#000000">
<!-- commandline was: /usr/bin/indexmaker --output=index.html mrtg.cfg -->

<H1>MRTG Index Page: apollo.paiz.org</H1>

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10>

<TR><TD><H2><CENTER>Internet</CENTER></H2></TD><TD><H2><CENTER>Factorrent</CENTER></H2></TD></TR>

<TR>
<TD><DIV><B>'Daily' Graph (5 Minute Average)</B></DIV>
<DIV><A HREF="apollo_external.html"><IMG BORDER=1 ALT="apollo_external 
Traffic Graph" SRC="apollo_external-day.png"></A>
<BR>
<SMALL><!--#flastmod file="apollo_external.html" --></SMALL></DIV>
</TD><TD><DIV><B>'Daily' Graph (5 Minute Average)</B></DIV>
<DIV><A HREF="apollo_factorrent.html"><IMG BORDER=1 ALT="apollo_factorrent 
Traffic Graph" SRC="apollo_factorrent-day.png"></A>
<BR>
<SMALL><!--#flastmod file="apollo_factorrent.html" --></SMALL></DIV>
</TD></TR>

<TR>
<TD><DIV><B>'Weekly' Graph (30 Minute Average)</B></DIV>
<DIV><A HREF="apollo_external.html"><IMG BORDER=1 ALT="apollo_external 
Traffic Graph" SRC="apollo_external-week.png"></A>
<BR>
<SMALL><!--#flastmod file="apollo_external.html" --></SMALL></DIV>
</TD><TD><DIV><B>'Weekly' Graph (30 Minute Average)</B></DIV>
<DIV><A HREF="apollo_factorrent.html"><IMG BORDER=1 ALT="apollo_factorrent 
Traffic Graph" SRC="apollo_factorrent-week.png"></A>
<BR>
<SMALL><!--#flastmod file="apollo_factorrent.html" --></SMALL></DIV>
</TD></TR>

<TR>
<TD><DIV><B>'Monthly' Graph (2 Hour Average)</B></DIV>
<DIV><A HREF="apollo_external.html"><IMG BORDER=1 ALT="apollo_external 
Traffic Graph" SRC="apollo_external-month.png"></A>
<BR>
<SMALL><!--#flastmod file="apollo_external.html" --></SMALL></DIV>
</TD><TD><DIV><B>'Monthly' Graph (2 Hour Average)</B></DIV>
<DIV><A HREF="apollo_factorrent.html"><IMG BORDER=1 ALT="apollo_factorrent 
Traffic Graph" SRC="apollo_factorrent-month.png"></A>
<BR>
<SMALL><!--#flastmod file="apollo_factorrent.html" --></SMALL></DIV>
</TD></TR>

<TR>
<TD><DIV><B>'Yearly' Graph (1 Day Average)</B></DIV>
<DIV><A HREF="apollo_external.html"><IMG BORDER=1 ALT="apollo_external 
Traffic Graph" SRC="apollo_external-year.png"></A>
<BR>
<SMALL><!--#flastmod file="apollo_external.html" --></SMALL></DIV>
</TD><TD><DIV><B>'Yearly' Graph (1 Day Average)</B></DIV>
<DIV><A HREF="apollo_factorrent.html"><IMG BORDER=1 ALT="apollo_factorrent 
Traffic Graph" SRC="apollo_factorrent-year.png"></A>
<BR>
<SMALL><!--#flastmod file="apollo_factorrent.html" --></SMALL></DIV>
</TD></TR>

<TR>
</TR>
</TABLE>
<BR>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
   <TR>
     <TD WIDTH=63><A
     HREF="http://www.ee.ethz.ch/~oetiker/webtools/mrtg/"><IMG
     BORDER=0 SRC="mrtg-l.png" WIDTH=63 HEIGHT=25 ALT="MRTG"></A></TD>
     <TD WIDTH=25><A
     HREF="http://www.ee.ethz.ch/~oetiker/webtools/mrtg/"><IMG
     BORDER=0 SRC="mrtg-m.png" WIDTH=25 HEIGHT=25 ALT=""></A></TD>
     <TD WIDTH=388><A
     HREF="http://www.ee.ethz.ch/~oetiker/webtools/mrtg/"><IMG
     BORDER=0 SRC="mrtg-r.png" WIDTH=388 HEIGHT=25
     ALT="Multi Router Traffic Grapher"></A></TD>
   </TR>
</TABLE>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
   <TR VALIGN=top>
   <TD WIDTH=88 ALIGN=RIGHT><FONT FACE="Arial,Helvetica" SIZE=2>
   version 2.9.17</FONT></TD>
   <TD WIDTH=388 ALIGN=RIGHT><FONT FACE="Arial,Helvetica" SIZE=2>
   <A HREF="http://www.ee.ethz.ch/~oetiker/">Tobias Oetiker</A>
   <A HREF="mailto:oetiker at ee.ethz.ch">&lt;oetiker at ee.ethz.ch&gt;</A>
   and&nbsp;<A HREF="http://www.bungi.com/">Dave&nbsp;Rand</A>&nbsp;<A 
HREF="mailto:dlr at bungi.com">&lt;dlr at bungi.com&gt;</A></FONT>
   </TD>
</TR>
</TABLE>
</BODY>
</HTML>



-- 
Rodolfo J. Paiz
rpaiz at simpaticus.com

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