Does cacti use SNMPv2? I seem to be having a problem with 32bit versus 64bit counters...
My graph drops off after 116mbits+.
SNMP v2
Moderators: Developers, Moderators
That's a function of the PHP support for SNMP. If you're interested in v2 and higher support, consider the Perl modules at
http://www.switch.ch/misc/leinen/snmp/perl/
They're quite nice and don't require any of the UCD SNMP software to work. Example scripts are included.
http://www.switch.ch/misc/leinen/snmp/perl/
They're quite nice and don't require any of the UCD SNMP software to work. Example scripts are included.
The trick here is to get the data results of whatever you want into .RRD format. Where Cacti really excels is in the simplicity of graphing and presenting RRDTOOL data sources - any .RRD files will work, so you don't necessarily need the data collected within Cacti. Many data "collectors" for RRDTOOL have been created already, especially in the SNMP arena.
If you want to make it easy and have an arsenal of RRDTOOL data collectors, download MRTG from http://www.mrtg.org . It is sort of the precursor to RRDTOOL, but the recent versions of the software allow you save your data results in .RRD format. Just tell MRTG to save the files in the /cacti/rra directory and to add the files as data sources in Cacti, read the Jan 17th post on RRDTOOL data here on the Raxnet board.
Nic
If you want to make it easy and have an arsenal of RRDTOOL data collectors, download MRTG from http://www.mrtg.org . It is sort of the precursor to RRDTOOL, but the recent versions of the software allow you save your data results in .RRD format. Just tell MRTG to save the files in the /cacti/rra directory and to add the files as data sources in Cacti, read the Jan 17th post on RRDTOOL data here on the Raxnet board.
Nic
Ok, I did a quick and dirty hack to get this to work if you have SNMPv2 support installed with snmpget...
Here's the diff output:
83c83
< $snmp_octet_name = "ifHCInOctets";
---
> $snmp_octet_name = "ifInOctets";
85c85
< $snmp_octet_name = "ifHCOutOctets";
---
> $snmp_octet_name = "ifOutOctets";
95c95
< $snmp_output_octets = `$path_snmpget -v 2c $snmp_ip $snmp_community ifMIB.ifMIBObjects.ifXTable.ifXEntry.$snmp_octet_name.$snmp_interface_number`;
---
> $snmp_output_octets = `$path_snmpget $snmp_ip $snmp_community interfaces.ifTable.ifEntry.$snmp_octet_name.$snmp_interface_number`;
100c100
< }
---
> }
Here's the diff output:
83c83
< $snmp_octet_name = "ifHCInOctets";
---
> $snmp_octet_name = "ifInOctets";
85c85
< $snmp_octet_name = "ifHCOutOctets";
---
> $snmp_octet_name = "ifOutOctets";
95c95
< $snmp_output_octets = `$path_snmpget -v 2c $snmp_ip $snmp_community ifMIB.ifMIBObjects.ifXTable.ifXEntry.$snmp_octet_name.$snmp_interface_number`;
---
> $snmp_output_octets = `$path_snmpget $snmp_ip $snmp_community interfaces.ifTable.ifEntry.$snmp_octet_name.$snmp_interface_number`;
100c100
< }
---
> }
Who is online
Users browsing this forum: No registered users and 11 guests