[resend] [taking this to ntop-dev as there's actual code involved now...]
> -----Original Message----- > From: Burton M. Strauss III [mailto:[EMAIL PROTECTED] > Sent: Saturday, January 24, 2004 1:01 AM > To: [EMAIL PROTECTED] > Subject: RE: [Ntop] Per host/subdomain RRD stats? > > > 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 That was indeed my approach also. > (remember, with > rrds you can do > only one update per time interval, so you have to accumulate > and update, not > update update update...) You mean accumulate all hosts per domain, and then do UpdateCounter right? My graphs indeed do look kinda edgy. Anyway, I created a patch to add domain RRD's. Its modifies 2 files: - report.c to add an RRD icon and link in the "Statistics for hosts in Domain %s" page - rrdPlugin.c to add the RRD code to dump domain data Almost everything seems to work, RRDs are created and data is written to the RRDs. Only there's one problem. After the rrdplugin has run on its regular interval, the Domain Stats at the IP Summary->Domain page are reset! I'm not sure what is causing this problem, but something (fillDomainName?) must be modifying data that is depended upon by printDomainStats. I attached my code and I hope someone can shed any light on this matter. Thanks, -- Robbert
ntop-plugins-rrdplugin-add-domain-rrds.diff
Description: Binary data
ntop-report-add-domain-rrds.diff
Description: Binary data
