[ previous ] [ next ] [ threads ]
 
 From:  "Michael Mee" <mm2001 at pobox dot com>
 To:  "Andy Prasetya" <andyprasetya at netscape dot net>, <m0n0wall at lists dot m0n0 dot ch>
 Subject:  Re: [m0n0wall] MRTG Support
 Date:  Tue, 27 Jan 2004 19:29:55 -0800
> 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 ----->