From 76ae2d567a365c8a9fe09f8c9862b68c0fe00f7e Mon Sep 17 00:00:00 2001 From: Lucie Dubrunfaut <123162035+lucie-dubrunfaut@users.noreply.github.com> Date: Tue, 7 May 2024 10:41:44 +0200 Subject: [PATCH] [CTOR-566][Plugin] New pack Quanta Restapi (#5019) --- .../deb.json | 5 +++++ .../pkg.json | 9 +++++++++ .../rpm.json | 5 +++++ .../quanta/restapi/mode/webscenariosavailability.pm | 2 +- tests/resources/spellcheck/stopwords.t | 1 + 5 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/deb.json create mode 100644 packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/pkg.json create mode 100644 packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/rpm.json diff --git a/packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/deb.json b/packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/deb.json new file mode 100644 index 000000000..e8ca247c8 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/deb.json @@ -0,0 +1,5 @@ +{ + "dependencies": [ + "libdatetime-perl" + ] +} \ No newline at end of file diff --git a/packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/pkg.json b/packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/pkg.json new file mode 100644 index 000000000..fbc781ff0 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/pkg.json @@ -0,0 +1,9 @@ +{ + "pkg_name": "centreon-plugin-Applications-Monitoring-Quanta-Restapi", + "pkg_summary": "Centreon Plugin to check Quanta.io application probes results.", + "plugin_name": "centreon_monitoring_quanta_restapi.pl", + "files": [ + "centreon/plugins/script_custom.pm", + "apps/monitoring/quanta/restapi" + ] +} \ No newline at end of file diff --git a/packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/rpm.json b/packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/rpm.json new file mode 100644 index 000000000..45de58385 --- /dev/null +++ b/packaging/centreon-plugin-Applications-Monitoring-Quanta-Restapi/rpm.json @@ -0,0 +1,5 @@ +{ + "dependencies": [ + "perl(DateTime)" + ] +} \ No newline at end of file diff --git a/src/apps/monitoring/quanta/restapi/mode/webscenariosavailability.pm b/src/apps/monitoring/quanta/restapi/mode/webscenariosavailability.pm index f94932bcd..2f0919e7c 100644 --- a/src/apps/monitoring/quanta/restapi/mode/webscenariosavailability.pm +++ b/src/apps/monitoring/quanta/restapi/mode/webscenariosavailability.pm @@ -131,7 +131,7 @@ Check web scenario availability metrics. =item B<--scenario-id> -Set ID of the scenario. +Set ID of the scenario (mandatory option). =item B<--timeframe> diff --git a/tests/resources/spellcheck/stopwords.t b/tests/resources/spellcheck/stopwords.t index 58342508a..af9d79399 100644 --- a/tests/resources/spellcheck/stopwords.t +++ b/tests/resources/spellcheck/stopwords.t @@ -47,6 +47,7 @@ SNMP space-usage-prct SSH SureBackup +timeframe topic-messages-inflighted total-oper-down total-oper-up