-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
- --On February 23, 2007 9:15:30 -0300 ninjabytes <[EMAIL PROTECTED]> wrote: | Hello, | | I just installed nfsen snapshot-20070208 along with nfdump and the | PortTracker Plugin that comes in the contrib/ dir of nfsen snapshot-20070208 | | When I try to use the PortTracker plugin I get the following error mesaage: | | http://www.zunacai.com/nfsen.jpg | | I ran nftrack and generated all the .rrd files (about 8.2G of rrds in | /usr/local/www/nfsen/ports/) | | What could be wrong? Why am I getting the "Error reading stat" message? nftrack need to create and write 2 files named portstat.txt and portstat24.txt in the PortDB dir. Make sure, that the nfsen user can write to this directory. Furthermore make sure you have applied the patch below, which has been sent to the list some time ago. - Peter - --- PortTracker.pm.orig 2007-02-08 13:01:01.000000000 +0100 +++ PortTracker.pm 2007-02-15 08:14:18.000000000 +0100 @@ -158,8 +158,6 @@ } @topN = @_tmp; - - my $DBPath = '/data/ports-db/'; - - my $datestr = scalar localtime($tstart) . " - " . scalar localtime($tend); my $title = uc($proto) . " " . ucfirst($type); @@ -172,7 +170,7 @@ foreach my $port ( @topN, @track_list ) { # assemble filename my $fileident = $port >> 10; - - my $rrdfile = "$DBPath/${proto}-${type}-$fileident.rrd"; + my $rrdfile = "$PORTSDBDIR/${proto}-${type}-$fileident.rrd"; # which ident in this rrd file my $ident = $port & 1023; # 0x0000001111111111 mask push @rrdargs, "DEF:Port${port}=$rrdfile:p${ident}:AVERAGE"; @@ -317,15 +315,14 @@ return 1; } | | Thanks - -- _______ SWITCH - The Swiss Education and Research Network ______ Peter Haag, Security Engineer, Member of SWITCH CERT PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7 SWITCH, Limmatquai 138, CH-8001 Zurich, Switzerland E-mail: [EMAIL PROTECTED] Web: http://www.switch.ch/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iQCUAwUBRd8Bc/5AbZRALNr/AQIwjQP4+tYz7tQQ4Ecbz9hlkRsHvzPVGL/WWmKa uG2mPwRrojpMpDUn9hO9/k0QQbdjCwhhZ6KXxDYyXm0AL+gMXZ2Yt2sWjFLJLX4E 1oS63QqPvwbdIriFEW3fnBtwkVipC+TcGSj/fgmmQdpLsQa33rTZHHiPEMHVeO1b yfkwHnzwlg== =q2aB -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nfsen-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
