From 7615cbebe712e701530b78de8d2f34b209543970 Mon Sep 17 00:00:00 2001 From: Lucie Dubrunfaut <123162035+lucie-dubrunfaut@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:39:37 +0200 Subject: [PATCH] [CTOR-38][Plugin] Fix Packaging- New pack Avigilon camera snmp (#4997) --- .../pkg.json | 3 +++ src/hardware/devices/camera/avigilon/snmp/plugin.pm | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packaging/centreon-plugin-Hardware-Devices-Camera-Avigilon-Snmp/pkg.json b/packaging/centreon-plugin-Hardware-Devices-Camera-Avigilon-Snmp/pkg.json index 5ff32779e..177b2c3f1 100644 --- a/packaging/centreon-plugin-Hardware-Devices-Camera-Avigilon-Snmp/pkg.json +++ b/packaging/centreon-plugin-Hardware-Devices-Camera-Avigilon-Snmp/pkg.json @@ -5,6 +5,9 @@ "files": [ "centreon/plugins/script_snmp.pm", "centreon/plugins/snmp.pm", + "snmp_standard/mode/interfaces.pm", + "snmp_standard/mode/listinterfaces.pm", + "snmp_standard/mode/uptime.pm", "hardware/devices/camera/avigilon/snmp/" ] } diff --git a/src/hardware/devices/camera/avigilon/snmp/plugin.pm b/src/hardware/devices/camera/avigilon/snmp/plugin.pm index cbeb03bf4..5d54719f1 100644 --- a/src/hardware/devices/camera/avigilon/snmp/plugin.pm +++ b/src/hardware/devices/camera/avigilon/snmp/plugin.pm @@ -30,11 +30,12 @@ sub new { bless $self, $class; %{$self->{modes}} = ( - 'interfaces' => 'hardware::devices::camera::avigilon::snmp::mode::interfaces', - 'memory' => 'hardware::devices::camera::avigilon::snmp::mode::memory', - 'storage' => 'hardware::devices::camera::avigilon::snmp::mode::storage', - 'temperature' => 'hardware::devices::camera::avigilon::snmp::mode::temperature', - 'uptime' => 'snmp_standard::mode::uptime', + 'interfaces' => 'hardware::devices::camera::avigilon::snmp::mode::interfaces', + 'list-interfaces' => 'snmp_standard::mode::listinterfaces', + 'memory' => 'hardware::devices::camera::avigilon::snmp::mode::memory', + 'storage' => 'hardware::devices::camera::avigilon::snmp::mode::storage', + 'temperature' => 'hardware::devices::camera::avigilon::snmp::mode::temperature', + 'uptime' => 'snmp_standard::mode::uptime', ); return $self;