Thanks Peter, Recompiling latest nfdump snapshot with the right rrdpath fixed it, guess it helps if you read ./configure --help ;)
For the sake of posting an easy solution for others who come across this, my configure line was: ./configure --enable-nfprofile --with-rrdpath=/usr/bin rrdpath can be found with 'which rrdtool', CentOS yum installs it to /usr/bin. Milosh On Fri, 02 Oct 2009 22:00:26 +0930, Peter Haag <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Milosh, > Check if nfprofile was linked/loaded properly with librrd. This may be a > problem. > Otherwise contact me off list to solve the problem. > btw. if you use 1.6b use the latest snapshot 20090930. > > - Peter > > > Milosh Djuric wrote: >> Hello, >> >> We've got a new NfSen install on CentOS 5.3, using the following >> packages: >> >> nfdump-1.6b-snapshot-20090619.tar.gz which was configured with >> "./configure --enable-nfprofile"; and >> nfsen-1.3.2.tar.gz >> >> The following changes were made to the config: >> >> $BASEDIR = "/usr/local/nfsen"; >> $HTMLDIR = "/var/www/html/nfsen/"; >> $USER = "apache"; >> $WWWUSER = "apache"; >> $WWWGROUP = "apache"; >> >> A single Cisco router has been set up to send it's flows to the server, >> and the live profile works fine. >> >> The problem appears when additional profiles are added, so far I have >> done >> most of the testing using continuous / shadow, however I've never had >> graphs generate using other types either. >> >> I've scanned a few other threads which have mentioned permissions, these >> are mine: >> >> [r...@centos nfsen]# ll >> total 32 >> drwxr-xr-x 2 root apache 4096 Sep 15 12:20 bin >> drwxr-xr-x 2 root apache 4096 Sep 29 13:43 etc >> drwxr-xr-x 3 root apache 4096 Sep 16 12:07 flow_base_dir >> drwxr-xr-x 2 root apache 4096 Sep 15 12:20 libexec >> drwxr-xr-x 2 root apache 4096 Sep 15 12:20 plugins >> drwxrwxr-x 4 apache apache 4096 Sep 29 13:08 profiles-data >> drwxrwxr-x 4 apache apache 4096 Sep 29 13:08 profiles-stat >> drwxrwxr-x 6 apache apache 4096 Sep 15 12:19 var >> >> [r...@centos nfsen]# ll ./profiles-stat/WebTraffic/ >> total 2832 >> -rw-r--r-- 1 apache apache 13830 Oct 1 23:30 flows-day.png >> -rw-r--r-- 1 apache apache 14776 Oct 1 23:30 flows-month.png >> -rw-r--r-- 1 apache apache 14330 Oct 1 23:30 flows-week.png >> -rw-r--r-- 1 apache apache 15133 Oct 1 23:30 flows-year.png >> -rw-r--r-- 1 apache apache 14211 Oct 1 23:30 packets-day.png >> -rw-r--r-- 1 apache apache 15236 Oct 1 23:30 packets-month.png >> -rw-r--r-- 1 apache apache 14767 Oct 1 23:30 packets-week.png >> -rw-r--r-- 1 apache apache 15648 Oct 1 23:30 packets-year.png >> -rw-rw-r-- 1 apache apache 253 Oct 1 23:30 profile.dat >> -rw-r--r-- 1 apache apache 13427 Oct 1 23:30 traffic-day.png >> -rw-r--r-- 1 apache apache 12 Sep 29 13:16 Traffic-filter.txt >> -rw-r--r-- 1 apache apache 14428 Oct 1 23:30 traffic-month.png >> -rw-rw-r-- 1 apache apache 2687696 Sep 29 13:09 Traffic.rrd >> -rw-r--r-- 1 apache apache 13995 Oct 1 23:30 traffic-week.png >> -rw-r--r-- 1 apache apache 14827 Oct 1 23:30 traffic-year.png >> >> Netflow Processing under the Details tab works fine, and I can see the >> various flows which correspond to the specified filter. >> >> Another thread mentioned checking the path of rrdtool and associated >> files: >> >> [r...@centos nfsen]# which rrdtool >> /usr/bin/rrdtool >> [r...@centos nfsen]# locate rrd.h >> /root/downloads/nfsen-1.3.2/contrib/PortTracker/nftrack_rrd.h >> /usr/include/rrd.h >> [r...@centos nfsen]# locate librrd >> /usr/lib/librrd.a >> /usr/lib/librrd.so >> /usr/lib/librrd.so.4 >> /usr/lib/librrd.so.4.0.7 >> /usr/lib/librrd_th.a >> /usr/lib/librrd_th.so >> /usr/lib/librrd_th.so.4 >> /usr/lib/librrd_th.so.4.0.7 >> /usr/lib/pkgconfig/librrd.pc >> >> Don't see any relevant errors in /var/log/messages either: >> >> Sep 29 14:05:15 centos nfsen[14045]: 1 channels/alerts to profile >> Sep 29 14:05:15 centos nfsen[14045]: Update profile WebTraffic in group >> . >> Sep 29 14:05:16 centos nfsen[14045]: Update profile live in group . >> Sep 29 14:05:17 centos nfsen[14045]: Run expire at Tue Sep 29 14:05:00 >> 2009 >> Sep 29 14:05:17 centos nfsen[14045]: Expire profile live group . low >> water >> mark: 90%% >> Sep 29 14:05:18 centos nfsen[14045]: End expire at Tue Sep 29 14:05:00 >> 2009 >> Sep 29 14:10:15 centos nfsen[14045]: 1 channels/alerts to profile >> Sep 29 14:10:15 centos nfsen[14045]: Update profile WebTraffic in group >> . >> Sep 29 14:10:16 centos nfsen[14045]: Update profile live in group . >> Sep 29 14:10:17 centos nfsen[14045]: Run expire at Tue Sep 29 14:10:00 >> 2009 >> Sep 29 14:10:17 centos nfsen[14045]: Expire profile live group . low >> water >> mark: 90%% >> Sep 29 14:10:17 centos nfsen[14045]: End expire at Tue Sep 29 14:10:00 >> 2009 >> >> >> I'm not too familiar with how rrdtool/nfsen works, so any help is >> appreciated. Thanks >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry® Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and >> stay >> ahead of the curve. Join us from November 9-12, 2009. Register >> now! >> http://p.sf.net/sfu/devconf >> _______________________________________________ >> Nfsen-discuss mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/nfsen-discuss > > - -- > _______ 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, Werdstrasse 2, P.O. Box, CH-8021 Zurich, Switzerland > E-mail: [email protected] Web: http://www.switch.ch/ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.5 (Darwin) > > iQCVAwUBSsXyYP5AbZRALNr/AQKYKgP6AoBHgv+kINPzzdPyYo+/PjVFhq1c/aIR > JK1fxp87R65bmNK9wJ/s+wJmJVdHkZXmD70f6+OvQBmZ31rAYPJz1Wq1/FAu6uoK > wvUdi45W5BVCCGTwBKMr8aYSQOzkYUAoa2t16EATS43BbXTBoy4h2ictjZuPPzR8 > BlJxIChMbko= > =uXbx > -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Nfsen-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
