Renamed interface modules to match those created by the SNMP Wizard.

This commit is contained in:
Ramon Novoa 2014-09-19 12:23:55 +02:00
parent ef603c91e5
commit cff9f8bc99

View File

@ -736,7 +736,7 @@ sub create_pandora_agent($) {
# Interface status module. # Interface status module.
my %module = ('id_tipo_modulo' => 18, my %module = ('id_tipo_modulo' => 18,
'id_modulo' => 2, 'id_modulo' => 2,
'nombre' => "if_${if_name}", 'nombre' => "ifOperStatus_${if_name}",
'descripcion' => $if_desc, 'descripcion' => $if_desc,
'id_agente' => $agent_id, 'id_agente' => $agent_id,
'ip_target' => $device, 'ip_target' => $device,
@ -748,7 +748,7 @@ sub create_pandora_agent($) {
# Incoming traffic module. # Incoming traffic module.
%module = ('id_tipo_modulo' => 16, %module = ('id_tipo_modulo' => 16,
'id_modulo' => 2, 'id_modulo' => 2,
'nombre' => "if_${if_name}_in", 'nombre' => "ifInOctets_${if_name}",
'descripcion' => 'The total number of octets received on the interface, including framing characters.', 'descripcion' => 'The total number of octets received on the interface, including framing characters.',
'id_agente' => $agent_id, 'id_agente' => $agent_id,
'ip_target' => $device, 'ip_target' => $device,
@ -760,7 +760,7 @@ sub create_pandora_agent($) {
# Outgoing traffic module. # Outgoing traffic module.
%module = ('id_tipo_modulo' => 16, %module = ('id_tipo_modulo' => 16,
'id_modulo' => 2, 'id_modulo' => 2,
'nombre' => "if_${if_name}_out", 'nombre' => "ifOutOctets_${if_name}",
'descripcion' => 'The total number of octets received on the interface, including framing characters.', 'descripcion' => 'The total number of octets received on the interface, including framing characters.',
'id_agente' => $agent_id, 'id_agente' => $agent_id,
'ip_target' => $device, 'ip_target' => $device,