Installing & configuring Cacti for 1 Minute 64bit Graphing

The “Interface – Traffic (bit/sec…)” Cacti Graph Templates need to be edited to set this “Upper Limit” value (confirmed that ‘0’ works fine here) and save that change, for each of the bit/sec Traffic Graph Templates you use (“Interface – Traffic (bits/sec)” and “Interface – Traffic (bits/sec, 95th Percentile)” are common)

Then make sure that the “Maximum Value” in each “Interface – Traffic” Cacti Data Template was set to at least 1Gbps (1000000000), for both the traffic_in & traffic_out data source (remember to click “Save”).

Your net-snmpd needs to be sure to be setting the relevant interface name speed and type specifically.
eg: If Interface name is eth1, speed is to be set to 1Gbps as Ethernet:

Add “interface eth1 6 1000000000” to your snmpd.conf & restart snmpd.

You can test that your snmpd is able to send the 64bit counters with:

snmpget -v 2c -c yourReadCommunity
IP-or-Hostname-of-snmpd .1.3.6.1.2.1.31.1.1.1.10.2 .1.3.6.1.2.1.31.1.1.1.6.2

You should get lines HCOutOctets as Counter64 units and tune the OIDs as req’d for your SNMP server.

Be sure that your Cacti is going to use 64bit counters for the specific “SNMP – Interface Statistics” Data Queries for “In/Out Bits” & “In/Out Bits with 95th Percentile” (at least).
So for each of the relevant SNMP – Interface Statistics associated Data Queries Template, set their traffic_in & traffic_out Data Source to the “ifHCInOctets (Bytes In – 64-bit Counters)” and “ifHCOutOctets (Bytes In – 64-bit Counters)” respectively.
(same as in the default “In/Out Bits (64-bit Counters)” associated Graph Templates)

Then you need to delete and recreate at least the graphs for any device in Cacti (or the device in Cacti itself), for it to pick up and use these changes and of course wait for the regular cron-based poller.php run.

Speaking of the “cron-based poller.php run”, that cronjob needs to be run every minute now, so should be changed to something like:

* * * * * cacti php /var/www/cacti/poller.php &>/dev/null

Which is usually set in the /etc/cron.d/cacti file.

Regards,
Richard.

This entry was posted in Network Presence, Rich and tagged , , . Bookmark the permalink.