--On March 4, 2008 10:03:43 AM -0800 Balgaa <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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