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:
parent
deb389a22b
commit
e2791bfae7
|
@ -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/"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -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/"
|
||||||
|
]
|
||||||
|
}
|
|
@ -18,7 +18,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package network::backbox::rest::custom::api;
|
package network::backbox::restapi::custom::api;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
|
@ -18,7 +18,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package network::backbox::rest::mode::backup;
|
package network::backbox::restapi::mode::backup;
|
||||||
|
|
||||||
use base qw(centreon::plugins::templates::counter);
|
use base qw(centreon::plugins::templates::counter);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package network::backbox::rest::mode::configstatus;
|
package network::backbox::restapi::mode::configstatus;
|
||||||
|
|
||||||
use base qw(centreon::plugins::templates::counter);
|
use base qw(centreon::plugins::templates::counter);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package network::backbox::rest::mode::intellicheck;
|
package network::backbox::restapi::mode::intellicheck;
|
||||||
|
|
||||||
use base qw(centreon::plugins::templates::counter);
|
use base qw(centreon::plugins::templates::counter);
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
package network::backbox::rest::plugin;
|
package network::backbox::restapi::plugin;
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
@ -31,12 +31,12 @@ sub new {
|
||||||
|
|
||||||
$self->{version} = '1.0';
|
$self->{version} = '1.0';
|
||||||
$self->{modes} = {
|
$self->{modes} = {
|
||||||
'backup' => 'network::backbox::rest::mode::backup',
|
'backup' => 'network::backbox::restapi::mode::backup',
|
||||||
'configstatus' => 'network::backbox::rest::mode::configstatus',
|
'configstatus' => 'network::backbox::restapi::mode::configstatus',
|
||||||
'intellicheck' => 'network::backbox::rest::mode::intellicheck'
|
'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;
|
return $self;
|
||||||
}
|
}
|
|
@ -12,7 +12,7 @@ Test Timeout 120s
|
||||||
${MOCKOON_JSON} ${CURDIR}${/}backbox.json
|
${MOCKOON_JSON} ${CURDIR}${/}backbox.json
|
||||||
|
|
||||||
${cmd} ${CENTREON_PLUGINS}
|
${cmd} ${CENTREON_PLUGINS}
|
||||||
... --plugin=network::backbox::rest::plugin
|
... --plugin=network::backbox::restapi::plugin
|
||||||
... --custommode=api
|
... --custommode=api
|
||||||
... --hostname=${HOSTNAME}
|
... --hostname=${HOSTNAME}
|
||||||
... --port=${APIPORT}
|
... --port=${APIPORT}
|
||||||
|
@ -23,7 +23,7 @@ ${cmd} ${CENTREON_PLUGINS}
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
backups ${tc}
|
backups ${tc}
|
||||||
[Documentation] Check the backups status
|
[Documentation] Check the backups status
|
||||||
[Tags] network backbox rest backup
|
[Tags] network backbox restapi backup
|
||||||
${command} Catenate
|
${command} Catenate
|
||||||
... ${cmd}
|
... ${cmd}
|
||||||
... --mode=backup
|
... --mode=backup
|
|
@ -12,7 +12,7 @@ Test Timeout 120s
|
||||||
${MOCKOON_JSON} ${CURDIR}${/}backbox.json
|
${MOCKOON_JSON} ${CURDIR}${/}backbox.json
|
||||||
|
|
||||||
${cmd} ${CENTREON_PLUGINS}
|
${cmd} ${CENTREON_PLUGINS}
|
||||||
... --plugin=network::backbox::rest::plugin
|
... --plugin=network::backbox::restapi::plugin
|
||||||
... --custommode=api
|
... --custommode=api
|
||||||
... --hostname=${HOSTNAME}
|
... --hostname=${HOSTNAME}
|
||||||
... --port=${APIPORT}
|
... --port=${APIPORT}
|
||||||
|
@ -24,7 +24,7 @@ ${cmd} ${CENTREON_PLUGINS}
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
configstatus ${tc}
|
configstatus ${tc}
|
||||||
[Documentation] Check the config status
|
[Documentation] Check the config status
|
||||||
[Tags] network backbox rest configstatus
|
[Tags] network backbox restapi configstatus
|
||||||
${command} Catenate
|
${command} Catenate
|
||||||
... ${cmd}
|
... ${cmd}
|
||||||
... ${extraoptions}
|
... ${extraoptions}
|
|
@ -12,7 +12,7 @@ Test Timeout 120s
|
||||||
${MOCKOON_JSON} ${CURDIR}${/}backbox.json
|
${MOCKOON_JSON} ${CURDIR}${/}backbox.json
|
||||||
|
|
||||||
${cmd} ${CENTREON_PLUGINS}
|
${cmd} ${CENTREON_PLUGINS}
|
||||||
... --plugin=network::backbox::rest::plugin
|
... --plugin=network::backbox::restapi::plugin
|
||||||
... --custommode=api
|
... --custommode=api
|
||||||
... --hostname=${HOSTNAME}
|
... --hostname=${HOSTNAME}
|
||||||
... --port=${APIPORT}
|
... --port=${APIPORT}
|
||||||
|
@ -24,7 +24,7 @@ ${cmd} ${CENTREON_PLUGINS}
|
||||||
*** Test Cases ***
|
*** Test Cases ***
|
||||||
intellichecks ${tc}
|
intellichecks ${tc}
|
||||||
[Documentation] Check the intellichecks status
|
[Documentation] Check the intellichecks status
|
||||||
[Tags] network backbox rest intellicheck
|
[Tags] network backbox restapi intellicheck
|
||||||
${command} Catenate
|
${command} Catenate
|
||||||
... ${cmd}
|
... ${cmd}
|
||||||
... ${extraoptions}
|
... ${extraoptions}
|
Loading…
Reference in New Issue