Version 24 (modified by andreu, 11 years ago) |
---|
How-to install renetcol on a Debian Linux 32bits
- ask renetcol-0.0.14.tar.gz file to andreu[at]renater[dot]fr
- Requirements:
- gcc
apt-get install gcc
- Embedded GNU C Library: Profiling Libraries (for centOS, the library name is glibc-utils.x86 and you need to change the Makefile.am file: -lc_p => -lpcprofile)
apt-get install libc6-prof
- RRD library
apt-get install librrd2-dev
- make
apt-get install make
- psmisc
apt-get install psmisc
- gcc
- install
- extract archive
tar xvzf renetcol-0.0.14.tar.gz
- we recommand you to create a directory to log your config file:
mkdir CONF_RENETCOL cp renetcol-0.0.14/conf/routers.txt CONF_RENETCOL/ cp renetcol-0.0.14/src/renetcolParam.h CONF_RENETCOL/
- go to the directory
cd renetcol-0.0.14
- configuration of renetcol renetcol configuration
- syslog section: add renetcol log in /etc/rsyslog.conf (last line below)
############### #### RULES #### ############### # # First some standard log files. Log by facility. # auth,authpriv.* /var/log/auth.log *.*;auth,authpriv.none -/var/log/syslog #cron.* /var/log/cron.log daemon.* -/var/log/daemon.log kern.* -/var/log/kern.log lpr.* -/var/log/lpr.log mail.* -/var/log/mail.log user.* -/var/log/user.log local7.* -/var/log/renetcol.log
- configure step
./configure --help
- to use renetcol in realtime mode without accounting:
./configure --enable-ipv4aggidsnmp=no
- to use renetcol in realtime mode without accounting:
- make
make all
- change the path in the launcher script
vim tool/check.sh
- and run it
/bin/sh /home/andreu/renetcol-0.0.14/tool/check.sh /home/andreu/renetcol-0.0.14
- extract archive
- First ps output:
root 14876 1 0 15:32 ? 00:00:00 /home/andreu/renetcol-0.0.14/src/renetcol root 14878 1 0 15:32 ? 00:00:00 /home/andreu/renetcol-0.0.14/src/renetcolSender /home/andreu/renetcol-0.0.14/src/renetcol 1 root 14879 14878 0 15:32 ? 00:00:00 /home/andreu/renetcol-0.0.14/src/renetcolSender /home/andreu/renetcol-0.0.14/src/renetcol 1 root 14881 1 0 15:32 ? 00:00:00 /home/andreu/renetcol-0.0.14/src/renetcolAgg
- ps output after a renetcolGUI client request:
root 14876 1 0 15:32 ? 00:00:02 /home/andreu/renetcol-0.0.14/src/renetcol root 14878 1 0 15:32 ? 00:00:00 /home/andreu/renetcol-0.0.14/src/renetcolSender /home/andreu/renetcol-0.0.14/src/renetcol 1 root 14879 14878 0 15:32 ? 00:00:00 /home/andreu/renetcol-0.0.14/src/renetcolSender /home/andreu/renetcol-0.0.14/src/renetcol 1 root 14881 1 0 15:32 ? 00:00:00 /home/andreu/renetcol-0.0.14/src/renetcolAgg root 14884 14879 0 15:36 ? 00:00:00 [renetcolSender] <defunct>
- renetcolGUI install :
- on Linux and Windows XP, see : http://renetcol.renater.fr/wiki/renetcolGUI
- on WIndows 7, python2.6 is required (and not 2.7) and the 32 bits version (even if you have a 7 64bits):
http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-bundle_2.16.6-20100912_win32.zip Unzip in C:\Program Files (x86)\GTK open a DOS shell and apply the command : REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path /d "%PATH%;C:\Program Files\GTK\bin" /f reboot ;) http://ftp.acc.umu.se/pub/GNOME/binaries/win32/pygtk/2.16/pygtk-2.16.0.win32-py2.6.exe http://www.salsabeatmachine.org/python/pycairo-1.8.10.win32-py2.6.exe http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.26/pygobject-2.26.0-1.win32-py2.6.exe check your firewall, the collector must send UDP packet on port 2222 to your station where renetcolGUI is installed