Ask about CACTI tools

Source: Internet
Author: User
Recently, I used JAVA to compile a program for collecting network device traffic using the SNMP protocol. I found that the port traffic value of the device is the cumulative traffic value in the SNMP protocol, you must divide the difference value by the time difference to obtain the traffic per second on the port. However, the data type of the corresponding port traffic is unsigned 32-bit. for ports with a gigabit level or higher, this value will reach the maximum value in dozens of seconds, then it will return to zero and start accumulating again.
I know that CACTI uses the SNMP protocol to collect data. the default value is 5 minutes. For ports with high traffic, traffic data will return to zero many times within five minutes. So how does CACTI handle this situation? I have never learned PHP, so I cannot study its source code. is CACTI always collecting data? I don't know if I have studied CACTI's predecessors. please give me some advice. Thank you!


Reply to discussion (solution)

If one word is not enough, why cannot it be two words?

If one word is not enough, why cannot it be two words?
This is beyond my control. The data type defined in the SNMP protocol is like this. I can only use this protocol, but cannot change this protocol.

I know the problem. CACTI uses the SNMPV2 protocol to support 64-bit data. However, I don't know how to use JAVA + SNMP4J to collect 64-bit traffic. Alas, there are too few resources related to the Internet.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.