> Ray Burkholder wrote:
> > At what point in the cycle between data capture and data viewing is
> > the live profile rrd data be updated?
> >
> > If I run './nfsend once' on each five minute interval, I
> can get the
> > rrd
>
> Why do you run './nfsend once'?? There is no reason unless
> for maintainance work or very special setups.
I was playing with things trying to get things running. This seemed to be
the only way to make things work.
>
> You are missing the periodic updater and control process: 'nfsend'
> Beside the collectors, you should see two nfsen processes running:
>
> netflow 28838 2.3 0.0 133288 20608 ? Ss Jun10
> 476:13 /usr/bin/perl -w /data/nfsen/bin/nfsend
> netflow 28839 0.0 0.0 125724 14672 ? Ss Jun10
> 0:28 /data/nfsen/bin/nfsend-comm
>
> Check your log file, what went wront. nfsend sends famous
> last words to syslog if it dies.
Nfsend never issued any famous last words. But stepping through the code
made me realize that there a few changes needed to nfsend. The
etc/nfsen.conf file has a $piddir variable. Nfsend does not, but should,
use that variable. Here is a diff delta to get nfsend to use the same pid
directory as the other tools. This is nfsend in 1.3.2.
nm02:/usr/local/nfsen/bin# diff nfsend.old nfsend
103c103
< unlink "$NfConf::VARDIR/run/nfsend.pid";
---
> unlink "$NfConf::PIDDIR/nfsend.pid";
748c748
< if ( -f "$NfConf::VARDIR/run/$pidfile" ) {
---
> if ( -f "$NfConf::PIDDIR/$pidfile" ) {
750,751c750,751
< open PID, "$NfConf::VARDIR/run/$pidfile" ||
< die "Can't read pid file
'$NfConf::VARDIR/run/$pidfile': $!\n";
---
> open PID, "$NfConf::PIDDIR/$pidfile" ||
> die "Can't read pid file '$NfConf::PIDDIR/$pidfile':
$!\n";
757c757
< unlink "$NfConf::VARDIR/run/$pidfile";
---
> unlink "$NfConf::PIDDIR/$pidfile";
769c769
< daemonize("$NfConf::VARDIR/run/$pidfile");
---
> daemonize("$NfConf::PIDDIR/$pidfile");
839,840c839,840
< if ( $arg ne 'once' && -f "$NfConf::VARDIR/run/$pidfile" ) {
< unlink "$NfConf::VARDIR/run/$pidfile";
---
> if ( $arg ne 'once' && -f "$NfConf::PIDDIR/$pidfile" ) {
> unlink "$NfConf::PIDDIR/$pidfile";
I now see nfsend in my process list.
--
Scanned for viruses and dangerous content at
http://www.oneunified.net and is believed to be clean.
------------------------------------------------------------------------------
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss