Hi,
 
Iam getting this error everytime when iam trying to access the webpage nfsen 
.Please help  to get this resolved .
 
 
 
ERROR: nfsend connect() error: Connection refused! ERROR: nfsend - connection 
failed!! ERROR: Can not initialize globals! 
 
On restarting the nfsen service getting this error 
 
~# /etc/init.d/nfsen restart
syntax error at /data/nfsen/libexec/Lookup.pm line 42, near "use Socket6:"
BEGIN not safe after errors--compilation aborted at 
/data/nfsen/libexec/Lookup.pm line 43.
Compilation failed in require at /data/nfsen/libexec/Nfcomm.pm line 53.
BEGIN failed--compilation aborted at /data/nfsen/libexec/Nfcomm.pm line 53.
Compilation failed in require at /etc/init.d/nfsen line 60.
BEGIN failed--compilation aborted at /etc/init.d/nfsen line 60.
 
 
 
Regards
Pankaj Singh
http://www.axxerainc.com/
91 8688999599
040 65989899
 
 
--------- Original Message --------- Subject: Re: [Nfsen-discuss] web interface 
blank
From: "Mark Maciolek" <m...@sr.unh.edu>
Date: 12/3/14 2:39 am
To: nfsen-discuss@lists.sourceforge.net

hi,
 
 I had to chmod go+rw nfsen.comm for my web page to work
 
 Mark
 
 On 12/2/2014 3:59 PM, Duddilla, Srikanth wrote:
  Hello,
 After I installed nfsen, I was unable to make web interface working. I 
appreciate your help.
 
 I get these errors when I access the web interface  http://<local 
Server>/nfsen/nfsen.php
 ERROR: nfsend connect() error: Permission denied!
 ERROR: nfsend - connection failed!!
 ERROR: Can not initialize globals!
 
 BASEDIR is configured as /data/nfsen
 Web root is /var/www
 
 I have checked the permission for Nfcomm.php, socket  nfsen.comm,  NfConf.pm, 
and nfsen.php. They have read and execute permission for all.
 
 srw-rw---- 1 netflow www 0 Dec  2 11:57 /data/nfsen/var/run/nfsen.comm
 -rwxrwxrwx 1 netflow www 36293 Nov 20 12:39 /data/nfsen/libexec/Nfcomm.pm
 -rwxrwx--x 1 netflow www  5401 Nov 20 12:39 /data/nfsen/libexec/NfConf.pm
 -rwxrwxr-x 1 netflow www 21670 Nov 26 08:32 /var/www/nfsen/nfsen.php
 
 
 nfsen directory in web root has these permission. Files in subdirectories such 
as /var/www/nfsen/css are owned and have read permissions for all.
 # ls -l /var/www/nfsen
 total 312
 -rw-r-xr-x 1 netflow www 45019 Nov 20 12:39 alerting.php
 -rw-r--r-- 1 netflow www 24139 Nov 20 12:39 colour_palette.html
 -rw-r--r-- 1 netflow www  3318 Nov 20 12:39 colour_picker.html
 -rw-r-xr-x 1 netflow www   149 Nov 20 12:39 conf.php
 drwxrwxrwx 2 netflow www  4096 Nov 20 12:39 css
 -rw-r-xr-x 1 netflow www 58535 Nov 20 12:39 details.php
 drwxrwxrwx 2 netflow www  4096 Nov 20 12:39 icons
 drwxrwxrwx 2 netflow www  4096 Nov 20 12:39 js
 -rw-r-xr-x 1 netflow www  1177 Nov 20 12:39 lookup.php
 -rw-r-xr-x 1 netflow www  4130 Nov 20 12:39 navigator.php
 -rwxrwxr-x 1 netflow www 21670 Nov 26 08:32 nfsen.php
 -rw-r--r-- 1 netflow www 21670 Nov 25 10:31 nfsen.php.20141125
 -rw-r-xr-x 1 netflow www 17666 Nov 20 12:39 nfsenutil.php
 -rw-r-xr-x 1 netflow www  3868 Nov 20 12:39 overview.php
 -rw-r-xr-x 1 netflow www  2740 Nov 20 12:39 pic.php
 drwxrwxrwx 2 netflow www  4096 Nov 20 12:39 plugins
 -rw-r-xr-x 1 netflow www  4258 Nov 20 12:39 process.php
 -rw-r-xr-x 1 netflow www 58930 Nov 20 12:39 profileadmin.php
 -rw-r-xr-x 1 netflow www  1389 Nov 20 12:39 rrdgraph.php.
 
 ## Example of nfsen subdirectory contents in web root.
 # ls -l /var/www/nfsen/css
 total 20
 -rw-r--r-- 1 root www 2254 Nov 20 12:39 alerting.css
 -rw-r--r-- 1 root www 1238 Nov 20 12:39 detail.css
 -rw-r--r-- 1 root www  349 Nov 20 12:39 lookup.css
 -rw-r--r-- 1 root www 3491 Nov 20 12:39 nfsen.css
 -rw-r--r-- 1 root www 1774 Nov 20 12:39 profileadmin.css
 
 
 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 I am listing nfsen configuration file in case someone wants to have a look at 
it. In the list below I eliminated most of the comments section from the config 
file.
 
 
 [root@netflow-proc1 nfsen]# grep -v "^#" /data/nfsen/etc/nfsen.conf
 
 $BASEDIR = "/data/nfsen";
 
 $BINDIR="${BASEDIR}/bin";
 
 $LIBEXECDIR="${BASEDIR}/libexec";
 
 $CONFDIR="${BASEDIR}/etc";
 
 $HTMLDIR    = "/var/www/nfsen/";
 
 $DOCDIR="${HTMLDIR}/doc";
 
 $VARDIR="${BASEDIR}/var";
 
 
 
 $PROFILESTATDIR="${BASEDIR}/profiles-stat";
 
 $PROFILEDATADIR="${BASEDIR}/profiles-data";
 
 $BACKEND_PLUGINDIR="${BASEDIR}/plugins";
 
 $FRONTEND_PLUGINDIR="${HTMLDIR}/plugins";
 
 $PREFIX  = '/usr/local/bin';
 
 
 $USER    = "netflow";
 
 $WWWUSER  = "www";
 $WWWGROUP = "www";
 
 $BUFFLEN = 200000;
 
 $SUBDIRLAYOUT = 1;
 
 $ZIPcollected    = 1;
 
 $ZIPprofiles     = 1;
 
 
 $PROFILERS = 2;
 
 $DISKLIMIT = 98;
 
 $PROFILERS = 6;
 
 
 %sources = (
     'upstream1'    => { 'port' => '9995', 'col' => '#0000ff', 'type' => 
'netflow' },
     'peer1'        => { 'port' => '9996', 'IP' => '172.16.17.18', 'col' => 
'#0000ff', 'type' => 'netflow' },
     'peer2'        => { 'port' => '9996', 'IP' => '172.16.17.19', 'col' => 
'#FFFF00', 'type' => 'netflow'},
     'Linux-Host-eth1'   => { 'port' => '1501', 'col' => '#ff0000', 'type' => 
'netflow' },
 );
 
 $low_water = 90;
 
 $syslog_facility = 'local3';
 
 
 
 @plugins = (
     # profile    # module
     # [ '*',     'demoplugin' ],
 );
 
 %PluginConf = (
         # For plugin demoplugin
         demoplugin => {
                 # scalar
                 param2 => 42,
                 # hash
                 param1 => { 'key' => 'value' },
         },
         # for plugin otherplugin
         otherplugin => [
                 # array
                 'mary had a little lamb'
         ],
 );
 
 $MAIL_FROM   = 'y...@from.example.net';
 
 $SMTP_SERVER = 'localhost';
 
 $MAIL_BODY       = q{
 Alert '@alert@' triggered at timeslot @timeslot@
 };
 
 
 1;
 
 
 
 Srikanth Duddilla (Sree)
 Email:  srikanth.duddi...@centurylink.com
 Phone: 318-330-6146
 
 
This communication is the property of CenturyLink and may contain confidential 
or privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful. If you have received this communication in 
error, please immediately notify the sender by reply e-mail and destroy all 
copies of the communication and any attachments.

 ------------------------------------------------------------------------------
 Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
 from Actuate! Instantly Supercharge Your Business Reports and Dashboards
 with Interactivity, Sharing, Native Excel Exports, App Integration & more
 Get technology previously reserved for billion-dollar corporations, FREE
 http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk 

 _______________________________________________
 Nfsen-discuss mailing list
 Nfsen-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
  
 -- 
 
 Mark Maciolek
 Network Administrator
 Morse Hall Room 339
 603-862-3050
 https://www.unh.edu/research/support-units/research-computing-center 

        This email has been checked for viruses by Avast antivirus software. 
www.avast.com
    
 
------------------------------------------------------------------------------ 
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! 
Instantly Supercharge Your Business Reports and Dashboards with Interactivity, 
Sharing, Native Excel Exports, App Integration & more Get technology previously 
reserved for billion-dollar corporations, FREE 
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk_______________________________________________
 Nfsen-discuss mailing list Nfsen-discuss@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to