Ask questions about the cacti tool
Recently, in Java using the SNMP protocol to write a statistical network device traffic program, found in the SNMP protocol, the value of the device port traffic is accumulated traffic value, need to divide by the difference between the time to get the port per second traffic. However, the data type of the corresponding port traffic is unsigned 32 bits, for more than a gigabit port, a few 10 seconds, this value will reach the maximum, and then will be zeroed and re-start accumulating.
I know that cacti is also using SNMP protocol to collect data, the default is 5 minutes statistics once. For ports with large traffic, traffic data can occur many times to zero in 5 minutes. How did the cacti deal with the situation? I have not learned PHP, so I can not study its source code, is it cacti is always in the collection of data? I do not know if there have been cacti tools of the predecessor, pointing to me a bit. Thanks, man.
share to: more
------Solution--------------------
1 words is not enough, then why can't he be 2 words?