NER support and discussion
Would you like to react to this message? Create an account in a few clicks or log in to continue.

The short installation version of "NER" application performance monitor.

Go down

The short installation version of "NER" application performance monitor. Empty The short installation version of "NER" application performance monitor.

Post  ner.d Thu Jun 11, 2009 9:50 pm

A quick install guide for the very best "application perfromance monitor" it is "free" and "open soruce" <----- "Yes, I am trying to get Google to pick this up". Note: You will need to install 1.1 first then upgrade to 1.2.

NER "Network Exchanges Reporter" is a well thought out, easy to use and quick to deploy application performance monitor.

Prerequisites, sure there is much more to getting everything you want so read all the PDF files (in the tar of 1.1) at least once.

If you are good at Linux you can get this up and recording in less than an hour IF your machine is up to date.
I am running mine on Centos5 64bit. So use YUM for getting everything except for gnuplot and mailsend.

Install Prerequisites
yum groupinstall "Development Libraries"
yum -y install gcc
yum -y install libpcap
yum -y install libpcap-devel
yum -y gd
yum -y gd-devel

Download and install these Prerequisites
gnuplot <- doesn't make jpg files if prerequisites are missing. "set terminal jpg small" is the error you will see if gnuplot is not compiled correctly. Also gnuplot will give an error of "only tc lt <n> possible here" if the version number is too low (4.0?). I am running gnuplot 4.2 patchlevel 5.

mailsend
cp mailsend /usr/local/bin

Disable selinux
vi /etc/selinux/config , replace "SELINUX=enforcing" by "SELINUX=disabled"
chkconfig httpd on
restart httpd

Install ner 1.1
Download ner 1.1 and 1.2 from NER Sourceforge
copy it to your source directory and extract.
tar -xvf ner-1.1.tar.gz
cd ner-1.1
Add a new line to the end of findpaths.c (gcc doesn't like the file ending on a line of code)
vi findpaths.c <------------ scroll to the end and hit enter to add a new line.

complie
gcc kill-ner.c -o kill-ner
gcc ner-control.c -o ner-control
gcc export_ftp_or_mail.c -o export_ftp_or_mail
gcc mail_alert.c -o mail_alert
gcc ner-lin.c -lpcap -lrt -lpthread -lm -o ner-lin
gcc request.c -lrt -lpthread -o request

make folders
mkdir /ner
mkdir /ner/bin
mkdir /ner/data
mkdir /ner/admin
chmod -R 755 /ner

copy files
cp ner-control /ner/bin/
cp export_ftp_or_mail /ner/bin/
cp mail_alert /ner/bin/
cp kill-ner /ner/bin/
cp ner-lin /ner/bin/
cp launch_ner /ner/bin/
cp network-interfaces.ini /ner/admin
cp ports.txt /ner/admin
cp findpaths.ini /ner/admin
cp request /var/www/cgi-bin/
cp *.html /var/www/html
cp *.gif /var/www/html
cp *.JPG /var/www/html
cp *.PNG /var/www/html

Edit network-interfaces.ini in /ner/admin and enable the port(s) you want to record traffic with.
vi /ner/admin/network-interfaces.ini

start ner
launch_ner start

stop ner
kill-ner

To upgrade a 1.1 to 1.2
Download ner 1.2 from NER Sourceforge if you haven't already
Copy it to your source directory and extract.
tar -xvf ner-1.2.tar.gz
cd ner-1.2

complie
gcc kill-ner.c -o kill-ner
gcc ner-control.c -o ner-control
gcc export_ftp_or_mail.c -o export_ftp_or_mail
gcc mail_alert.c -o mail_alert
gcc ner-lin.c -lpcap -lrt -lpthread -lm -o ner-lin
gcc request.c -lrt -lpthread -o request

Move old files
mv /ner/bin/ner-lin /ner/bin/ner-lin.1.1
mv /ner/bin/ner-control /ner/bin/ner-control.1.1
mv /ner/bin/export_ftp_or_mail /ner/bin/export_ftp_or_mail.1.1
mv /var/www/cgi-bin/request /var/www/cgi-bin/request.1.1
mv /ner/bin/mail_alert /ner/bin/mail_alert.1.1
mv /ner/bin/kill-ner /ner/bin/kill-ner.1.1

Copy new files from the new 1.2 source directory
cp ner-lin /ner/bin/
cp ner-control /ner/bin/
cp request /var/www/cgi-bin/
cp export_ftp_or_mail /ner/bin/
cp mail_alert /ner/bin/
cp kill-ner /ner/bin/

Open your browser "http://YOURHOST/cgi-bin/request" username admin password ner
alien
[edit More readable, updated for 1.2, fixed missing dependencies]


Last edited by ner.d on Mon Sep 21, 2009 11:13 pm; edited 6 times in total (Reason for editing : Why make a new post :) [read ability and 1.2 installation, fixed dependencies])

ner.d

Posts : 23
Join date : 2009-06-11

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum