Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Improve accuracy of bandwidth measurements

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
ptaylor874



Joined: 04 Jan 2008
Posts: 23

PostPosted: Wed Jan 16, 2008 5:29 pm    Post subject: Improve accuracy of bandwidth measurements Reply with quote

I've been using Cacti for about a month to monitor just north of a hundred routers (with plans to have over 500 within 3 months), specifically for latency and bandwidth utilization. Today, I performed a trace of Cacti's polling against one of these routers. There were a total of three SNMP polls:

1. Request for ccitt.1 (as interpreted by Wireshark), to which the router replied with the sysDescr.. (Cisco IOS, blah, blah)
2. Request for sysUpTime - Router replied as expected
3. Request for ifInOctets, ifOutOctets, etc. Router replied as expected.

Another NMS that we use performs polls for any bandwidth related task along with sysUpTime in the same SNMP GET request. The delta between the sysUpTimes is used to calculate the bandwidth utilization for that polling interval. The theory is that the sysUpTime request is always synchronized with the request for the data, so the calculated delta values are always in the right time interval. By not performing the sysUpTime request simultaneously with the data request, some small portion of the delta is always assigned by Cacti to the time interval before it actually occurred.

In addition, this would remove one round-trip to each site every polling interval. If the sysDescr request could be rolled in as well, all the better.

This may seem like a relatively minor detail, but attention to detail like this help push a product into the "Enterprise class" arena.
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5453
Location: Wisconsin, USA

PostPosted: Wed Jan 16, 2008 5:36 pm    Post subject: Reply with quote

It would be an issue if sysUptime was actually used for any calculations, which it is not, because it's not consistent among all the SNMP agent in the world.
Back to top
ptaylor874



Joined: 04 Jan 2008
Posts: 23

PostPosted: Thu Jan 17, 2008 8:26 am    Post subject: Reply with quote

So, the time that the reply is received by Cacti is used in the calculation?

I didn't realize that sysUpTime wasn't consistent between devices... Given that, perhaps this is the best compromise.
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5453
Location: Wisconsin, USA

PostPosted: Thu Jan 17, 2008 9:41 am    Post subject: Reply with quote

Local system time is used for the update into the RRDTool file.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group