You probably could do it, but it would be a bit of work. Assuming the same definition of 'domain' as the rest of ntop - strip the left most qualifier, then what you need to do is basically rip out the report routine and clone it into rrdPlugin.c (remember, with rrds you can do only one update per time interval, so you have to accumulate and update, not update update update...)
Once you have the data, it's not hard to create the graph. In fact, little known but true, you can use the plugin to create almost any graph if you feed the right variables in... wget http://127.0.0.1:3000/plugins/rrdPlugin?action=graph&key=interfaces/eth1/hos ts/00/E0/18/B4/6C/2D/&name=bytesSent&title=bytesSent&start=now-12h&end=now action graph, should be obvious key is the relative path to the rrd directory name bytesSent is the actual rrd to graph end and start are the time ranges to graph. Traps: Remember the trailing / on the key, ntop just concats the pieces - look at graphCounter(), which is snprintf(path, sizeof(path), "%s/%s%s.rrd", myGlobals.rrdPath, rrdPath, rrdName); Want weird time spans, etc. - go for it - it's all just fed into rrdtool as you give it to ntop. -----Burton > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of > Kouprie, Robbert > Sent: Wednesday, January 14, 2004 5:18 AM > To: '[EMAIL PROTECTED]' > Subject: RE: [Ntop] Per host/subdomain RRD stats? > > > [Replying myself...] > > Ok, I'm blind. :S > > Just found the per hosts option in the RRD Plugin config. I guess I only > need the per subdomain stats now. So the question still holds for the per > subdomain stats. > > -- Robbert > > > -----Original Message----- > > From: Kouprie, Robbert [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, January 14, 2004 11:56 AM > > To: '[EMAIL PROTECTED]' > > Subject: [Ntop] Per host/subdomain RRD stats? > > > > > > Hi guys, > > > > Is there any quick hack available, or is there maybe > > work-in-progress, to > > dump RRD statistics per host or per subdomain? Or does this need major > > additions in rrdPlugin.c? > > > > I would appreciate this feature, and I'm prepared to > > implement it myself, > > but I don't want to miss any existing obvious ways to accomplish this. > > > > Regards, > > -- Robbert > > > > > > _______________________________________________ > > Ntop mailing list > > [EMAIL PROTECTED] > > http://listgateway.unipi.it/mailman/listinfo/ntop > > > > > _______________________________________________ > Ntop mailing list > [EMAIL PROTECTED] > http://listgateway.unipi.it/mailman/listinfo/ntop > _______________________________________________ Ntop mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop
