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,
0);
updateCounter(rrdPath, "tcpRcvd", statsEntry->tcpRcvd.value, 0);
updateCounter(rrdPath, "udpRcvd", statsEntry->udpRcvd.value, 0);
updateCounter(rrdPath, "icmpRcvd", statsEntry->icmpRcvd.value, 0);
updateCounter(rrdPath, "icmp6Rcvd", statsEntry->icmp6Rcvd.value,
0);
Matrix? Take it or leave it. It creates a bunch of byte and packet (sent)
graphs by ip address.
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yueh
Suk
Sent: Friday, May 27, 2005 8:47 AM
To: [email protected]
Subject: RE: [Ntop] missing RRD graphics
thanks Burton.
I looked into the HTML code
generated by ntop for each pages, and I finally found a HREF link to RRD
graphics in the "summary > traffic" page. (I had missed the small icon
before... ;)
It seems to be the only page where such
a link exist.
To get some more RRD graphics, I guess
I should select the following options
into the RRD plugin setup :
*Domains
*Flows
*Hosts
*Interfaces (already selected)
*Matrix
is that right?
if so, is it CPU intensive?
thanks,
Yueh.
--- Burton Strauss <[EMAIL PROTECTED]> a �crit:
> Graphics is just a work area - ntop creates the graphs it displays in
> there so it can reuse them if the same chart is requested again when
> there would be no difference.
>
> So, the question is, what's shown in the pages (you'll need to look at
> the underlying html) and are there rrd messages in the log?
>
> -----Burton
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Yueh Suk
> Sent: Friday, May 27, 2005 3:30 AM
> To: [email protected]
> Subject: [Ntop] missing RRD graphics
>
>
> hello,
>
> here's my problem:
>
> - I cannot find any RRD graphics into the web admin pages.
>
> - the "~ntop/share/ntop/rrd/graphics" is empty.
>
> the RRD plugin is running, and the
> "~ntop/share/ntop/rrd/interfaces/br0" directory contains many RRD
> databases (these files are updated allright, according to system
> timestamp).
>
> running configuration :
> - debian sarge
> - ntop v3.1
> - RRD plugin v2.6
>
> any idea ?
>
> thanks,
> Yueh
>
>
>
>
>
>
>
>
____________________________________________________________________________
> _
> 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
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>
____________________________________________________________________________
_
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
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop