--On February 17, 2008 11:28:42 AM +0100 Peter Haag <[EMAIL PROTECTED]> wrote:

|
|
| --On February 16, 2008 11:20:29 PM -0500 Richard Daemon <[EMAIL PROTECTED]> 
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

Reply via email to