ok, thanks for all these advices
Yueh.

--- Burton Strauss <[EMAIL PROTECTED]> a �crit :

> It's not that bad ... Of course, CPU is a relative
> thing.  It's certainly
> not free.  But if you want any historical
> information, you need to be
> willing to spend the $ for decent hardware...
> 
> 
> You probably want at least Hosts (otherwise no
> per-host stuff).  You want
> medium or high detail.  Otherwise it's just the bare
> counts:
> 
>     updateTrafficCounter(rrdPath, "pktSent",
> &el->pktSent, 0);
>     updateTrafficCounter(rrdPath, "pktRcvd",
> &el->pktRcvd, 0);
>     updateTrafficCounter(rrdPath, "bytesSent",
> &el->bytesSent, 0);
>     updateTrafficCounter(rrdPath, "bytesRcvd",
> &el->bytesRcvd, 0);
> 
> Medium adds:
> 
>       updateTrafficCounter(rrdPath,
> "pktDuplicatedAckSent",
> &el->pktDuplicatedAckSent, 0);
>       updateTrafficCounter(rrdPath,
> "pktDuplicatedAckRcvd",
> &el->pktDuplicatedAckRcvd, 0);
>       updateTrafficCounter(rrdPath,
> "pktBroadcastSent",
> &el->pktBroadcastSent, 0);
>       updateTrafficCounter(rrdPath,
> "bytesBroadcastSent",
> &el->bytesBroadcastSent, 0);
>       updateTrafficCounter(rrdPath,
> "pktMulticastSent",
> &el->pktMulticastSent, 0);
>       updateTrafficCounter(rrdPath,
> "bytesMulticastSent",
> &el->bytesMulticastSent, 0);
>       updateTrafficCounter(rrdPath,
> "pktMulticastRcvd",
> &el->pktMulticastRcvd, 0);
>       updateTrafficCounter(rrdPath,
> "bytesMulticastRcvd",
> &el->bytesMulticastRcvd, 0);
>       updateTrafficCounter(rrdPath, "bytesSentLoc",
> &el->bytesSentLoc, 0);
>       updateTrafficCounter(rrdPath, "bytesSentRem",
> &el->bytesSentRem, 0);
>       updateTrafficCounter(rrdPath, "bytesRcvdLoc",
> &el->bytesRcvdLoc, 0);
>       updateTrafficCounter(rrdPath,
> "bytesRcvdFromRem",
> &el->bytesRcvdFromRem, 0);
>       updateTrafficCounter(rrdPath, "ipBytesSent",
> &el->ipBytesSent, 0);
>       updateTrafficCounter(rrdPath, "ipBytesRcvd",
> &el->ipBytesRcvd, 0);
>       updateTrafficCounter(rrdPath, "tcpSentLoc",
> &el->tcpSentLoc, 0);
>       updateTrafficCounter(rrdPath, "tcpSentRem",
> &el->tcpSentRem, 0);
>       updateTrafficCounter(rrdPath, "udpSentLoc",
> &el->udpSentLoc, 0);
>       updateTrafficCounter(rrdPath, "udpSentRem",
> &el->udpSentRem, 0);
>       updateTrafficCounter(rrdPath, "icmpSent",
> &el->icmpSent, 0);
>       updateTrafficCounter(rrdPath, "tcpRcvdLoc",
> &el->tcpRcvdLoc, 0);
>       updateTrafficCounter(rrdPath,
> "tcpRcvdFromRem", &el->tcpRcvdFromRem,
> 0);
>       updateTrafficCounter(rrdPath, "udpRcvdLoc",
> &el->udpRcvdLoc, 0);
>       updateTrafficCounter(rrdPath,
> "udpRcvdFromRem", &el->udpRcvdFromRem,
> 0);
>       updateTrafficCounter(rrdPath, "icmpRcvd",
> &el->icmpRcvd, 0);
>       updateTrafficCounter(rrdPath,
> "tcpFragmentsSent",
> &el->tcpFragmentsSent, 0);
>       updateTrafficCounter(rrdPath,
> "tcpFragmentsRcvd",
> &el->tcpFragmentsRcvd, 0);
>       updateTrafficCounter(rrdPath,
> "udpFragmentsSent",
> &el->udpFragmentsSent, 0);
>       updateTrafficCounter(rrdPath,
> "udpFragmentsRcvd",
> &el->udpFragmentsRcvd, 0);
>       updateTrafficCounter(rrdPath,
> "icmpFragmentsSent",
> &el->icmpFragmentsSent, 0);
>       updateTrafficCounter(rrdPath,
> "icmpFragmentsRcvd",
> &el->icmpFragmentsRcvd, 0);
>       updateTrafficCounter(rrdPath, "ipv6Sent",
> &el->ipv6Sent, 0);
>       updateTrafficCounter(rrdPath, "ipv6Rcvd",
> &el->ipv6Rcvd, 0);
> 
>       NonIP:
> 
>         updateTrafficCounter(rrdPath, "stpSent",
> &el->nonIPTraffic->stpSent,
> 0);
>         updateTrafficCounter(rrdPath, "stpRcvd",
> &el->nonIPTraffic->stpRcvd,
> 0);
>         updateTrafficCounter(rrdPath, "ipxSent",
> &el->nonIPTraffic->ipxSent,
> 0);
>         updateTrafficCounter(rrdPath, "ipxRcvd",
> &el->nonIPTraffic->ipxRcvd,
> 0);
>         updateTrafficCounter(rrdPath, "osiSent",
> &el->nonIPTraffic->osiSent,
> 0);
>         updateTrafficCounter(rrdPath, "osiRcvd",
> &el->nonIPTraffic->osiRcvd,
> 0);
>         updateTrafficCounter(rrdPath, "dlcSent",
> &el->nonIPTraffic->dlcSent,
> 0);
>         updateTrafficCounter(rrdPath, "dlcRcvd",
> &el->nonIPTraffic->dlcRcvd,
> 0);
>         updateTrafficCounter(rrdPath,
> "arp_rarpSent",
> &el->nonIPTraffic->arp_rarpSent, 0);
>         updateTrafficCounter(rrdPath,
> "arp_rarpRcvd",
> &el->nonIPTraffic->arp_rarpRcvd, 0);
>         updateTrafficCounter(rrdPath,
> "arpReqPktsSent",
> &el->nonIPTraffic->arpReqPktsSent, 0);
>         updateTrafficCounter(rrdPath,
> "arpReplyPktsSent",
> &el->nonIPTraffic->arpReplyPktsSent, 0);
>         updateTrafficCounter(rrdPath,
> "arpReplyPktsRcvd",
> &el->nonIPTraffic->arpReplyPktsRcvd, 0);
>         updateTrafficCounter(rrdPath, "decnetSent",
> &el->nonIPTraffic->decnetSent, 0);
>         updateTrafficCounter(rrdPath, "decnetRcvd",
> &el->nonIPTraffic->decnetRcvd, 0);
>         updateTrafficCounter(rrdPath,
> "appletalkSent",
> &el->nonIPTraffic->appletalkSent, 0);
>         updateTrafficCounter(rrdPath,
> "appletalkRcvd",
> &el->nonIPTraffic->appletalkRcvd, 0);
>         updateTrafficCounter(rrdPath, "netbiosSent",
> &el->nonIPTraffic->netbiosSent, 0);
>         updateTrafficCounter(rrdPath, "netbiosRcvd",
> &el->nonIPTraffic->netbiosRcvd, 0);
>         updateTrafficCounter(rrdPath, "otherSent",
> &el->nonIPTraffic->otherSent, 0);
>         updateTrafficCounter(rrdPath, "otherRcvd",
> &el->nonIPTraffic->otherRcvd, 0);
> 
>       And the per-protocol Sent/Rcvd
> 
> High adds:
> 
>       updateCounter(rrdPath,
> "totContactedSentPeers",
> el->totContactedSentPeers, 0);
>       updateCounter(rrdPath,
> "totContactedRcvdPeers",
> el->totContactedRcvdPeers, 0);
> 
>       And the per-IP-protocol Sent/Rcvd, e.g.
> IP_HTTP...
> 
> 
> Don't bother with Flows.
> 
> 
> Domains? If you want 'em.  It's just per-domain
> (i.e. stripping the 1st
> qualifier) summary counters...
> 
>           updateCounter(rrdPath, "bytesSent",
> statsEntry->bytesSent.value,
> 0);
>           updateCounter(rrdPath, "bytesRcvd",
> statsEntry->bytesRcvd.value,
> 0);
> 
>           updateCounter(rrdPath, "tcpSent",
> statsEntry->tcpSent.value, 0);
>           updateCounter(rrdPath, "udpSent",
> statsEntry->udpSent.value, 0);
>           updateCounter(rrdPath, "icmpSent",
> statsEntry->icmpSent.value, 0);
>           updateCounter(rrdPath, "icmp6Sent",
> statsEntry->icmp6Sent.value,
> 
=== message truncated ===



        

        
                
_____________________________________________________________________________ 
D�couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vid�os ! 
Cr�ez votre Yahoo! Mail sur http://fr.mail.yahoo.com
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to