In regards to daemontools, it would be nice for daemontools to keep NTOP alive if it decides to crash, but Im just thinking this is not the best approach with NTOP. Im thinking if NTOP is running under stable conditions you should not need to run something like daemontools , and that a cron stoping and starting NTOP daily (and some how saving stats at least for the previous say) would be the best approach (at least for my current situation).
I guess I really dont have a question here just hoping for some feedback. I understand the concepts Im discussing here are currently being worked on and hopefully will be available in future releases of NTOP, but I guess Im just struggling to decide how I want to approach capturing a daily snap shot of NTOP stats. When I have time I plan to figure out a solution for myself however I thought I would hit the list with my current issue incase someone had some feedback. Regards, Blake --- "Burton M. Strauss III" <[EMAIL PROTECTED]> wrote: > Nope, but that's par for the course - about once a > month somebody volunteers > to write some piece of documentation, and I've never > seen one of them... > > -----Burton > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Blake > Sent: Thursday, September 12, 2002 6:33 AM > To: [EMAIL PROTECTED] > Subject: [Ntop] Starting NTOP with daemontools > (Burton) > > > Burton, did you ever get a write up from the user on > starting ntop with daemontools (please see old post > below)? just curious ... thanks! -- Blake > > > > --- "Burton M. Strauss III" <[EMAIL PROTECTED]> > wrote: > > You would be far better off NOT using the pipe... > > that way if ntop dies, > > you retain the info in the log. All of it. > > > > http://cr.yp.to/daemontools/faq/create.html > > > > It's not real clear in the docs, but see this page > > for instructions on how > > to automatically create the pipe between the > service > > and log process: > > > > http://cr.yp.to/daemontools/svscan.html > > > > "svscan optionally starts a pair of supervise > > processes, one for a > > subdirectory s, one for s/log, with a pipe between > > them. It does this if the > > name s is at most 255 bytes long and s/log exists. > > (In versions 0.70 and > > below, it does this if s is sticky.) svscan needs > > two free descriptors for > > each pipe." > > > > And this: > > > > http://cr.yp.to/daemontools/faq/create.html#runlog > > > > > > If you get it working, send me a 1/2 page write up > > and I'll gladly post it. > > > > -----Burton > > > > > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Lombardo, > > Federico > > Sent: Tuesday, July 02, 2002 9:02 AM > > To: '[EMAIL PROTECTED]' > > Subject: [Ntop] Starting NTOP with daemontools > > > > > > I think that is a good idea to start NTOP with > > daemontools, I provide here a > > little (and stupid, of course) script to make it > > possible. > > Just configure ntop with the > > --prefix=/some/directory/ntop > > Then install daemontools and put these lines into > > your run script: > > #!/bin/sh > > exec ./bin/ntop -u unprivilegeduser -i ethX -E -w > > 3000 -S 1 \ > > 2>&1 | multilog t s10000000000 n20 ./log > > > > > > Naturally, DJB tells not to use "|" pipes into > > script, but it work for me, > > I'm not smarter as DJB... anyway you can run > > multilog by another script > > (even if you need logging...) > > Then ln -s /some/directory/ntop /service > > And all goes on :-) > > > > _______________________________________________ > > Ntop mailing list > > [EMAIL PROTECTED] > > http://lists.ntop.org/mailman/listinfo/ntop > > > __________________________________________________ > Do you Yahoo!? > Yahoo! News - Today's headlines > http://news.yahoo.com > _______________________________________________ > Ntop mailing list > [EMAIL PROTECTED] > http://lists.ntop.org/mailman/listinfo/ntop > __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop
