Dig around in plugins/rrdPlugin.c -- that's the place where the magick all happens.
 
Bytes sent and received are definitely tracked.  Here is an example of how to grab the 
graph for "BytesSent" and "BytesRcvd" using NTop's interface for the host at mac 
address 00:0c:29:a0:6f:bd.
 
http://10.10.11.115:3000/plugins/rrdPlugin?action=graph&key=interfaces/eth0/hosts/00/0C/29/A0/6F/BD/&name=bytesSent&title=bytesSent&start=now-12h&end=now
 
http://10.10.11.115:3000/plugins/rrdPlugin?action=graph&key=interfaces/eth0/hosts/00/0C/29/A0/6F/BD/&name=bytesRcvd&title=bytesRcvd&start=now-12h&end=now
 
 
I hope that is helpful,
 
--Jonathan

        -----Original Message----- 
        From: Alex [mailto:[EMAIL PROTECTED] 
        Sent: Thu 9/2/2004 11:23 AM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: [Ntop] RE: RRDtool values for In/Out Traffic
        
        

        Thank you for your answer Johnatan.
        
        Please let me know what is the Luca script filename you're talking about in
        CVS.
        I checked your appgraf script. But my goal is to split In and Out Traffics
        and not to get only one traffic value that is the sum of both.
        
        Regards,
        
        Jonathan Feldman JFeldman at entresolutions.com
        Thu Sep 2 14:39:31 CEST 2004
        
        If you want to work with RRD, it would be best to see Burton's paper, RRD
        and Ntop (http://prdownloads.sourceforge.net/ntop/rrdandntop.pdf?download)
        
        For a code sample of how to play with the RRDs on your own, command-line or
        otherwise, see my "appgraf" script.  http://feldman.org/arc/000037.html
        
        Luca has included the script's functionality in the latest CVS (yay, Luca!),
        but you may want to check out the script just to see how to harvest RRD
        data...
        
        Hope that helps,
        
        --Jonathan
        
                -----Original Message-----
                From: Alex [mailto:xelahome at free.fr]
                Sent: Thu 9/2/2004 8:13 AM
                To: ntop at Unipi.IT
                Cc:
                Subject: [Ntop] RE: RRDtool values for In/Out Traffic
        
        
        
                Hi,
        
                I investigate a little bit and I didn't find a way to get In and Out
        traffic
                values in Ntop RRD files.
                In each RRD file, it seems that protocol traffic value is sum of in 
and out
                traffic for each interface.
                Is there a way to create Ntop protocols RRD files with 2 counters (one 
of
        In
                traffic, one for Out traffic)?
        
                Or is there a way to get values from Ntop with a command line? If yes I
                could write a shell script to get them each 300 seconds and put them 
in one
                of my own RRD files.
        
                Thank you in advance
        
                Regards,
        
                Alexandre
        
                _______________________________________________
                Ntop mailing list
                Ntop at unipi.it
                http://listgateway.unipi.it/mailman/listinfo/ntop
        
        _______________________________________________
        Ntop mailing list
        [EMAIL PROTECTED]
        http://listgateway.unipi.it/mailman/listinfo/ntop
        

<<winmail.dat>>

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

Reply via email to