DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th August 2009
badguy badguy is offline
Fdisk Soldier
 
Join Date: Jul 2009
Location: MD, USA
Posts: 59
Thanked 0 Times in 0 Posts
Default problem with NFsen

Hi,
Im trying to set up Nfsen on openbsd. when i try installing by running ./install.pl etc/nfsen.conf i get the following error. i guess i am missing out something. Any ideas please

Code:
# ./install.pl etc/nfsen.conf
Can't locate RRDs.pm in @INC (@INC contains: ./libexec ./installer-items /usr/libdata/perl5/i386-openbsd/5.10.0 /usr/local/libdata/perl5/i386-openbsd/5.10.0 /usr/libdata/perl5 /usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd /usr/libdata/perl5/site_perl/i386-openbsd /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl .) at libexec/NfSenRRD.pm line 38.
BEGIN failed--compilation aborted at libexec/NfSenRRD.pm line 38.
Compilation failed in require at libexec/NfSen.pm line 43.
BEGIN failed--compilation aborted at libexec/NfSen.pm line 43.
Compilation failed in require at ./install.pl line 44.
BEGIN failed--compilation aborted at ./install.pl line 44.
my nfsen.conf is

Code:
$BASEDIR = "/data/nfsen-1.3";
$HTMLDIR    = "/var/www/nfsen/";
$PROFILEDATADIR=${BASEDIR}/profiles-stat";
$USER    = "netflow";
$WWWUSER  = "www";
$WWWGROUP = "www";
%sources = (
   '01'    => { 'port' => '9999', 'col' => '#ff0000', 'type' => 'netflow' },
);
and i guess i have all the required programs
Code:
# pkg_info
gettext-0.17p0      GNU gettext
libart-2.3.20p0     high-performance 2D graphics library
libiconv-1.12       character set conversion library
libxml-2.6.32p2     XML parsing library
nfdump-1.5.7        tools to collect and process netflow data
p5-Mail-Tools-2.04  modules for handling mail with perl
p5-Time-TimeDate-1.16p0 library for parsing and formatting dates and times
php5-core-5.2.8p0   server-side HTML-embedded scripting language
png-1.2.33          library for manipulating PNG images
rrdtool-1.2.30      system to store and display time-series data
wget-1.11.4         retrieve files from the web via HTTP, HTTPS and FTP

Last edited by Carpetsmoker; 12th October 2009 at 02:27 PM. Reason: Add [code] tags
Reply With Quote
  #2   (View Single Post)  
Old 11th August 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by badguy View Post
Im trying to set up Nfsen on openbsd.
NfSen has not been ported to OpenBSD.

I hope you realize that attempting to configure software not targetting OpenBSD is usually the domain of advanced users. Even on OpenBSD's official mailing lists, requests like this are usually outside of the scope of what is considered "normal" support. Sometimes porting is simple; most of the time, it is not.
Quote:
# pkg_info
...
rrdtool-1.2.30 system to store and display time-series data
Quote:
Can't locate RRDs.pm in @INC (@INC contains: ./libexec ./installer-items /usr/libdata/perl5/i386-openbsd/5.10.0 /usr/local/libdata/perl5/i386-openbsd/5.10.0 /usr/libdata/perl5 /usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd /usr/libdata/perl5/site_perl/i386-openbsd /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl .) at libexec/NfSenRRD.pm line 38.
BEGIN failed--compilation aborted at libexec/NfSenRRD.pm line 38.
Compilation failed in require at libexec/NfSen.pm line 43.
BEGIN failed--compilation aborted at libexec/NfSen.pm line 43.
Compilation failed in require at ./install.pl line 44.
BEGIN failed--compilation aborted at ./install.pl line 44.
Apparently, the Perl bindings installed through the RRDTool package were not understood by NfSen's Perl install script. This may be due to unrecognized code, but more than likely NfSen is a Linux-centric application. Given that Linux uses a different filesystem structure than OpenBSD, you may have a lot of work ahead of you to change the code into something that will work in the OpenBSD environment. I would suggest you begin by pinpointing what is errant in the above error message, followed by studying the compat_linux(8) & hier(7) manpages.

I have no knowledge of NfSen, so I cannot comment on the configuration files presented. Likewise, I make no guarantee that any of these comments will guide you to a successful port, but if I were you, I'd step back & search for alternatives already available on OpenBSD. I would highly recommend you search for "netflow" on the following sites:If something already available will meet your needs, you have more of a guarantee than walking into a porting project with no guarantee of any kind of workable result.
Reply With Quote
  #3   (View Single Post)  
Old 12th October 2009
gbechis gbechis is offline
Port Guard
 
Join Date: Oct 2009
Posts: 13
Thanked 0 Times in 0 Posts
Default

Try installing RRDs.pm by issuing the command:
$ sudo pkg_add p5-RRD
Giovanni
Reply With Quote
  #4   (View Single Post)  
Old 30th November 2009
denta denta is offline
Fdisk Soldier
 
Join Date: Nov 2009
Posts: 73
Thanked 0 Times in 0 Posts
Default

I just got nfsen-1.3.2 up and running on 4.6 in the chroot apache, and it seems stable so far (everything is working, and i see no errors in any logs). If you still need help I could post some of my install details.
Reply With Quote
  #5   (View Single Post)  
Old 7th May 2010
hardik_indya hardik_indya is offline
New User
 
Join Date: May 2010
Posts: 3
Thanked 0 Times in 0 Posts
Default

pl send some sample file for whole nfsen-1.3.2 installation procedure.
Reply With Quote
  #6   (View Single Post)  
Old 7th May 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by hardik_indya View Post
pl send some sample file for whole nfsen-1.3.2 installation procedure.
By checking the dates of the responses in this thread, you will see that this thread is six months old. The person claiming to have succeeded has not logged into this site since February, so I doubt anyone above will respond to your request.

However, all hope should not be lost, as NFSen was first committed to OpenBSD's ports tree just a few days ago:

http://www.openbsd.org/cgi-bin/cvswe...nfsen/Makefile

Following the procedure described in Section 15 of the FAQ can be used for installation.

However, having been added to the ports tree within the last few days means that NFSen will not be available for OpenBSD 4.7-release or any older version of OpenBSD. 4.7-release will be available to the public between now & mid-May 2010. The code was finalized a few months ago, so the available NFSen port is only available today to -current users until the release of OpenBSD 4.8-release which is tentatively scheduled for November 2010.

If you are unsure about the differences between the -release & -current flavors of OpenBSD, study Section 5.1 of the FAQ.
Reply With Quote
  #7   (View Single Post)  
Old 1st June 2010
hardik_indya hardik_indya is offline
New User
 
Join Date: May 2010
Posts: 3
Thanked 0 Times in 0 Posts
Default pl send NfSen.conf file and NfSenRRDs.pm file for sample

pl send NfSen.conf file and NfSenRRDs.pm file for my reference pl
Quote:
Originally Posted by denta View Post
I just got nfsen-1.3.2 up and running on 4.6 in the chroot apache, and it seems stable so far (everything is working, and i see no errors in any logs). If you still need help I could post some of my install details.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot problem. Geometry problem? gulanito FreeBSD Installation and Upgrading 0 3rd July 2009 03:03 AM


All times are GMT. The time now is 07:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick