[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RaQ4 MRTG (and other) packages



On 07/11/2003, at 6:16 AM, Steve Groom_Cobalt wrote:

Hi,
thanks for this package. I'm starting to read the docs, but I have one
burning question - how to restart MRTG after changing the mrtg.conf file ?

Basically I want to run MRTG on one Raq4 and add sensors to check the status
of my other Raq4 servers and routers.

I tried adding this to the end of /etc/mrtg/mrtg.cnf and rebooting !

#----------------------------
# TCP Connections
#----------------------------

Target[raq01.vtech.ch_eth0]: eth0:public@xxxxxxxxxxxxxx:
SetEnv[raq01.vtech.ch_eth0]: MRTG_INT_IP="80.88.64.58" MRTG_INT_DESCR="eth0"
MaxBytes[raq01.vtech.ch_eth0]: 1250000
Title[raq01.vtech.ch_eth0]: eth0   -- raq01.vtech.ch
PageTop[raq01.vtech.ch_eth0]: <H1>eth0   -- raq01.vtech.ch</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>raq01.vtech.ch </TD></TR>
   <TR><TD>Maintainer:</TD> <TD>Steve</TD></TR>
   <TR><TD>Description:</TD><TD>eth0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>eth0</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>1250.0 kBytes/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>80.88.64.58 ()</TD></TR>
 </TABLE>

and added the following lines to /home/mrtg/index.html

TD><DIV><B>Traffic Analysis for server 2</B></DIV>
<DIV><A HREF="server2.xxxxxx.ch_eth0.html"><IMG BORDER=1 ALT="server2_eth0"
SRC="server3
2.png"></A>
<BR>
<SMALL><!--#flastmod file="server2.html" --></SMALL></DIV>
</TD>

But it just flatlines.... I guess the SNMP stuff is slightly off. Anyone have a working example for MRTG getting SNMP data from other Cobalt servers?

Aside: In fact, how can we mere mortals take apart a .pkg file to see what
it installs and where?

regards
Steve

Hi Steve,

as MRTG runs from the system Crontab every 5 minutes you don't need to restart it, it just starts using the new config entries when it next runs.

As far as why it is just flat lining you might need to add the following to the top of that new section you have created.:

Options[raq01.vtech.ch_eth0]: nopercent,growright,nobanner,nolegend,noinfo

This is because by default I have the graphs being generated in gauge mode which is only useful for monitoring things like HD space not incremental things like network usage.


Cheers,

Lauchlin