[ previous ] [ next ] [ threads ]
 
 From:  "M. G. (Michael) de Bruin" <mg dot debruin at buum dot nl>
 To:  Joe <lagreca at hotmail dot com>
 Cc:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] MRTG Support
 Date:  Wed, 28 Jan 2004 20:24:48 +0100
Just for the record:
- Make a simple script to read some standard data with 'cfgmaker 
[community]@[monowall] >/usr/local/etc/m0n0wall.cfg'
- Edit the output-file m0n0wall.cfg to fit your need (for example, the 
workdir which should say where to put the html-files and graphs)
- Make an entry in /etc/crontab on the server you want to run mrtg on 
(not on m0n0wall, not possible without destroying it):
*/5 * * * * root /usr/local/bin/mrtg /usr/local/etc/m0n0wall.cfg

And then you get something like 
http://dwaalspoor.org/mrtg/neptune_mercury.html

Regards,

Michael

Joe wrote:

> Please excuse my ignorance, but how would you get such a script on a
> m0nowall to execute MRTG?
> 
> Would MRTG be running on the m0n0wall or elsewhere?
> 
> Thanks.
> 
> Joe
> 
> ----- Original Message ----- 
> From: "Michael Mee" <mm2001 at pobox dot com>
> To: "Andy Prasetya" <andyprasetya at netscape dot net>; <m0n0wall at lists dot m0n0 dot ch>
> Sent: Tuesday, January 27, 2004 7:29 PM
> Subject: Re: [m0n0wall] MRTG Support
> 
> 
> 
>>>Now, there is a question, does M0n0Wall can be monitored
>>>by MRTG, regarding that N0n0Wall also support SNMP? if it
>>>does, how to configure it?
>>
>>Yes, you can monitor m0n0wall with MRTG.
>>
>>Here's a simple script, which produces the results at:
>>http://www.sdwug.org/mee/64.7.1.228_all.html
>>
>>Script is below. Enjoy!
>>
>><--- start here ---->
>># Created by
>># ./cfgmaker 66.218.71.88
>>
>>### Global Config Options
>>
>>### Global Defaults
>>
>>#  to get bits instead of bytes and graphs growing to the right
>># Options[_]: growright, bits
>>
>>WorkDir: /home/sdwug/www/mrtg/mee
>>Options[_]: bits, growright
>>
>>######################################################################
>># System: firewall.local
>># Description: FreeBSD firewall.local 4.8-RELEASE FreeBSD 4.8-RELEASE #0:
>>Sun Sep i386
>># Contact: "m0n0wall at mikemee dot com"
>># Location: "San Diego"
>>######################################################################
>>
>>
>>### Interface 1 >> Descr: 'sis0' | Name: '' | Ip: '10.0.0.1' | Eth: '' ###
>>
>>Timezone[66.218.71.87_1]: GMT+7
>>Target[66.218.71.87_1]: 1:public@66.218.71.87:
>>SetEnv[66.218.71.87_1]: MRTG_INT_IP="10.0.0.1" MRTG_INT_DESCR="sis0"
>>MaxBytes[66.218.71.87_1]: 12500000
>>Title[66.218.71.87_1]: Traffic Analysis for 1 -- firewall.local
>>PageTop[66.218.71.87_1]: <H1>Traffic Analysis for 1 -- firewall.local</H1>
>> <TABLE>
>>   <TR><TD>System:</TD>     <TD>firewall.local in "San Diego"</TD></TR>
>>   <TR><TD>Maintainer:</TD> <TD>"m0n0wall at mikemee dot com"</TD></TR>
>>   <TR><TD>Description:</TD><TD>sis0  </TD></TR>
>>   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</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>10.0.0.1 ()</TD></TR>
>> </TABLE>
>>
>>
>>### Interface 2 >> Descr: 'sis1' | Name: '' | Ip: '66.218.71.87' | Eth: ''
>>###
>>
>>Timezone[66.218.71.87_2]: GMT+7
>>Target[66.218.71.87_2]: -2:public@66.218.71.87:
>>SetEnv[66.218.71.87_2]: MRTG_INT_IP="66.218.71.87" MRTG_INT_DESCR="sis1"
>>MaxBytes[66.218.71.87_2]: 640000
>>Title[66.218.71.87_2]: Traffic Analysis for 2 -- firewall.local
>>PageTop[66.218.71.87_2]: <H1>Traffic Analysis for 2 -- firewall.local</H1>
>> <TABLE>
>>   <TR><TD>System:</TD>     <TD>firewall.local in "San Diego"</TD></TR>
>>   <TR><TD>Maintainer:</TD> <TD>"m0n0wall at mikemee dot com"</TD></TR>
>>   <TR><TD>Description:</TD><TD>sis1  </TD></TR>
>>   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</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>66.218.71.87
>>(ip-66.218.71.87.dsl.lax.megapath.net)</TD></TR>
>> </TABLE>
>>
>>
>>### Interface 7 >> Descr: 'wi0' | Name: '' | Ip: '' | Eth: '' ###
>>
>>Timezone[66.218.71.87_7]: GMT+7
>>Target[66.218.71.87_7]: -7:public@66.218.71.87:
>>SetEnv[66.218.71.87_7]: MRTG_INT_IP="" MRTG_INT_DESCR="wi0"
>>MaxBytes[66.218.71.87_7]: 11000000
>>Title[66.218.71.87_7]: Traffic Analysis for 7 -- firewall.local
>>PageTop[66.218.71.87_7]: <H1>Traffic Analysis for 7 -- firewall.local</H1>
>> <TABLE>
>>   <TR><TD>System:</TD>     <TD>firewall.local in "San Diego"</TD></TR>
>>   <TR><TD>Maintainer:</TD> <TD>"m0n0wall at mikemee dot com"</TD></TR>
>>   <TR><TD>Description:</TD><TD>wi0  </TD></TR>
>>   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
>>   <TR><TD>ifName:</TD>     <TD></TD></TR>
>>   <TR><TD>Max Speed:</TD>  <TD>1250.0 kBytes/s</TD></TR>
>> </TABLE>
>>
>>
>><---- end here ----->
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch
>>For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: m0n0wall dash unsubscribe at lists dot m0n0 dot ch
> For additional commands, e-mail: m0n0wall dash help at lists dot m0n0 dot ch
>