On Feb 17, 2008 7:15 AM, Peter Haag <[EMAIL PROTECTED]> wrote:
>
>
> --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
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!