Difference between revisions of "Netband Project - Ubuntu server"
From Teknologisk videncenter
m (→MRTG) |
m (→MRTG) |
||
Line 60: | Line 60: | ||
# m h dom mon dow command | # m h dom mon dow command | ||
*/5 * * * * env LANG=C /usr/bin/mrtg /home/mrtg/mrtg.cfg --logging /var/log/mrtg/mrtg.log | */5 * * * * env LANG=C /usr/bin/mrtg /home/mrtg/mrtg.cfg --logging /var/log/mrtg/mrtg.log | ||
+ | </pre> | ||
+ | ===Make apache run perl script=== | ||
+ | <pre> | ||
+ | $aptitude install libapache2-mod-perl2 | ||
</pre> | </pre> | ||
Revision as of 13:10, 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
Make apache run perl script
$aptitude install libapache2-mod-perl2