The latest version of ntop doesn't use the .pl - that was the old version.
It's now built into the code, in plugins/rrdPlugin.c.

Make sure you have the plugin properly configure, esp.

Data to Dump
   Flows
 X Hosts
 ^^^^^^
   Interfaces
   Matrix

And

RRD Detail Low Medium Full
                      ^^^^

That's where it dumps the per protocol stuff.


    if(dumpHosts) {
...
          if(dumpDetail == FLAG_RRD_DETAIL_HIGH) {
            updateCounter(rrdPath, "totContactedSentPeers",
el->totContactedSentPeers);
            updateCounter(rrdPath, "totContactedRcvdPeers",
el->totContactedRcvdPeers);

            if((hostKey == el->hostNumIpAddress) && el->protoIPTrafficInfos)
{
#ifdef RRD_DEBUG
              traceEvent(CONST_TRACE_INFO, "RRD_DEBUG: Updating host %s",
hostKey);
#endif

              sprintf(rrdPath, "%s/hosts/%s/IP_", myGlobals.rrdPath,
hostKey);

              for(j=0; j<myGlobals.numIpProtosToMonitor; j++) {
                char key[128];
                sprintf(key, "%sSentBytes",
myGlobals.protoIPTrafficInfos[j]);
                updateCounter(rrdPath, key,
el->protoIPTrafficInfos[j].sentLoc.value+
                              el->protoIPTrafficInfos[j].sentRem.value);

                sprintf(key, "%sRcvdBytes",
myGlobals.protoIPTrafficInfos[j]);
                updateCounter(rrdPath, key,
el->protoIPTrafficInfos[j].rcvdLoc.value+
                              el->protoIPTrafficInfos[j].rcvdFromRem.value);
              }
            }
          }
        }
...

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Prashant Desai
Sent: Tuesday, February 25, 2003 1:41 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Ntop] queries regarding rrd & ntop


Hi all

  as suggested i have upgraded to the latest version
of ntop now , it's working fine , now the problem is
i am monitoring following protocols using NMAP.Here is
my startup command for ntop

ntop -u root -i eth0 -a /var/log/ntop-access.log -r
1200 -w 3000 -P /usr/share/ntop/ -p
"FTP=ftp|ftp-data,HTTP=http|www|https,DNS=name|domain,Telnet=telnet|login,NB
ios-IP=netbios-ns|netbios-dgm|netbios-ssn,Mail=pop2|pop3|kpop|smtp|imap2,SNM
P=snmp|snmp-trap,NEWS=nntp,SSH=22,MSN_Yahoo_Chat=1863|5050|5190|5191|5192|51
93,Morpheus=11523|1214,Games=5001|11999|26000|28800-29000|47624|2300-2400,Au
dioGalaxy=41000-41900,Nepster=4444|5555|6666|7777|8888|8875,GnuTella=6346|63
47,Video-Conferencing=5100|1503|1490|6670|25793|22555|1720|2000|2001|2002|20
03|7648|7649|7650|7651|7652|24032|9943|9945|56768,Streaming=554|1558|1755|70
00|6970-7170|18888,Audio-Services=1731|3450|6112|6113|6114|6115|6116|6117|61
18|6119|5000|5001|6498|6502|2327"

Now the thing is that ntop is monitoring all these and
showing results alos in the stats traffic part , but
when i use it with rrd to show the real time traffic
distribution for above protocol the rrd shows
incorrect results,
   i have modified the rrd's protoUsage.pl, to include
all the above protocols in addition to the default
protocols whic hit shows , i am also attaching the my
modified proUsage.pl.

 kindly some one please help me on this


regards
Prashant




__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to