Re: [Nfsen-discuss] installation without action
Netflow visualisation and investigation tool
Brought to you by:
phaag
|
From: Peter H. <ha...@sw...> - 2006-04-06 11:52:54
|
-----BEGIN PGP SIGNED MESSAGE-----
To all Solaris users:
It seems as the installer for nfsen v1.2.x may not run correctly under Solaris 9/10.
When executing ./install.pl etc/nfsen.conf, the shell prompt simply returns without
doing anything. For unobvious reason, Perl seems to behave differently under Solaris.
If you experiance the problem described above, apply the appended patch to the installer,
which will fix the problem.
Regards
- Peter
- --On April 5, 2006 11:13:12 +0200 Peter Haag <ha...@sw...> wrote:
| -----BEGIN PGP SIGNED MESSAGE-----
|
| Hans,
| Please try the installer appended. Replace install.pl and rerun
|
| ./install.pl etc/nfsen.conf
|
| This is for nfsen-1.2.4 only!
|
| Report back, what happens. On my Solaris 9 box the installer appended,
| as well as the command I posted below works well.
|
| btw. Another Solaris issue:
| Replace sh-bang line in nfsen.rc to:
|
| # !/usr/bin/bash
|
|
| - Peter
|
|
| - --On March 31, 2006 13:49:17 +0200 hans <nf...@ma...> wrote:
|
| |
| |
| | hello Peter
| |
| | i have one step more, but far away a solution.
| |
| | root# perl ./install.pl etc/nfsen.conf
| | Setup NfSen:
| | Version: 1.2.4: $Id: install.pl 49 2006-02-27 14:35:02Z peter $
| |
| | Perl to use: [/usr/bin/perl]
| | NFSEN does not want to run as root!
| |
| |
| |
| | now /usr/local/nfsen is created, but empty
| | /var/nfsen is not created. even, if i create manually
| | nothing happens.
| |
| | if i change uid to webnoby, which is the user for
| | the http-task, it askes for root:
| |
| | webnoby> perl ./install.pl etc/nfsen.conf
| | nfsen setup wants to run as root
| |
| |
| | below my etc/nfsen.conf, maybe something wrong
| |
| | hmmm....
| |
| | best regards
| | hans
| |
| | --
| |
| | ======================================================================
| | root# cat etc/nfsen.conf
| | ##############################
| | #
| | # NfSen master config file
| | #
| | # $Id: nfsen-dist.conf 34 2005-07-18 12:53:55Z peter $
| | #
| | # Configuration of NfSen:
| | # Set all the values to fit your NfSen setup and run the 'install.pl'
| | # script from the nfsen distribution directory.
| | #
| | # You should not need to changes anything after NfSen is installed,
| | # besides the NfSen plugins at the bottom.
| | # When you make any changes in the plugins section, run 'nfsen reload'
| | # to make sure nfsen-run gets notified about your plugins.
| | #
| | # Do not change any other settings after NfSen is installed.
| | # otherwise you must rerun the install.pl script.
| | #
| | # The syntax must conform to Perl syntax.
| | #
| | ##############################
| | #
| | # NfSen default layout:
| | # Any scripts, modules or profiles are installed by default under $BASEDIR.
| | # However, you may change any of these settings to fit your requested layout.
| |
| | #
| | # Required for default layout
| | $BASEDIR = "/usr/local/nfsen";
| |
| | #
| | # Where to install the NfSen binaries
| | $BINDIR="${BASEDIR}/bin";
| |
| | #
| | # Where to install the NfSen Perl modules
| | $LIBEXECDIR="${BASEDIR}/libexec";
| |
| | #
| | # Where to install the config files
| | $CONFDIR="${BASEDIR}/etc";
| |
| | #
| | # NfSen html pages directory:
| | # All php scripts will be installed here.
| | # URL: Entry point for nfsen: http://<webserver>/nfsen/nfsen.php
| | $HTMLDIR = "/var/nfsen/";
| |
| | #
| | # Where to install the docs
| | $DOCDIR="${HTMLDIR}/doc";
| |
| | #
| | # Var space for NfSen
| | $VARDIR="${BASEDIR}/var";
| |
| | #
| | # The Profiles stat directory, where all profile information
| | # RRD DBs and gif pictures of the profile are stored
| | $PROFILESTATDIR="${BASEDIR}/profiles";
| |
| | #
| | # The Profiles directory, where all netflow data is stored
| | $PROFILEDATADIR="${BASEDIR}/profiles";
| |
| | #
| | # Where go all the backend plugins
| | $BACKEND_PLUGINDIR="${BASEDIR}/plugins";
| |
| | #
| | # Where go all the frontend plugins
| | $FRONTEND_PLUGINDIR="${HTMLDIR}/plugins";
| |
| | #
| | # nfdump tools path
| | $PREFIX = '/usr/local/bin';
| |
| | #
| | # BASEDIR unrelated vars:
| | #
| | # Run nfcapd as this user
| | # This may be a different or the same uid than your web server.
| | # Note: This user must be in group $WWWGROUP, otherwise nfcapd
| | # is not able to write data files!
| | $USER = "root";
| |
| | # user and group of the web server process
| | # All netflow processing will be done with this user
| | $WWWUSER = "webnoby";
| | $WWWGROUP = "squid";
| |
| | # Receive buffer size for nfcapd - see man page nfcapd(1)
| | $BUFFLEN = 200000;
| |
| | # Netflow sources
| | # Define an ident string, port and colour per netflow source
| | # ident identifies this netflow source. e.g. the router name,
| | # Upstream provider name etc.
| | # port nfcapd listens on this port for netflow data for this source
| | # col colour in nfsen graphs for this source
| | #
| | # Syntax:
| | # 'ident' => { 'port' => '<portnum>', 'col' => '<colour>' }
| | # Ident strings must be 1 to 19 characters long only, containing characters [a-zA-Z0-9_].
| |
| | # %sources = (
| | # 'upstream1' => { 'port' => '9995', 'col' => '#0000ff' },
| | # 'peer1' => { 'port' => '9996', 'col' => '#ff0000' },
| | # );
| |
| | %sources = (
| | 'peribit' => { 'port' => '9995', 'col' => '#0000ff' },
| | );
| |
| | #
| | # Low water mark: When expiring files, delete files until
| | # size = max size * low water mark
| | # typically 0.9
| | $low_water = 0.9;
| |
| | #
| | # syslog facility for periodic jobs
| | # nfsen uses level 'debug', 'info', 'warning' and 'err'
| | # Note: nfsen is very chatty for level 'debug' and 'info'
| | # For normal operation, you may set the logging level in syslog.conf
| | # to warning or error unless you want to debug NfSen
| | $syslog_facility = 'local3';
| |
| | #
| | # plugins
| | # plugins are run for each timeslot, after the roll over of new data files.
| | # A plugin may run for any profile or for a specific profile only.
| | # Syntax: [ 'profile', 'module' ]
| | # profile: ',' separated list of profiles, or "*' for any profile
| | # module: Module name.
| | # The module follows the standard Perl module conventions, with at least two
| | # additional functions: Init() and run(). See demoplugin.pm for a simple template.
| | # Plugins are installed under
| | #
| | # $BACKEND_PLUGINDIR and $FRONTEND_PLUGINDIR
| |
| | @plugins = (
| | # profile # module
| | [ '*', 'demoplugin' ],
| | );
| |
| | #
| | # Notification module
| | # The Notification module is an optional module. If you want your plugins to
| | # notify any result by email, use this module.
| | # Make sure you have installed Mail::Internet before using the module
| | #
| | # Use this from address
| | $MAIL_FROM = 'han...@ag...';
| |
| | # Use these recipients
| | $RCPT_TO = 'han...@ag...';
| |
| | # Use this SMTP server
| | $SMTP_SERVER = 'localhost';
| |
| | 1;
| |
| | ======================================================================
| | On Wed, Mar 29, 2006 at 12:02:18PM +0100, Peter Haag wrote:
| | > -----BEGIN PGP SIGNED MESSAGE-----
| | >
| | > Hallo Hans,
| | > Hmm .. strange .. I can reproduce that, but could not sort out the reason for that.
| | > As a work around run:
| | >
| | > perl ./install.pl etc/nfsen.conf
| | >
| | > This works on my Solaris 10.
| | >
| | > - Peter
| | >
| | > - --On March 29, 2006 11:15:24 +0200 hans <nf...@ma...> wrote:
| | >
| | > |
| | > |
| | > | hi all
| | > |
| | > | environment: solaris 10, perl v5.8.4, rrdtool 1.2.11, nfdump 1.5
| | > | i tried to install nfsen-1.2.4
| | > | after cinfiguring etc/nfsen.conf i did run "./install.pl etc/nfsen.conf"
| | > | but the script terminates without doing any action.
| | > | no warning, no error message. it seems, it does only read the
| | > | config and terminates in the next step, see debug below.
| | > |
| | > | as i am not a perl-guru any help would be nice.
| | > |
| | > | best regards
| | > | hans
| | > |
| | > | --
| | > |
| | > |
| | > |
| | > | # ./install.pl -d etc/nfsen.conf
| | > |
| | > | Loading DB routines from perl5db.pl version 1.25
| | > | Editor support available.
| | > |
| | > | Enter h or `h h' for help, or `man perldebug' for more help.
| | > |
| | > | main::(etc/nfsen.conf:29): $BASEDIR = "/usr/local/nfsen";
| | > | DB<1> s
| | > | main::(etc/nfsen.conf:33): $BINDIR="${BASEDIR}/bin";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:37): $LIBEXECDIR="${BASEDIR}/libexec";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:41): $CONFDIR="${BASEDIR}/etc";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:47): $HTMLDIR = "/var/nfsen/";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:51): $DOCDIR="${HTMLDIR}/doc";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:55): $VARDIR="${BASEDIR}/var";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:60): $PROFILESTATDIR="${BASEDIR}/profiles";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:64): $PROFILEDATADIR="${BASEDIR}/profiles";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:68): $BACKEND_PLUGINDIR="${BASEDIR}/plugins";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:72): $FRONTEND_PLUGINDIR="${HTMLDIR}/plugins";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:76): $PREFIX = '/usr/local/bin';
| | > | DB<1>
| | > | main::(etc/nfsen.conf:85): $USER = "root";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:89): $WWWUSER = "webnoby";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:90): $WWWGROUP = "squid";
| | > | DB<1>
| | > | main::(etc/nfsen.conf:93): $BUFFLEN = 200000;
| | > | DB<1>
| | > | main::(etc/nfsen.conf:111): %sources = (
| | > | main::(etc/nfsen.conf:112): 'peribit' => { 'port' => '9995', 'col' => '#0000ff' },
| | > | main::(etc/nfsen.conf:113): );
| | > | DB<1>
| | > | main::(etc/nfsen.conf:119): $low_water = 0.9;
| | > | DB<1>
| | > | main::(etc/nfsen.conf:127): $syslog_facility = 'local3';
| | > | DB<1>
| | > | main::(etc/nfsen.conf:142): @plugins = (
| | > | DB<1>
| | > | main::(etc/nfsen.conf:154): $MAIL_FROM = 'han...@ag...';
| | > | DB<1>
| | > | main::(etc/nfsen.conf:157): $RCPT_TO = 'han...@ag...';
| | > | DB<1>
| | > | main::(etc/nfsen.conf:160): $SMTP_SERVER = 'localhost';
| | > | DB<1>
| | > | main::(etc/nfsen.conf:162): 1;
| | > | DB<1>
| | > | Debugged program terminated. Use q to quit or R to restart,
| | > | use O inhibit_exit to avoid stopping after program termination,
| | > | h q, h R or h O to get additional info.
| | > | DB<1> q
| | > |
| | > |
| | > |
| | > |
| | > | -------------------------------------------------------
| | > | This SF.Net email is sponsored by xPML, a groundbreaking scripting language
| | > | that extends applications into web and mobile media. Attend the live webcast
| | > | and join the prime developer group breaking into this new coding territory!
| | > | http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
| | > | _______________________________________________
| | > | Nfsen-discuss mailing list
| | > | Nfs...@li...
| | > | https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
| | > |
| | >
| | >
| | >
| | > - --
| | > _______ SWITCH - The Swiss Education and Research Network ______
| | > Peter Haag, Security Engineer, Member of SWITCH CERT
| | > PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7
| | > SWITCH, Limmatquai 138, CH-8001 Zurich, Switzerland
| | > E-mail: pet...@sw... Web: http://www.switch.ch/
| | > -----BEGIN PGP SIGNATURE-----
| | > Version: GnuPG v1.2.4 (Darwin)
| | >
| | > iQCVAwUBRCppOv5AbZRALNr/AQFUIQP/Vf7ujdombtUfV0DJrLnyzdAP8/bkauRd
| | > pfYBmkPyIwBRwDpX3zgYZ01XWV8SrxlX/KmWQRiHqqaIoOdqQmV1vpqmvrR6RcDy
| | > 5jcTgLRdd3xUTHDX0zr+DVWgT8Miq8vwcmhPvfy5AmXz6l/wsA+9/ww3kObDDjCC
| | > jnyGiwkdljw=
| | > =3css
| | > -----END PGP SIGNATURE-----
| | >
| | >
| | >
| | > -------------------------------------------------------
| | > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
| | > that extends applications into web and mobile media. Attend the live webcast
| | > and join the prime developer group breaking into this new coding territory!
| | > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
| | > _______________________________________________
| | > Nfsen-discuss mailing list
| | > Nfs...@li...
| | > https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
| |
| |
| | -------------------------------------------------------
| | This SF.Net email is sponsored by xPML, a groundbreaking scripting language
| | that extends applications into web and mobile media. Attend the live webcast
| | and join the prime developer group breaking into this new coding territory!
| | http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
| | _______________________________________________
| | Nfsen-discuss mailing list
| | Nfs...@li...
| | https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
| |
|
|
|
| - --
| _______ SWITCH - The Swiss Education and Research Network ______
| Peter Haag, Security Engineer, Member of SWITCH CERT
| PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7
| SWITCH, Limmatquai 138, CH-8001 Zurich, Switzerland
| E-mail: pet...@sw... Web: http://www.switch.ch/
| -----BEGIN PGP SIGNATURE-----
| Version: GnuPG v1.2.4 (Darwin)
|
| iQCVAwUBRDOKKP5AbZRALNr/AQEsfQP/UEqEC7eboM/XW33kpHthjT2P2r3B7tZn
| nbY3jI9ErJQZNVLjEt7UOFoycLghjTo55dBB2yhWAtLo9kc2mXxQABCOv7p2etCF
| uV+O+xw4rY3O/jXeLAGSCxk7AOrNqsnYHoJjH5pv8qrF20WuthSK9GmaNzgXD03i
| Sp2eGKXEiqY=
| =F1Wb
| -----END PGP SIGNATURE-----
|
|
|
| -------------------------------------------------------
| This SF.Net email is sponsored by xPML, a groundbreaking scripting language
| that extends applications into web and mobile media. Attend the live webcast
| and join the prime developer group breaking into this new coding territory!
| http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
| _______________________________________________
| Nfsen-discuss mailing list
| Nfs...@li...
| https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
|
- --
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag, Security Engineer, Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7
SWITCH, Limmatquai 138, CH-8001 Zurich, Switzerland
E-mail: pet...@sw... Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iQCVAwUBRDUBBv5AbZRALNr/AQFf4wP/YoqaWe7wfTqUyV3Zo+8ujrvjKpI80aQ6
q3BF3PraFuQwiZmcpcgG9fdPoPfnOXKvgpkUTZcHvu8M7hrf3F3Xz6HvZGt8RLdQ
4InbLWyUx/M3FcxXr2gwecSXrdl27UFyxJJgavUMQ8JR/Z8mh+LmBVylr4nf0+cP
AOAumMZ14V4=
=iKgY
-----END PGP SIGNATURE-----
|