CTOR-398 : Quick fix (#5176)

Co-authored-by: Lucie Dubrunfaut <ldubrunfaut@CNTR-PORT-A198>
Co-authored-by: sdepassio <114986849+sdepassio@users.noreply.github.com>
This commit is contained in:
Lucie Dubrunfaut 2024-09-09 12:30:48 +02:00 committed by GitHub
parent deb389a22b
commit e2791bfae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 24 additions and 24 deletions

View File

@ -1,9 +0,0 @@
{
"pkg_name": "centreon-plugin-Network-Backbox-Rest",
"pkg_summary": "Centreon Plugin to monitor Backbox using RestAPI",
"plugin_name": "centreon_backbox_rest.pl",
"files": [
"centreon/plugins/script_custom.pm",
"network/backbox/rest/"
]
}

View File

@ -0,0 +1,9 @@
{
"pkg_name": "centreon-plugin-Network-Backbox-Restapi",
"pkg_summary": "Centreon Plugin to monitor Backbox using RestAPI",
"plugin_name": "centreon_backbox_restapi.pl",
"files": [
"centreon/plugins/script_custom.pm",
"network/backbox/restapi/"
]
}

View File

@ -18,7 +18,7 @@
# limitations under the License.
#
package network::backbox::rest::custom::api;
package network::backbox::restapi::custom::api;
use strict;
use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License.
#
package network::backbox::rest::mode::backup;
package network::backbox::restapi::mode::backup;
use base qw(centreon::plugins::templates::counter);

View File

@ -18,7 +18,7 @@
# limitations under the License.
#
package network::backbox::rest::mode::configstatus;
package network::backbox::restapi::mode::configstatus;
use base qw(centreon::plugins::templates::counter);

View File

@ -18,7 +18,7 @@
# limitations under the License.
#
package network::backbox::rest::mode::intellicheck;
package network::backbox::restapi::mode::intellicheck;
use base qw(centreon::plugins::templates::counter);

View File

@ -18,7 +18,7 @@
# limitations under the License.
#
package network::backbox::rest::plugin;
package network::backbox::restapi::plugin;
use strict;
use warnings;
@ -31,12 +31,12 @@ sub new {
$self->{version} = '1.0';
$self->{modes} = {
'backup' => 'network::backbox::rest::mode::backup',
'configstatus' => 'network::backbox::rest::mode::configstatus',
'intellicheck' => 'network::backbox::rest::mode::intellicheck'
'backup' => 'network::backbox::restapi::mode::backup',
'configstatus' => 'network::backbox::restapi::mode::configstatus',
'intellicheck' => 'network::backbox::restapi::mode::intellicheck'
};
$self->{custom_modes}->{api} = 'network::backbox::rest::custom::api';
$self->{custom_modes}->{api} = 'network::backbox::restapi::custom::api';
return $self;
}

View File

@ -12,7 +12,7 @@ Test Timeout 120s
${MOCKOON_JSON} ${CURDIR}${/}backbox.json
${cmd} ${CENTREON_PLUGINS}
... --plugin=network::backbox::rest::plugin
... --plugin=network::backbox::restapi::plugin
... --custommode=api
... --hostname=${HOSTNAME}
... --port=${APIPORT}
@ -23,7 +23,7 @@ ${cmd} ${CENTREON_PLUGINS}
*** Test Cases ***
backups ${tc}
[Documentation] Check the backups status
[Tags] network backbox rest backup
[Tags] network backbox restapi backup
${command} Catenate
... ${cmd}
... --mode=backup

View File

@ -12,7 +12,7 @@ Test Timeout 120s
${MOCKOON_JSON} ${CURDIR}${/}backbox.json
${cmd} ${CENTREON_PLUGINS}
... --plugin=network::backbox::rest::plugin
... --plugin=network::backbox::restapi::plugin
... --custommode=api
... --hostname=${HOSTNAME}
... --port=${APIPORT}
@ -24,7 +24,7 @@ ${cmd} ${CENTREON_PLUGINS}
*** Test Cases ***
configstatus ${tc}
[Documentation] Check the config status
[Tags] network backbox rest configstatus
[Tags] network backbox restapi configstatus
${command} Catenate
... ${cmd}
... ${extraoptions}

View File

@ -12,7 +12,7 @@ Test Timeout 120s
${MOCKOON_JSON} ${CURDIR}${/}backbox.json
${cmd} ${CENTREON_PLUGINS}
... --plugin=network::backbox::rest::plugin
... --plugin=network::backbox::restapi::plugin
... --custommode=api
... --hostname=${HOSTNAME}
... --port=${APIPORT}
@ -24,7 +24,7 @@ ${cmd} ${CENTREON_PLUGINS}
*** Test Cases ***
intellichecks ${tc}
[Documentation] Check the intellichecks status
[Tags] network backbox rest intellicheck
[Tags] network backbox restapi intellicheck
${command} Catenate
... ${cmd}
... ${extraoptions}