Question

Traffic OID Cisco Standard

  • 6 November 2023
  • 0 replies
  • 83 views

Badge +2

Hello!

I’m trying to use traffic metrics from interfaces with cisco-standard plugin, everything works correctly but I dont understand how cisco plugin obtain the values from the OID.

For Exemple :

/usr/lib/centreon/plugins/centreon_cisco_standard_snmp.pl --plugin=network::cisco::standard::snmp::plugin --mode=interfaces --hostname=xx.xx.xx.xx --snmp-version='3' --snmp-community='public' --snmp-username='supervision' --authpassphrase='xxxxxxxxxxxxx' --authprotocol='SHA' --privpassphrase="xxxxxxxxxxxxxx" --privprotocol='AES' --interface='^P22$' --name --add-status --add-traffic --oid-extra-display ifAlias --debug
OK: Interface 'P22' [ xxxxxxxxxxxx ] Status : up (admin: up), Traffic In : 0.00b/s (0.00%), Traffic Out : 4.05Gb/s (40.52%) | 'traffic_in'=0.00b/s;;;0;10000000000 'traffic_out'=4052433008.00b/s;;;0;10000000000
.1.3.6.1.2.1.2.2.1.5.22 = 4294967295
.1.3.6.1.2.1.2.2.1.7.22 = 1
.1.3.6.1.2.1.2.2.1.8.22 = 1
.1.3.6.1.2.1.2.2.1.10.22 = 0
.1.3.6.1.2.1.2.2.1.16.22 = 3141495286
.1.3.6.1.2.1.31.1.1.1.6.22 = 0
.1.3.6.1.2.1.31.1.1.1.10.22 = 1499925980342774
.1.3.6.1.2.1.31.1.1.1.15.22 = 10000
Interface 'P22' [ xxxxxxxxxxxxx ] Status : up (admin: up), Traffic In : 0.00b/s (0.00%), Traffic Out : 4.05Gb/s (40.52%)

How Cisco Plugin retrive a Traffic-Out to 4.05Gb/s with standard OID value “3141495286” (or “1499925980342774” in 64 bits)

When I check description of the OIDs, the values has to be in Byte/sec ? or simply Byte ?

sub set_oids_traffic {
my ($self, %options) = @_;

$self->{oid_speed32} = '.1.3.6.1.2.1.2.2.1.5'; # in b/s
$self->{oid_in32} = '.1.3.6.1.2.1.2.2.1.10'; # in B
$self->{oid_out32} = '.1.3.6.1.2.1.2.2.1.16'; # in B
$self->{oid_speed64} = '.1.3.6.1.2.1.31.1.1.1.15'; # need multiple by '1000000'
$self->{oid_in64} = '.1.3.6.1.2.1.31.1.1.1.6'; # in B
$self->{oid_out64} = '.1.3.6.1.2.1.31.1.1.1.10'; # in B
$self->{oid_iftype} = '.1.3.6.1.2.1.2.2.1.3';

How the calculation is done ?


0 replies

Be the first to reply!

Reply