Nfsen and php problems...?

View: New views
19 Messages — Rating Filter:   Alert me  

Nfsen and php problems...?

by Bugzilla from richard.daemon@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm really stumped on this and any help would be greatly appreciated.

When trying to load the nfsen/nfsen.php page I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!

I'm sure I have it configured properly and started properly as the
documentation states, I've read over and over and over again...

I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
with and without changing HTMLDIR)

I'm running httpd -u (non-chroot), php enabled, configured in
httpd.conf and tested ok - httpd chrooted works less, for now.

I did the mkdir /data then ran the ./install.pl etc/nfsen.conf

Started it with: ./nfsen start and it starts ok.

in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
(same results)...

%sources = (
    #'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
'type' => 'netflow' },
    'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
=> 'netflow' },
    #'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
);

Then when I try http://slacker/nfsen/nfsen.php I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!in red.

pfflowd -d -n 192.168.0.10 running from remote host.

I tried 1.3 and 1.3b, including nfsen -r live.

I also get this in /var/log/messages:
Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
information. Missing key 'first'

$ netstat -anf inet |grep 995
udp        0      0  *.9995                 *.*

Running OpenBSD 4.2-stable.

Did I miss anything? Am I doing something wrong?

Any help is greatly appreciated!


Re: Nfsen and php problems...?

by Peter Haag-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--On February 16, 2008 11:20:29 PM -0500 Richard Daemon <richard.daemon@...> wrote:

| Hi,
|
| I'm really stumped on this and any help would be greatly appreciated.
|
| When trying to load the nfsen/nfsen.php page I get:
|
| ERROR: nfsend connect() error: No such file or directory!
| ERROR: nfsend - connection failed!!
| ERROR: Can not initialize globals!

The bachend and the frontend communicat over a UNIX socket, which is defined
in nfsen.conf:

#
# nfsend communication socket
# $COMMSOCKET = "$PIDDIR/nfsen.comm";

The default location in in the NfSen POD dir, but can be adjusted as
required. The socket is owned by $USER in group $WWWGROUP with
mode 0660. Depending on what mount flags your volume has, the group
group seamed not be honoured be the OS and the group daemon is used instead.
If so, you need either to change the socket group to $WWWGROUP, or make sure
the socket has mode 0666 ( actually not a very good idea ).
I've not yet figured out, why the group settings are not honoured by the OS.

Hope this help.

    - Peter

|
| I'm sure I have it configured properly and started properly as the
| documentation states, I've read over and over and over again...
|
| I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
| with and without changing HTMLDIR)
|
| I'm running httpd -u (non-chroot), php enabled, configured in
| httpd.conf and tested ok - httpd chrooted works less, for now.
|
| I did the mkdir /data then ran the ./install.pl etc/nfsen.conf
|
| Started it with: ./nfsen start and it starts ok.
|
| in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
| (same results)...
|
| %sources = (
|     #'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
| 'type' => 'netflow' },
|     'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
| => 'netflow' },
|     #'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
| );
|
| Then when I try http://slacker/nfsen/nfsen.php I get:
|
| ERROR: nfsend connect() error: No such file or directory!
| ERROR: nfsend - connection failed!!
| ERROR: Can not initialize globals!in red.
|
| pfflowd -d -n 192.168.0.10 running from remote host.
|
| I tried 1.3 and 1.3b, including nfsen -r live.
|
| I also get this in /var/log/messages:
| Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
| information. Missing key 'first'
|
| $ netstat -anf inet |grep 995
| udp        0      0  *.9995                 *.*
|
| Running OpenBSD 4.2-stable.
|
| Did I miss anything? Am I doing something wrong?
|
| Any help is greatly appreciated!



--
Peter Haag


Re: Nfsen and php problems...?

by Peter Haag-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--On February 17, 2008 11:28:42 AM +0100 Peter Haag <peter@...> wrote:

|
|
| --On February 16, 2008 11:20:29 PM -0500 Richard Daemon <richard.daemon@...> wrote:
|
| | Hi,
| |
| | I'm really stumped on this and any help would be greatly appreciated.
| |
| | When trying to load the nfsen/nfsen.php page I get:
| |
| | ERROR: nfsend connect() error: No such file or directory!
| | ERROR: nfsend - connection failed!!
| | ERROR: Can not initialize globals!
|
| The bachend and the frontend communicat over a UNIX socket, which is defined
| in nfsen.conf:
|
| #
| # nfsend communication socket
| # $COMMSOCKET = "$PIDDIR/nfsen.comm";
|
| The default location in in the NfSen POD dir, but can be adjusted as
| required. The socket is owned by $USER in group $WWWGROUP with
| mode 0660. Depending on what mount flags your volume has, the group
| group seamed not be honoured be the OS and the group daemon is used instead.
| If so, you need either to change the socket group to $WWWGROUP, or make sure
| the socket has mode 0666 ( actually not a very good idea ).
| I've not yet figured out, why the group settings are not honoured by the OS.

To follow up: apply this patch:

--- /data/nfsen/libexec/Nfcomm.pm.orig  Sun Feb 17 13:12:15 2008
+++ /data/nfsen/libexec/Nfcomm.pm       Sun Feb 17 13:12:20 2008
@@ -753,6 +753,7 @@
                        return undef;
                }
                chmod 0660, $socket_path;
+               chown $NfConf::UID, $NfConf::GID, $socket_path;

        } else {
                # TCP Internet socket


|
| Hope this help.
|
|     - Peter
|
| |
| | I'm sure I have it configured properly and started properly as the
| | documentation states, I've read over and over and over again...
| |
| | I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
| | with and without changing HTMLDIR)
| |
| | I'm running httpd -u (non-chroot), php enabled, configured in
| | httpd.conf and tested ok - httpd chrooted works less, for now.
| |
| | I did the mkdir /data then ran the ./install.pl etc/nfsen.conf
| |
| | Started it with: ./nfsen start and it starts ok.
| |
| | in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
| | (same results)...
| |
| | %sources = (
| |     # 'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
| | 'type' => 'netflow' },
| |     'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
| | => 'netflow' },
| |     # 'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
| | );
| |
| | Then when I try http://slacker/nfsen/nfsen.php I get:
| |
| | ERROR: nfsend connect() error: No such file or directory!
| | ERROR: nfsend - connection failed!!
| | ERROR: Can not initialize globals!in red.
| |
| | pfflowd -d -n 192.168.0.10 running from remote host.
| |
| | I tried 1.3 and 1.3b, including nfsen -r live.
| |
| | I also get this in /var/log/messages:
| | Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
| | information. Missing key 'first'
| |
| | $ netstat -anf inet |grep 995
| | udp        0      0  *.9995                 *.*
| |
| | Running OpenBSD 4.2-stable.
| |
| | Did I miss anything? Am I doing something wrong?
| |
| | Any help is greatly appreciated!
|
|
|
| --
| Peter Haag



--
Peter Haag


Parent Message unknown Re: Nfsen and php problems...?

by Bugzilla from richard.daemon@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Feb 17, 2008 7:15 AM, Peter Haag <peter@...> wrote:

>
>
> --On February 17, 2008 11:28:42 AM +0100 Peter Haag <peter@...> wrote:
>
> |
> |
> | --On February 16, 2008 11:20:29 PM -0500 Richard Daemon <richard.daemon@...> wrote:
> |
> | | Hi,
> | |
> | | I'm really stumped on this and any help would be greatly appreciated.
> | |
> | | When trying to load the nfsen/nfsen.php page I get:
> | |
> | | ERROR: nfsend connect() error: No such file or directory!
> | | ERROR: nfsend - connection failed!!
> | | ERROR: Can not initialize globals!
> |
> | The bachend and the frontend communicat over a UNIX socket, which is defined
> | in nfsen.conf:
> |
> | #
> | # nfsend communication socket
> | # $COMMSOCKET = "$PIDDIR/nfsen.comm";
> |
> | The default location in in the NfSen POD dir, but can be adjusted as
> | required. The socket is owned by $USER in group $WWWGROUP with
> | mode 0660. Depending on what mount flags your volume has, the group
> | group seamed not be honoured be the OS and the group daemon is used instead.
> | If so, you need either to change the socket group to $WWWGROUP, or make sure
> | the socket has mode 0666 ( actually not a very good idea ).
> | I've not yet figured out, why the group settings are not honoured by the OS.
>
> To follow up: apply this patch:
>
> --- /data/nfsen/libexec/Nfcomm.pm.orig  Sun Feb 17 13:12:15 2008
> +++ /data/nfsen/libexec/Nfcomm.pm       Sun Feb 17 13:12:20 2008
> @@ -753,6 +753,7 @@
>                         return undef;
>                 }
>                 chmod 0660, $socket_path;
> +               chown $NfConf::UID, $NfConf::GID, $socket_path;
>
>         } else {
>                 # TCP Internet socket
>
>
>
> |
> | Hope this help.
> |
> |     - Peter

Well, I tried all your suggestions including patching it. Same
results... (on version 1.3b...)

Maybe I'm missing a step or something in apache not configured
correctly, I'm just not sure anymore...
It's driving me nuts not being able to get it working; is it something
obvious I'm overlooking?

Other php pages load (symon, etc.) so php works ok for some things. I
installed pear-Net-Socket as well and enabled sockets in httpd
(started with httpd -u).
The other pages don't load anything at all, just blank, except two:

pic.php and rrdgraph.php return with errors:
The image "http://slacker/nfsen/pic.php" cannot be displayed, because
it contains errors.
The image "http://slacker/nfsen/rrdgraph.php" cannot be displayed,
because it contains errors.

lookup.php at least gives a yellow page and also allows me to see it's
source, unlike the others:

<?
/* This file was automatically created by the NfSen install.pl script */

$COMMSOCKET = "/data/nfsen/var/run/nfsen.comm";

$DEBUG=0;

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Lookup: ''</title>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<link rel="stylesheet" type="text/css" href="css/lookup.css">
</head>
<body>


</body>
</html>

Could it have something to do with the --enable-nfprofile problem
encountered originally where I had to setenv the LDFLAGS?

Might you have some examples of a related httpd.conf for nfsen,
required pkg's, nfsen hierarchy on OpenBSD or anything else that may
help resolve this or if it's something I'm doing wrong?

Did I miss anything?

Thanks for all the help!


Re: Nfsen and php problems...?

by Tasmanian Devil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello!

> lookup.php at least gives a yellow page and also allows me to see it's
> source, unlike the others:
>
> <?
> /* This file was automatically created by the NfSen install.pl script */

This and especially the empty pages sound like you've "short_open_tag
= Off" in your /var/www/conf/php.ini. From that file:

; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = Off

So if my guess is right, you should either fix the php files or set
"short_open_tag = On".

Tas.


Re: Nfsen and php problems...?

by Bugzilla from richard.daemon@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Feb 18, 2008 3:48 AM, Tasmanian Devil <tasm.devil@...> wrote:

> Hello!
>
> > lookup.php at least gives a yellow page and also allows me to see it's
> > source, unlike the others:
> >
> > <?
> > /* This file was automatically created by the NfSen install.pl script */
>
> This and especially the empty pages sound like you've "short_open_tag
> = Off" in your /var/www/conf/php.ini. From that file:
>
> ; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
> ; NOTE: Using short tags should be avoided when developing applications or
> ; libraries that are meant for redistribution, or deployment on PHP
> ; servers which are not under your control, because short tags may not
> ; be supported on the target server. For portable, redistributable code,
> ; be sure not to use short tags.
> short_open_tag = Off
>
> So if my guess is right, you should either fix the php files or set
> "short_open_tag = On".
>
> Tas.
>

Sweet!!! That was it! Thank you! :-)

I used the stock php.ini-recommended > php.ini with minor
modifications, with this option staying at the default.

The pages now display, but not sure yet if the graphs are updating but
the flows are updating properly with nfcapd. Will test some more after
working tonight.

Thanks guys!


Re: Nfsen and php problems...?

by Peter Haag-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--On February 18, 2008 9:48:09 +0100 Tasmanian Devil <tasm.devil@...> wrote:

| Hello!
|
| > lookup.php at least gives a yellow page and also allows me to see it's
| > source, unlike the others:
| >
| > <?
| > /* This file was automatically created by the NfSen install.pl script */

Ouch! I'll fix that! All other php files have the right tags!

    Thanks
    - Peter

|
| This and especially the empty pages sound like you've "short_open_tag
| = Off" in your /var/www/conf/php.ini. From that file:
|
| ; Allow the <? tag.  Otherwise, only <?php and <script> tags are recognized.
| ; NOTE: Using short tags should be avoided when developing applications or
| ; libraries that are meant for redistribution, or deployment on PHP
| ; servers which are not under your control, because short tags may not
| ; be supported on the target server. For portable, redistributable code,
| ; be sure not to use short tags.
| short_open_tag = Off
|
| So if my guess is right, you should either fix the php files or set
| "short_open_tag = On".
|
| Tas.
|



--
Peter Haag


Re: Nfsen and php problems...?

by Balgaa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello,

I have problem similiar but it says about permission.
ERROR: nfsend connect() error: Permission denied!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!

Is there anything wrong with directory or file permission?


Richard Daemon wrote:
Hi,

I'm really stumped on this and any help would be greatly appreciated.

When trying to load the nfsen/nfsen.php page I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!

I'm sure I have it configured properly and started properly as the
documentation states, I've read over and over and over again...

I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
with and without changing HTMLDIR)

I'm running httpd -u (non-chroot), php enabled, configured in
httpd.conf and tested ok - httpd chrooted works less, for now.

I did the mkdir /data then ran the ./install.pl etc/nfsen.conf

Started it with: ./nfsen start and it starts ok.

in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
(same results)...

%sources = (
    #'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
'type' => 'netflow' },
    'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
=> 'netflow' },
    #'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
);

Then when I try http://slacker/nfsen/nfsen.php I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!in red.

pfflowd -d -n 192.168.0.10 running from remote host.

I tried 1.3 and 1.3b, including nfsen -r live.

I also get this in /var/log/messages:
Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
information. Missing key 'first'

$ netstat -anf inet |grep 995
udp        0      0  *.9995                 *.*

Running OpenBSD 4.2-stable.

Did I miss anything? Am I doing something wrong?

Any help is greatly appreciated!

Re: Nfsen and php problems...?

by Bugzilla from richard.daemon@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Looks exactly like what I had, Tasmanian Devil's suggestion fixed it:

I changed the short_open_tag=Off to On:
"short_open_tag = On" in the php.ini.

Also, are you doing this in a chroot apache? If so, try with 'httpd
-u' instead to see if that fixes it (outside the chroot). I haven't
tried to get it working while running the httpd in a chroot myself yet
so that could another cause to it as I've also seen.

If not, might be something with the path somewhere, perhaps nfsen.conf?

Hope this helps.

On Mon, Mar 3, 2008 at 4:21 PM, Balgaa <balgaa@...> wrote:

> hello,
>
>  I have problem similiar but it says about permission.
>  ERROR: nfsend connect() error: Permission denied!
>
> ERROR: nfsend - connection failed!!
>  ERROR: Can not initialize globals!
>
>  Is there anything wrong with directory or file permission?
>
>
>
>
>
>  Richard Daemon wrote:
>  >
>  > Hi,
>  >
>  > I'm really stumped on this and any help would be greatly appreciated.
>  >
>  > When trying to load the nfsen/nfsen.php page I get:
>  >
>  > ERROR: nfsend connect() error: No such file or directory!
>  > ERROR: nfsend - connection failed!!
>  > ERROR: Can not initialize globals!
>  >
>  > I'm sure I have it configured properly and started properly as the
>  > documentation states, I've read over and over and over again...
>  >
>  > I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
>  > with and without changing HTMLDIR)
>  >
>  > I'm running httpd -u (non-chroot), php enabled, configured in
>  > httpd.conf and tested ok - httpd chrooted works less, for now.
>  >
>  > I did the mkdir /data then ran the ./install.pl etc/nfsen.conf
>  >
>  > Started it with: ./nfsen start and it starts ok.
>  >
>  > in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
>  > (same results)...
>  >
>  > %sources = (
>  >     #'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
>  > 'type' => 'netflow' },
>  >     'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
>  > => 'netflow' },
>  >     #'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
>  > );
>  >
>  > Then when I try http://slacker/nfsen/nfsen.php I get:
>  >
>  > ERROR: nfsend connect() error: No such file or directory!
>  > ERROR: nfsend - connection failed!!
>  > ERROR: Can not initialize globals!in red.
>  >
>  > pfflowd -d -n 192.168.0.10 running from remote host.
>  >
>  > I tried 1.3 and 1.3b, including nfsen -r live.
>  >
>  > I also get this in /var/log/messages:
>  > Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
>  > information. Missing key 'first'
>  >
>  > $ netstat -anf inet |grep 995
>  > udp        0      0  *.9995                 *.*
>  >
>  > Running OpenBSD 4.2-stable.
>  >
>  > Did I miss anything? Am I doing something wrong?
>  >
>  > Any help is greatly appreciated!
>  >
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15814259.html
>  Sent from the openbsd user - misc mailing list archive at Nabble.com.


Re: Nfsen and php problems...?

by Balgaa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Already i configured short_open_tag=On.

I am using Nfsen+Nfdump on Fedora Core 6 and with  Apache/2.2.6 (Unix) DAV/2 PHP/5.1.6 mod_python/3.2.8 Python/2.4.4 mod_ssl/2.2.6 OpenSSL/0.9.8b mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations

I found that when chmod 0775 to /home/netflow, which is BASEDIR for NfSen then it working.

Is it possible to existing already running Nfcapd collected database?

I tried to use Stager + Nfdump and spend full day, but can't work give lot of error message.

Richard Daemon wrote:
Looks exactly like what I had, Tasmanian Devil's suggestion fixed it:

I changed the short_open_tag=Off to On:
"short_open_tag = On" in the php.ini.

Also, are you doing this in a chroot apache? If so, try with 'httpd
-u' instead to see if that fixes it (outside the chroot). I haven't
tried to get it working while running the httpd in a chroot myself yet
so that could another cause to it as I've also seen.

If not, might be something with the path somewhere, perhaps nfsen.conf?

Hope this helps.

On Mon, Mar 3, 2008 at 4:21 PM, Balgaa <balgaa@micom.mn> wrote:
> hello,
>
>  I have problem similiar but it says about permission.
>  ERROR: nfsend connect() error: Permission denied!
>
> ERROR: nfsend - connection failed!!
>  ERROR: Can not initialize globals!
>
>  Is there anything wrong with directory or file permission?
>
>
>
>
>
>  Richard Daemon wrote:
>  >
>  > Hi,
>  >
>  > I'm really stumped on this and any help would be greatly appreciated.
>  >
>  > When trying to load the nfsen/nfsen.php page I get:
>  >
>  > ERROR: nfsend connect() error: No such file or directory!
>  > ERROR: nfsend - connection failed!!
>  > ERROR: Can not initialize globals!
>  >
>  > I'm sure I have it configured properly and started properly as the
>  > documentation states, I've read over and over and over again...
>  >
>  > I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
>  > with and without changing HTMLDIR)
>  >
>  > I'm running httpd -u (non-chroot), php enabled, configured in
>  > httpd.conf and tested ok - httpd chrooted works less, for now.
>  >
>  > I did the mkdir /data then ran the ./install.pl etc/nfsen.conf
>  >
>  > Started it with: ./nfsen start and it starts ok.
>  >
>  > in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
>  > (same results)...
>  >
>  > %sources = (
>  >     #'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
>  > 'type' => 'netflow' },
>  >     'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
>  > => 'netflow' },
>  >     #'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
>  > );
>  >
>  > Then when I try http://slacker/nfsen/nfsen.php I get:
>  >
>  > ERROR: nfsend connect() error: No such file or directory!
>  > ERROR: nfsend - connection failed!!
>  > ERROR: Can not initialize globals!in red.
>  >
>  > pfflowd -d -n 192.168.0.10 running from remote host.
>  >
>  > I tried 1.3 and 1.3b, including nfsen -r live.
>  >
>  > I also get this in /var/log/messages:
>  > Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
>  > information. Missing key 'first'
>  >
>  > $ netstat -anf inet |grep 995
>  > udp        0      0  *.9995                 *.*
>  >
>  > Running OpenBSD 4.2-stable.
>  >
>  > Did I miss anything? Am I doing something wrong?
>  >
>  > Any help is greatly appreciated!
>  >
>  >
>  >
>
>  --
>  View this message in context: http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15814259.html
>  Sent from the openbsd user - misc mailing list archive at Nabble.com.

Re: Nfsen and php problems...?

by Peter Haag-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

1. In php.ini, set
  "short_open_tag = On"

2. Apply the following patch where you have installed NfSen:

--- libexec/Nfcomm.pm.orig  Sun Feb 17 13:12:15 2008
+++ libexec/Nfcomm.pm       Sun Feb 17 13:12:20 2008
@@ -753,6 +753,7 @@
                        return undef;
                }
                chmod 0660, $socket_path;
+               chown $NfConf::UID, $NfConf::GID, $socket_path;

        } else {
                # TCP Internet socket

The error message:
ERROR: nfsend connect() error: Permission denied!
will be solved with the two steps above.

Reload nfsen: ./nfsen reload
and you are done.


The error message:
ERROR: nfsend connect() error: No such file or directory!
requires anadditional step: Either run apache in non chroot mode ( -u ) or follow
the steps below:

1. in nfsen.conf
#
# nfsend communication socket
# $COMMSOCKET = "$PIDDIR/nfsen.comm";

Set COMMSOCKET to a path inside the chroot of apache e.g.
$COMMSOCKET = "/var/www/var/tmp/nfsen.comm";

Make sure the directory exists and user $USER can read/write.

2. Edit the conf.php file in the nfsen htdocs directory:
Edit the line:
$COMMSOCKET = ".."

to point to the socket inside apache root e.g.
$COMMSOCKET = "/var/tmp/nfsen.comm";

Reload nfsen: ./nfsen reload

    - Peter


--On March 3, 2008 1:21:51 PM -0800 Balgaa <balgaa@...> wrote:

| hello,
|
| I have problem similiar but it says about permission.
| ERROR: nfsend connect() error: Permission denied!
| ERROR: nfsend - connection failed!!
| ERROR: Can not initialize globals!
|
| Is there anything wrong with directory or file permission?
|
|
|
| Richard Daemon wrote:
| >
| > Hi,
| >
| > I'm really stumped on this and any help would be greatly appreciated.
| >
| > When trying to load the nfsen/nfsen.php page I get:
| >
| > ERROR: nfsend connect() error: No such file or directory!
| > ERROR: nfsend - connection failed!!
| > ERROR: Can not initialize globals!
| >
| > I'm sure I have it configured properly and started properly as the
| > documentation states, I've read over and over and over again...
| >
| > I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
| > with and without changing HTMLDIR)
| >
| > I'm running httpd -u (non-chroot), php enabled, configured in
| > httpd.conf and tested ok - httpd chrooted works less, for now.
| >
| > I did the mkdir /data then ran the ./install.pl etc/nfsen.conf
| >
| > Started it with: ./nfsen start and it starts ok.
| >
| > in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
| > (same results)...
| >
| > %sources = (
| >     # 'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
| > 'type' => 'netflow' },
| >     'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
| > => 'netflow' },
| >     # 'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
| > );
| >
| > Then when I try http://slacker/nfsen/nfsen.php I get:
| >
| > ERROR: nfsend connect() error: No such file or directory!
| > ERROR: nfsend - connection failed!!
| > ERROR: Can not initialize globals!in red.
| >
| > pfflowd -d -n 192.168.0.10 running from remote host.
| >
| > I tried 1.3 and 1.3b, including nfsen -r live.
| >
| > I also get this in /var/log/messages:
| > Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
| > information. Missing key 'first'
| >
| > $ netstat -anf inet |grep 995
| > udp        0      0  *.9995                 *.*
| >
| > Running OpenBSD 4.2-stable.
| >
| > Did I miss anything? Am I doing something wrong?
| >
| > Any help is greatly appreciated!
| >
| >
| >
|
| --
| View this message in context: http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15814259.html
| Sent from the openbsd user - misc mailing list archive at Nabble.com.
|



--
Peter Haag


Re: Nfsen and php problems...?

by Balgaa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter,

Thank you very much. Is there way to see protocol based graph view like ftp, http, ssh, voip, P2P (bittorrent, edonkey, kazaa etc.,).

I saw Nfsen only show tcp/udp, icmp and port based graph.


Peter Haag-2 wrote:
1. In php.ini, set
  "short_open_tag = On"

2. Apply the following patch where you have installed NfSen:

--- libexec/Nfcomm.pm.orig  Sun Feb 17 13:12:15 2008
+++ libexec/Nfcomm.pm       Sun Feb 17 13:12:20 2008
@@ -753,6 +753,7 @@
                        return undef;
                }
                chmod 0660, $socket_path;
+               chown $NfConf::UID, $NfConf::GID, $socket_path;

        } else {
                # TCP Internet socket

The error message:
ERROR: nfsend connect() error: Permission denied!
will be solved with the two steps above.

Reload nfsen: ./nfsen reload
and you are done.


The error message:
ERROR: nfsend connect() error: No such file or directory!
requires anadditional step: Either run apache in non chroot mode ( -u ) or follow
the steps below:

1. in nfsen.conf
#
# nfsend communication socket
# $COMMSOCKET = "$PIDDIR/nfsen.comm";

Set COMMSOCKET to a path inside the chroot of apache e.g.
$COMMSOCKET = "/var/www/var/tmp/nfsen.comm";

Make sure the directory exists and user $USER can read/write.

2. Edit the conf.php file in the nfsen htdocs directory:
Edit the line:
$COMMSOCKET = ".."

to point to the socket inside apache root e.g.
$COMMSOCKET = "/var/tmp/nfsen.comm";

Reload nfsen: ./nfsen reload

    - Peter


--On March 3, 2008 1:21:51 PM -0800 Balgaa <balgaa@micom.mn> wrote:

| hello,
|
| I have problem similiar but it says about permission.
| ERROR: nfsend connect() error: Permission denied!
| ERROR: nfsend - connection failed!!
| ERROR: Can not initialize globals!
|
| Is there anything wrong with directory or file permission?
|
|
|
| Richard Daemon wrote:
| >
| > Hi,
| >
| > I'm really stumped on this and any help would be greatly appreciated.
| >
| > When trying to load the nfsen/nfsen.php page I get:
| >
| > ERROR: nfsend connect() error: No such file or directory!
| > ERROR: nfsend - connection failed!!
| > ERROR: Can not initialize globals!
| >
| > I'm sure I have it configured properly and started properly as the
| > documentation states, I've read over and over and over again...
| >
| > I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
| > with and without changing HTMLDIR)
| >
| > I'm running httpd -u (non-chroot), php enabled, configured in
| > httpd.conf and tested ok - httpd chrooted works less, for now.
| >
| > I did the mkdir /data then ran the ./install.pl etc/nfsen.conf
| >
| > Started it with: ./nfsen start and it starts ok.
| >
| > in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
| > (same results)...
| >
| > %sources = (
| >     # 'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
| > 'type' => 'netflow' },
| >     'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
| > => 'netflow' },
| >     # 'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
| > );
| >
| > Then when I try http://slacker/nfsen/nfsen.php I get:
| >
| > ERROR: nfsend connect() error: No such file or directory!
| > ERROR: nfsend - connection failed!!
| > ERROR: Can not initialize globals!in red.
| >
| > pfflowd -d -n 192.168.0.10 running from remote host.
| >
| > I tried 1.3 and 1.3b, including nfsen -r live.
| >
| > I also get this in /var/log/messages:
| > Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
| > information. Missing key 'first'
| >
| > $ netstat -anf inet |grep 995
| > udp        0      0  *.9995                 *.*
| >
| > Running OpenBSD 4.2-stable.
| >
| > Did I miss anything? Am I doing something wrong?
| >
| > Any help is greatly appreciated!
| >
| >
| >
|
| --
| View this message in context: http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15814259.html
| Sent from the openbsd user - misc mailing list archive at Nabble.com.
|



--
Peter Haag

Re: Nfsen and php problems...?

by Peter Haag-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--On March 4, 2008 10:03:43 AM -0800 Balgaa <balgaa@...> wrote:

| Peter,
|
| Thank you very much. Is there way to see protocol based graph view like ftp,
| http, ssh, voip, P2P (bittorrent, edonkey, kazaa etc.,).
|
| I saw Nfsen only show tcp/udp, icmp and port based graph.

Create a profile which shows all the profiles you want to see.

    - Peter
|
|
|
| Peter Haag-2 wrote:
| >
| > 1. In php.ini, set
| >   "short_open_tag = On"
| >
| > 2. Apply the following patch where you have installed NfSen:
| >
| > --- libexec/Nfcomm.pm.orig  Sun Feb 17 13:12:15 2008
| > +++ libexec/Nfcomm.pm       Sun Feb 17 13:12:20 2008
| > @@ -753,6 +753,7 @@
| >                         return undef;
| >                 }
| >                 chmod 0660, $socket_path;
| > +               chown $NfConf::UID, $NfConf::GID, $socket_path;
| >
| >         } else {
| >                 # TCP Internet socket
| >
| > The error message:
| > ERROR: nfsend connect() error: Permission denied!
| > will be solved with the two steps above.
| >
| > Reload nfsen: ./nfsen reload
| > and you are done.
| >
| >
| > The error message:
| > ERROR: nfsend connect() error: No such file or directory!
| > requires anadditional step: Either run apache in non chroot mode ( -u ) or
| > follow
| > the steps below:
| >
| > 1. in nfsen.conf
| > #
| > # nfsend communication socket
| > # $COMMSOCKET = "$PIDDIR/nfsen.comm";
| >
| > Set COMMSOCKET to a path inside the chroot of apache e.g.
| > $COMMSOCKET = "/var/www/var/tmp/nfsen.comm";
| >
| > Make sure the directory exists and user $USER can read/write.
| >
| > 2. Edit the conf.php file in the nfsen htdocs directory:
| > Edit the line:
| > $COMMSOCKET = ".."
| >
| > to point to the socket inside apache root e.g.
| > $COMMSOCKET = "/var/tmp/nfsen.comm";
| >
| > Reload nfsen: ./nfsen reload
| >
| >     - Peter
| >
| >
| > --On March 3, 2008 1:21:51 PM -0800 Balgaa <balgaa@...> wrote:
| >
| > | hello,
| > |
| > | I have problem similiar but it says about permission.
| > | ERROR: nfsend connect() error: Permission denied!
| > | ERROR: nfsend - connection failed!!
| > | ERROR: Can not initialize globals!
| > |
| > | Is there anything wrong with directory or file permission?
| > |
| > |
| > |
| > | Richard Daemon wrote:
| > | >
| > | > Hi,
| > | >
| > | > I'm really stumped on this and any help would be greatly appreciated.
| > | >
| > | > When trying to load the nfsen/nfsen.php page I get:
| > | >
| > | > ERROR: nfsend connect() error: No such file or directory!
| > | > ERROR: nfsend - connection failed!!
| > | > ERROR: Can not initialize globals!
| > | >
| > | > I'm sure I have it configured properly and started properly as the
| > | > documentation states, I've read over and over and over again...
| > | >
| > | > I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
| > | > with and without changing HTMLDIR)
| > | >
| > | > I'm running httpd -u (non-chroot), php enabled, configured in
| > | > httpd.conf and tested ok - httpd chrooted works less, for now.
| > | >
| > | > I did the mkdir /data then ran the ./install.pl etc/nfsen.conf
| > | >
| > | > Started it with: ./nfsen start and it starts ok.
| > | >
| > | > in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
| > | > (same results)...
| > | >
| > | > %sources = (
| > | >     # 'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
| > | > 'type' => 'netflow' },
| > | >     'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
| > | > => 'netflow' },
| > | >     # 'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
| > | > );
| > | >
| > | > Then when I try http://slacker/nfsen/nfsen.php I get:
| > | >
| > | > ERROR: nfsend connect() error: No such file or directory!
| > | > ERROR: nfsend - connection failed!!
| > | > ERROR: Can not initialize globals!in red.
| > | >
| > | > pfflowd -d -n 192.168.0.10 running from remote host.
| > | >
| > | > I tried 1.3 and 1.3b, including nfsen -r live.
| > | >
| > | > I also get this in /var/log/messages:
| > | > Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
| > | > information. Missing key 'first'
| > | >
| > | > $ netstat -anf inet |grep 995
| > | > udp        0      0  *.9995                 *.*
| > | >
| > | > Running OpenBSD 4.2-stable.
| > | >
| > | > Did I miss anything? Am I doing something wrong?
| > | >
| > | > Any help is greatly appreciated!
| > | >
| > | >
| > | >
| > |
| > | --
| > | View this message in context:
| > http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15814259.html
| > | Sent from the openbsd user - misc mailing list archive at Nabble.com.
| > |
| >
| >
| >
| > --
| > Peter Haag
| >
| >
| >
|
| --
| View this message in context: http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15833347.html
| Sent from the openbsd user - misc mailing list archive at Nabble.com.
|



--
Peter Haag


Re: Nfsen and php problems...?

by Balgaa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter,

How can I create profile?

I am new to Nfsen+Nfdump. I need to create profile on Nfsen or?


Peter Haag-2 wrote:
--On March 4, 2008 10:03:43 AM -0800 Balgaa <balgaa@micom.mn> wrote:

| Peter,
|
| Thank you very much. Is there way to see protocol based graph view like ftp,
| http, ssh, voip, P2P (bittorrent, edonkey, kazaa etc.,).
|
| I saw Nfsen only show tcp/udp, icmp and port based graph.

Create a profile which shows all the profiles you want to see.

    - Peter
|
|
|
| Peter Haag-2 wrote:
| >
| > 1. In php.ini, set
| >   "short_open_tag = On"
| >
| > 2. Apply the following patch where you have installed NfSen:
| >
| > --- libexec/Nfcomm.pm.orig  Sun Feb 17 13:12:15 2008
| > +++ libexec/Nfcomm.pm       Sun Feb 17 13:12:20 2008
| > @@ -753,6 +753,7 @@
| >                         return undef;
| >                 }
| >                 chmod 0660, $socket_path;
| > +               chown $NfConf::UID, $NfConf::GID, $socket_path;
| >
| >         } else {
| >                 # TCP Internet socket
| >
| > The error message:
| > ERROR: nfsend connect() error: Permission denied!
| > will be solved with the two steps above.
| >
| > Reload nfsen: ./nfsen reload
| > and you are done.
| >
| >
| > The error message:
| > ERROR: nfsend connect() error: No such file or directory!
| > requires anadditional step: Either run apache in non chroot mode ( -u ) or
| > follow
| > the steps below:
| >
| > 1. in nfsen.conf
| > #
| > # nfsend communication socket
| > # $COMMSOCKET = "$PIDDIR/nfsen.comm";
| >
| > Set COMMSOCKET to a path inside the chroot of apache e.g.
| > $COMMSOCKET = "/var/www/var/tmp/nfsen.comm";
| >
| > Make sure the directory exists and user $USER can read/write.
| >
| > 2. Edit the conf.php file in the nfsen htdocs directory:
| > Edit the line:
| > $COMMSOCKET = ".."
| >
| > to point to the socket inside apache root e.g.
| > $COMMSOCKET = "/var/tmp/nfsen.comm";
| >
| > Reload nfsen: ./nfsen reload
| >
| >     - Peter
| >
| >
| > --On March 3, 2008 1:21:51 PM -0800 Balgaa <balgaa@micom.mn> wrote:
| >
| > | hello,
| > |
| > | I have problem similiar but it says about permission.
| > | ERROR: nfsend connect() error: Permission denied!
| > | ERROR: nfsend - connection failed!!
| > | ERROR: Can not initialize globals!
| > |
| > | Is there anything wrong with directory or file permission?
| > |
| > |
| > |
| > | Richard Daemon wrote:
| > | >
| > | > Hi,
| > | >
| > | > I'm really stumped on this and any help would be greatly appreciated.
| > | >
| > | > When trying to load the nfsen/nfsen.php page I get:
| > | >
| > | > ERROR: nfsend connect() error: No such file or directory!
| > | > ERROR: nfsend - connection failed!!
| > | > ERROR: Can not initialize globals!
| > | >
| > | > I'm sure I have it configured properly and started properly as the
| > | > documentation states, I've read over and over and over again...
| > | >
| > | > I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
| > | > with and without changing HTMLDIR)
| > | >
| > | > I'm running httpd -u (non-chroot), php enabled, configured in
| > | > httpd.conf and tested ok - httpd chrooted works less, for now.
| > | >
| > | > I did the mkdir /data then ran the ./install.pl etc/nfsen.conf
| > | >
| > | > Started it with: ./nfsen start and it starts ok.
| > | >
| > | > in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
| > | > (same results)...
| > | >
| > | > %sources = (
| > | >     # 'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
| > | > 'type' => 'netflow' },
| > | >     'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
| > | > => 'netflow' },
| > | >     # 'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
| > | > );
| > | >
| > | > Then when I try http://slacker/nfsen/nfsen.php I get:
| > | >
| > | > ERROR: nfsend connect() error: No such file or directory!
| > | > ERROR: nfsend - connection failed!!
| > | > ERROR: Can not initialize globals!in red.
| > | >
| > | > pfflowd -d -n 192.168.0.10 running from remote host.
| > | >
| > | > I tried 1.3 and 1.3b, including nfsen -r live.
| > | >
| > | > I also get this in /var/log/messages:
| > | > Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
| > | > information. Missing key 'first'
| > | >
| > | > $ netstat -anf inet |grep 995
| > | > udp        0      0  *.9995                 *.*
| > | >
| > | > Running OpenBSD 4.2-stable.
| > | >
| > | > Did I miss anything? Am I doing something wrong?
| > | >
| > | > Any help is greatly appreciated!
| > | >
| > | >
| > | >
| > |
| > | --
| > | View this message in context:
| > http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15814259.html
| > | Sent from the openbsd user - misc mailing list archive at Nabble.com.
| > |
| >
| >
| >
| > --
| > Peter Haag
| >
| >
| >
|
| --
| View this message in context: http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15833347.html
| Sent from the openbsd user - misc mailing list archive at Nabble.com.
|



--
Peter Haag

Re: Nfsen and php problems...?

by Peter Haag-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--On March 4, 2008 19:38:58 -0800 Balgaa <balgaa@...> wrote:

| Peter,
|
| How can I create profile?
|
| I am new to Nfsen+Nfdump. I need to create profile on Nfsen or?

Please read the documentation. Everything is written there.

    - Peter
|
|
|
| Peter Haag-2 wrote:
| >
| > --On March 4, 2008 10:03:43 AM -0800 Balgaa <balgaa@...> wrote:
| >
| > | Peter,
| > |
| > | Thank you very much. Is there way to see protocol based graph view like
| > ftp,
| > | http, ssh, voip, P2P (bittorrent, edonkey, kazaa etc.,).
| > |
| > | I saw Nfsen only show tcp/udp, icmp and port based graph.
| >
| > Create a profile which shows all the profiles you want to see.
| >
| >     - Peter
| > |
| > |
| > |
| > | Peter Haag-2 wrote:
| > | >
| > | > 1. In php.ini, set
| > | >   "short_open_tag = On"
| > | >
| > | > 2. Apply the following patch where you have installed NfSen:
| > | >
| > | > --- libexec/Nfcomm.pm.orig  Sun Feb 17 13:12:15 2008
| > | > +++ libexec/Nfcomm.pm       Sun Feb 17 13:12:20 2008
| > | > @@ -753,6 +753,7 @@
| > | >                         return undef;
| > | >                 }
| > | >                 chmod 0660, $socket_path;
| > | > +               chown $NfConf::UID, $NfConf::GID, $socket_path;
| > | >
| > | >         } else {
| > | >                 # TCP Internet socket
| > | >
| > | > The error message:
| > | > ERROR: nfsend connect() error: Permission denied!
| > | > will be solved with the two steps above.
| > | >
| > | > Reload nfsen: ./nfsen reload
| > | > and you are done.
| > | >
| > | >
| > | > The error message:
| > | > ERROR: nfsend connect() error: No such file or directory!
| > | > requires anadditional step: Either run apache in non chroot mode ( -u
| > ) or
| > | > follow
| > | > the steps below:
| > | >
| > | > 1. in nfsen.conf
| > | > #
| > | > # nfsend communication socket
| > | > # $COMMSOCKET = "$PIDDIR/nfsen.comm";
| > | >
| > | > Set COMMSOCKET to a path inside the chroot of apache e.g.
| > | > $COMMSOCKET = "/var/www/var/tmp/nfsen.comm";
| > | >
| > | > Make sure the directory exists and user $USER can read/write.
| > | >
| > | > 2. Edit the conf.php file in the nfsen htdocs directory:
| > | > Edit the line:
| > | > $COMMSOCKET = ".."
| > | >
| > | > to point to the socket inside apache root e.g.
| > | > $COMMSOCKET = "/var/tmp/nfsen.comm";
| > | >
| > | > Reload nfsen: ./nfsen reload
| > | >
| > | >     - Peter
| > | >
| > | >
| > | > --On March 3, 2008 1:21:51 PM -0800 Balgaa <balgaa@...> wrote:
| > | >
| > | > | hello,
| > | > |
| > | > | I have problem similiar but it says about permission.
| > | > | ERROR: nfsend connect() error: Permission denied!
| > | > | ERROR: nfsend - connection failed!!
| > | > | ERROR: Can not initialize globals!
| > | > |
| > | > | Is there anything wrong with directory or file permission?
| > | > |
| > | > |
| > | > |
| > | > | Richard Daemon wrote:
| > | > | >
| > | > | > Hi,
| > | > | >
| > | > | > I'm really stumped on this and any help would be greatly
| > appreciated.
| > | > | >
| > | > | > When trying to load the nfsen/nfsen.php page I get:
| > | > | >
| > | > | > ERROR: nfsend connect() error: No such file or directory!
| > | > | > ERROR: nfsend - connection failed!!
| > | > | > ERROR: Can not initialize globals!
| > | > | >
| > | > | > I'm sure I have it configured properly and started properly as the
| > | > | > documentation states, I've read over and over and over again...
| > | > | >
| > | > | > I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf
| > (tried
| > | > | > with and without changing HTMLDIR)
| > | > | >
| > | > | > I'm running httpd -u (non-chroot), php enabled, configured in
| > | > | > httpd.conf and tested ok - httpd chrooted works less, for now.
| > | > | >
| > | > | > I did the mkdir /data then ran the ./install.pl etc/nfsen.conf
| > | > | >
| > | > | > Started it with: ./nfsen start and it starts ok.
| > | > | >
| > | > | > in nfsen.conf I tried with /var/www/nfsen and
| > /var/www/htdocs/nfsen
| > | > | > (same results)...
| > | > | >
| > | > | > %sources = (
| > | > | >     # 'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
| > | > | > 'type' => 'netflow' },
| > | > | >     'slacker'    => { 'port'    => '9995', 'col' => '#0000ff',
| > 'type'
| > | > | > => 'netflow' },
| > | > | >     # 'peer1'        => { 'port'    => '9996', 'col' => '#ff0000'
| > },
| > | > | > );
| > | > | >
| > | > | > Then when I try http://slacker/nfsen/nfsen.php I get:
| > | > | >
| > | > | > ERROR: nfsend connect() error: No such file or directory!
| > | > | > ERROR: nfsend - connection failed!!
| > | > | > ERROR: Can not initialize globals!in red.
| > | > | >
| > | > | > pfflowd -d -n 192.168.0.10 running from remote host.
| > | > | >
| > | > | > I tried 1.3 and 1.3b, including nfsen -r live.
| > | > | >
| > | > | > I also get this in /var/log/messages:
| > | > | > Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
| > | > | > information. Missing key 'first'
| > | > | >
| > | > | > $ netstat -anf inet |grep 995
| > | > | > udp        0      0  *.9995                 *.*
| > | > | >
| > | > | > Running OpenBSD 4.2-stable.
| > | > | >
| > | > | > Did I miss anything? Am I doing something wrong?
| > | > | >
| > | > | > Any help is greatly appreciated!
| > | > | >
| > | > | >
| > | > | >
| > | > |
| > | > | --
| > | > | View this message in context:
| > | >
| > http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15814259.html
| > | > | Sent from the openbsd user - misc mailing list archive at
| > Nabble.com.
| > | > |
| > | >
| > | >
| > | >
| > | > --
| > | > Peter Haag
| > | >
| > | >
| > | >
| > |
| > | --
| > | View this message in context:
| > http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15833347.html
| > | Sent from the openbsd user - misc mailing list archive at Nabble.com.
| > |
| >
| >
| >
| > --
| > Peter Haag
| >
| >
| >
|
| --
| View this message in context: http://www.nabble.com/Nfsen-and-php-problems...--tp15526200p15842546.html
| Sent from the openbsd user - misc mailing list archive at Nabble.com.
|



--
Peter Haag


Re: Nfsen and php problems...?

by Balgaa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Peter,

I installed Nfsen + Nfdump on Fedora Core 8 and it is working fine.

But I saw some message like:
----------------------------
Mar 14 13:35:00 netflow /usr/local/bin/nfcapd[2154]: Ident: 'boldsoft_railcom' Flows: 64080, Packets: 601491, Bytes: 259641123, Sequence Errors: 0, Bad Packets: 0
Mar 14 13:35:00 netflow /usr/local/bin/nfcapd[2145]: Ident: 'boldsoft_tower' Flows: 11400, Packets: 88151, Bytes: 23231888, Sequence Errors: 0, Bad Packets: 0
Mar 14 13:35:02 netflow /usr/local/bin/nfcapd[2148]: Ident: 'boldsoft_voip' Flows: 1436, Packets: 62183, Bytes: 37656718, Sequence Errors: 0, Bad Packets: 0
Mar 14 13:35:10 netflow /usr/local/bin/nfcapd[2151]: Ident: 'boldsoft_dial' Flows: 30, Packets: 2243, Bytes: 170321, Sequence Errors: 0, Bad Packets: 0
Mar 14 13:35:15 netflow nfsen[2575]: 0 channels/alerts to profile
Mar 14 13:35:15 netflow nfsen[2575]: Update profile live in group .
Mar 14 13:35:15 netflow nfsen[2575]: Error reading channel stat information. Missing key 'first'
Mar 14 13:35:17 netflow nfsen[2575]:last message repeated 3 times
Mar 14 13:35:17 netflow nfsen[2707]: Plugin Cycle: Time: 200803141330, Profile: live, Group: ., Module: PortTracker,
Mar 14 13:35:24 netflow nfsen[2575]: Run expire at Fri Mar 14 13:35:00 2008
Mar 14 13:35:24 netflow nfsen[2575]: End expire at Fri Mar 14 13:35:00 2008

I don't know "Error reading channel stat information. Missing key 'first'" normal or not?

Balgaa

Richard Daemon wrote:
Hi,

I'm really stumped on this and any help would be greatly appreciated.

When trying to load the nfsen/nfsen.php page I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!

I'm sure I have it configured properly and started properly as the
documentation states, I've read over and over and over again...

I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
with and without changing HTMLDIR)

I'm running httpd -u (non-chroot), php enabled, configured in
httpd.conf and tested ok - httpd chrooted works less, for now.

I did the mkdir /data then ran the ./install.pl etc/nfsen.conf

Started it with: ./nfsen start and it starts ok.

in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
(same results)...

%sources = (
    #'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
'type' => 'netflow' },
    'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
=> 'netflow' },
    #'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
);

Then when I try http://slacker/nfsen/nfsen.php I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!in red.

pfflowd -d -n 192.168.0.10 running from remote host.

I tried 1.3 and 1.3b, including nfsen -r live.

I also get this in /var/log/messages:
Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
information. Missing key 'first'

$ netstat -anf inet |grep 995
udp        0      0  *.9995                 *.*

Running OpenBSD 4.2-stable.

Did I miss anything? Am I doing something wrong?

Any help is greatly appreciated!

Re: Nfsen and php problems...?

by Balgaa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Peter,

I saw that there no information on statistics table.

Statistics timeslot Mar 14 2008 - 01:35
 Channel:  Flows:   Packets:   Traffic:  
  all: tcp: udp: icmp: other: all: tcp: udp: icmp: other: all: tcp: udp: icmp: other:
 boldsoft_railcom   x  x  x  x  x  x  x  x  x  x  x  x  x  x  x  
 boldsoft_dial   x  x  x  x  x  x  x  x  x  x  x  x  x  x  x  
 boldsoft_voip   x  x  x  x  x  x  x  x  x  x  x  x  x  x  x  
 boldsoft_tower   x  x  x  x  x  x  x  x  x  x  x  x  x  x  x  
   Display: Sum Rate   x: No Data available  

Balgaa

Richard Daemon wrote:
Hi,

I'm really stumped on this and any help would be greatly appreciated.

When trying to load the nfsen/nfsen.php page I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!

I'm sure I have it configured properly and started properly as the
documentation states, I've read over and over and over again...

I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
with and without changing HTMLDIR)

I'm running httpd -u (non-chroot), php enabled, configured in
httpd.conf and tested ok - httpd chrooted works less, for now.

I did the mkdir /data then ran the ./install.pl etc/nfsen.conf

Started it with: ./nfsen start and it starts ok.

in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
(same results)...

%sources = (
    #'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
'type' => 'netflow' },
    'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
=> 'netflow' },
    #'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
);

Then when I try http://slacker/nfsen/nfsen.php I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!in red.

pfflowd -d -n 192.168.0.10 running from remote host.

I tried 1.3 and 1.3b, including nfsen -r live.

I also get this in /var/log/messages:
Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
information. Missing key 'first'

$ netstat -anf inet |grep 995
udp        0      0  *.9995                 *.*

Running OpenBSD 4.2-stable.

Did I miss anything? Am I doing something wrong?

Any help is greatly appreciated!

Re: Nfsen and php problems...?

by Balgaa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Peter,

After I nfsen -r live command, statistics table changed to like below.

Statistics timeslot Mar 14 2008 - 11:15
 Channel:  Flows:   Packets:   Traffic:  
  all: tcp: udp: icmp: other: all: tcp: udp: icmp: other: all: tcp: udp: icmp: other:
 boldsoft_railcom   0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 b/s  0 b/s  0 b/s  0 b/s  0 b/s  
 boldsoft_dial   0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 b/s  0 b/s  0 b/s  0 b/s  0 b/s  
 boldsoft_voip   0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 b/s  0 b/s  0 b/s  0 b/s  0 b/s  
 boldsoft_tower   0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 /s  0 b/s  0 b/s  0 b/s  0 b/s  0 b/s  
   Display: Sum Rate    

Any configuration problem?

Balgaa

Richard Daemon wrote:
Hi,

I'm really stumped on this and any help would be greatly appreciated.

When trying to load the nfsen/nfsen.php page I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!

I'm sure I have it configured properly and started properly as the
documentation states, I've read over and over and over again...

I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
with and without changing HTMLDIR)

I'm running httpd -u (non-chroot), php enabled, configured in
httpd.conf and tested ok - httpd chrooted works less, for now.

I did the mkdir /data then ran the ./install.pl etc/nfsen.conf

Started it with: ./nfsen start and it starts ok.

in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
(same results)...

%sources = (
    #'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
'type' => 'netflow' },
    'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
=> 'netflow' },
    #'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
);

Then when I try http://slacker/nfsen/nfsen.php I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!in red.

pfflowd -d -n 192.168.0.10 running from remote host.

I tried 1.3 and 1.3b, including nfsen -r live.

I also get this in /var/log/messages:
Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
information. Missing key 'first'

$ netstat -anf inet |grep 995
udp        0      0  *.9995                 *.*

Running OpenBSD 4.2-stable.

Did I miss anything? Am I doing something wrong?

Any help is greatly appreciated!

Re: Nfsen and php problems...?

by Balgaa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

After nfsen -r live disappear First key message:

Mar 14 14:05:00 netflow /usr/local/bin/nfcapd[2154]: Ident: 'boldsoft_railcom' Flows: 70290, Packets: 688865, Bytes: 293528363, Sequence Errors: 0, Bad Packets: 0
Mar 14 14:05:00 netflow /usr/local/bin/nfcapd[2148]: Ident: 'boldsoft_voip' Flows: 918, Packets: 23094, Bytes: 16605621, Sequence Errors: 0, Bad Packets: 0
Mar 14 14:05:00 netflow /usr/local/bin/nfcapd[2145]: Ident: 'boldsoft_tower' Flows: 11400, Packets: 93012, Bytes: 48901004, Sequence Errors: 0, Bad Packets: 0
Mar 14 14:05:10 netflow /usr/local/bin/nfcapd[2151]: Ident: 'boldsoft_dial' Flows: 734, Packets: 7264, Bytes: 3251532, Sequence Errors: 0, Bad Packets: 0
Mar 14 14:05:15 netflow nfsen[2575]: 0 channels/alerts to profile
Mar 14 14:05:15 netflow nfsen[2575]: Update profile live in group .
Mar 14 14:05:17 netflow nfsen[3325]: Plugin Cycle: Time: 200803141400, Profile: live, Group: ., Module: PortTracker,
Mar 14 14:05:29 netflow nfsen[2575]: Run expire at Fri Mar 14 14:05:00 2008
Mar 14 14:05:29 netflow nfsen[2575]: End expire at Fri Mar 14 14:05:00 2008


Balgaa

Richard Daemon wrote:
Hi,

I'm really stumped on this and any help would be greatly appreciated.

When trying to load the nfsen/nfsen.php page I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!

I'm sure I have it configured properly and started properly as the
documentation states, I've read over and over and over again...

I've used the default ./etc/nfsen-dist.conf > ./etc/nfsen.conf (tried
with and without changing HTMLDIR)

I'm running httpd -u (non-chroot), php enabled, configured in
httpd.conf and tested ok - httpd chrooted works less, for now.

I did the mkdir /data then ran the ./install.pl etc/nfsen.conf

Started it with: ./nfsen start and it starts ok.

in nfsen.conf I tried with /var/www/nfsen and /var/www/htdocs/nfsen
(same results)...

%sources = (
    #'upstream1'    => { 'port'    => '9995', 'col' => '#0000ff',
'type' => 'netflow' },
    'slacker'    => { 'port'    => '9995', 'col' => '#0000ff', 'type'
=> 'netflow' },
    #'peer1'        => { 'port'    => '9996', 'col' => '#ff0000' },
);

Then when I try http://slacker/nfsen/nfsen.php I get:

ERROR: nfsend connect() error: No such file or directory!
ERROR: nfsend - connection failed!!
ERROR: Can not initialize globals!in red.

pfflowd -d -n 192.168.0.10 running from remote host.

I tried 1.3 and 1.3b, including nfsen -r live.

I also get this in /var/log/messages:
Feb 16 22:50:15 slacker nfsen[689]: Error reading channel stat
information. Missing key 'first'

$ netstat -anf inet |grep 995
udp        0      0  *.9995                 *.*

Running OpenBSD 4.2-stable.

Did I miss anything? Am I doing something wrong?

Any help is greatly appreciated!