Difference between revisions of "Netband Project - Ubuntu server"

From Teknologisk videncenter
Jump to: navigation, search
(MRTG)
m (MRTG)
Line 25: Line 25:
  
 
<pre># Created by  
 
<pre># Created by  
# /usr/bin/cfgmaker --output /home/mrtg/mrtg.cfg ciscodisco@10.0.0.21
+
# /usr/bin/cfgmaker --output /home/mrtg/10.0.0.21.cfg ciscodisco@10.0.0.21
  
  
Line 46: Line 46:
 
EnableIPv6: no
 
EnableIPv6: no
  
######################################################################
+
Include: /home/mrtg/10.0.0.21
# System: B1rt1.domain.netband.dk
 
# Description: Cisco IOS Software, 2801 Software (C2801-ADVIPSERVICESK9-M), Version 12.4(9)T, RELEASE SOFTWARE (fc1)
 
#          Technical Support: http://www.cisco.com/techsupport
 
#          Copyright (c) 1986-2006 by Cisco Systems, Inc.
 
#          Compiled Sat 17-Jun-06 00:19 by prod_rel_team
 
# Contact:
 
# Location:
 
######################################################################
 
 
 
 
 
### Interface 1 >> Descr: 'FastEthernet0/0' | Name: 'Fa0/0' | Ip: '192.168.1.4' | Eth: '00-1b-d4-0f-8c-a2' ###
 
 
 
Target[10.0.0.21_Fa0_0]: #Fa0/0:ciscodisco@10.0.0.21:
 
SetEnv[10.0.0.21_Fa0_0]: MRTG_INT_IP="192.168.1.4" MRTG_INT_DESCR="FastEthernet0/0"
 
MaxBytes[10.0.0.21_Fa0_0]: 12500000
 
Title[10.0.0.21_Fa0_0]: Traffic Analysis for Fa0/0 -- B1rt1.domain.netband.dk
 
PageTop[10.0.0.21_Fa0_0]: <h1>Traffic Analysis for Fa0/0 -- B1rt1.domain.netband.dk</h1>
 
<div id="sysdetails">
 
<table>
 
<tr>
 
<td>System:</td>
 
<td>B1rt1.domain.netband.dk in </td>
 
</tr>
 
<tr>
 
<td>Maintainer:</td>
 
<td></td>
 
</tr>
 
<tr>
 
<td>Description:</td>
 
<td>FastEthernet0/0  </td>
 
</tr>
 
<tr>
 
<td>ifType:</td>
 
<td>ethernetCsmacd (6)</td>
 
</tr>
 
<tr>
 
<td>ifName:</td>
 
<td>Fa0/0</td>
 
</tr>
 
<tr>
 
<td>Max Speed:</td>
 
<td>12.5 MBytes/s</td>
 
</tr>
 
<tr>
 
<td>Ip:</td>
 
<td>192.168.1.4 ()</td>
 
</tr>
 
</table>
 
</div>
 
 
 
 
 
 
</pre>
 
</pre>
 
For more information see [http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html cfgmaker]
 
For more information see [http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html cfgmaker]

Revision as of 13:07, 20 April 2009

<accesscontrol>NetBand</accesscontrol> This page is part of the Netband Project

OS version:

Applications:

FreeNac

  • Dynamic Virtual LAN management and assignment per end-device
  • LAN Access control (authentication, authorization)

MRTG

  • Network monitoring

1. Install the MRTG package

$ sudo aptitude install mrtg

2. Create the initial config file and poll a device

sudo cfgmaker  --output /home/mrtg/mrtg.cfg ciscodisco@10.0.0.21
# Created by 
# /usr/bin/cfgmaker --output /home/mrtg/10.0.0.21.cfg ciscodisco@10.0.0.21


### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

#  for Debian
WorkDir: /var/www/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

Include: /home/mrtg/10.0.0.21

For more information see cfgmaker

3. Either create additional cfg files for other devices, and copy/paste the relevant parts to the mrtg.cfg file or add them manually

4. Start MRTG

$ sudo env LANG=C /usr/bin/mrtg /home/mrtg/mrtg.cfg

5. Make MRTG run every 5 minutes

$sudo crontab  -e

#        m      h       dom     mon     dow     command
         */5      *       *       *       *       env LANG=C /usr/bin/mrtg /home/mrtg/mrtg.cfg  --logging /var/log/mrtg/mrtg.log

External links

FreeNac
MRTG
RDDTool