Hi,

I'm using ntop to monitor troughput on my network. The problem i have is
simple but very difficult to solve.
It's about Throughput in Hosts DumpData reports (url
http://127.0.0.1:xxxx/dumpData.html?language=text&view=long
in ntop). It seems to be updated each 60 seconds (i mean if i load this page
each 10 seconds the values don't change. I must wait six times o have a new
value : eg 60 seconds).

So i don't catch one thing. What represents the value labeled
'actualRcvThroughput'?
Is there a way to export from ntop the troughput of each IP in real time
(each 2 seconds for example) ?

I've made some investigations in ntop source code.
Here is what i've found in traffic.c
line 219
if(timeDiff < 60) return;
in my tweak it becomes
if(timeDiff < 5) return;

line 250
if((timeMinDiff =
myGlobals.actTime-myGlobals.device[deviceToUpdate].lastMinThptUpdate) >= 60
/* 1 minute */) {
in my tweak it becomes
if((timeMinDiff =
myGlobals.actTime-myGlobals.device[deviceToUpdate].lastMinThptUpdate) >= 5
/* each five seconds update*/) {

and here is what i've found in ntop.c
line 684
ntopSleepWhileSameState(60 /* do not change */);
in my tweak it becomes
ntopSleepWhileSameState(2 /* do not change */);

As it is commented, it seems to be dangerous to change the value of sleep
time in ntop.c line 684.
The first question is why is it not recommended (ressources usage i think)?
The second is how to refresh Throughput values more frequently without
modifying these lines of code (this solution is not very elegant, but is
there another one)?


Thanks in advance
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to