Rubrik Security Cloud GraphQL API
Connector dependencies​
The following monitoring connectors will be installed when you install the Rubrik Security Cloud GraphQL API connector through the Configuration > Connectors > Monitoring Connectors menu:
Pack assets​
Templates​
The Monitoring Connector Rubrik Security Cloud GraphQL API brings a host template:
- App-Rubrik-Graphql-custom
The connector brings the following service templates (sorted by the host template they are attached to):
- App-Rubrik-Graphql-custom
- Not attached to a host template
| Service Alias | Service Template | Service Description |
|---|---|---|
| Cluster | App-Rubrik-Cluster-Graphql-custom | Check the status and I/O metrics of the Rubrik cluster |
| Disks | App-Rubrik-Disks-Graphql-custom | Check the disk status of the Rubrik cluster |
| Nodes | App-Rubrik-Nodes-Graphql-custom | Check the node status of the Rubrik cluster |
| Rubrik RSC SLA Compliance | App-Rubrik-Compliance-Graphql-custom | Check the SLA compliance of protected objects |
| Storage | App-Rubrik-Storage-Graphql-custom | Check the storage usage of the Rubrik cluster |
| Tasks | App-Rubrik-Tasks-Graphql-custom | Check Rubrik backup task status and last success time |
The services listed above are created automatically when the App-Rubrik-Graphql-custom host template is used.
| Service Alias | Service Template | Service Description | Discovery |
|---|---|---|---|
| Jobs | App-Rubrik-Jobs-Graphql-custom | Check Rubrik backup jobs status and duration | X |
The services listed above are not created automatically when a host template is applied. To use them, create a service manually, then apply the service template you want.
If Discovery is checked, it means a service discovery rule exists for this service template.
Discovery rules​
Service discovery​
| Rule name | Description |
|---|---|
| App-Rubrik-Graphql-Job-Name | Discover jobs and monitor status |
More information about discovering services automatically is available on the dedicated page and in the following chapter.
Collected metrics & status​
Here is the list of services for this connector, detailing all metrics and statuses linked to each service.
- Cluster
- Disks
- Jobs
- Nodes
- Rubrik RSC SLA Compliance
- Storage
- Tasks
| Name | Unit |
|---|---|
| status | N/A |
| clusters#cluster.io.read.usage.bytespersecond | B/s |
| clusters#cluster.io.write.usage.bytespersecond | B/s |
| clusters#cluster.io.read.usage.iops | iops |
| clusters#cluster.io.write.usage.iops | iops |
| clusters#cluster.network.received.usage.bytespersecond | B/s |
| clusters#cluster.network.transmitted.usage.bytespersecond | B/s |
| Name | Unit |
|---|---|
| cluster.disks.total.count | count |
| cluster.disks.active.count | count |
| disk-status | N/A |
| Name | Unit |
|---|---|
| jobs.executions.detected.count | count |
| job.executions.failed.percentage | % |
| job.execution.last.seconds | s |
| job.running.duration.seconds | s |
| execution-status | N/A |
| Name | Unit |
|---|---|
| cluster.nodes.total.count | count |
| cluster.nodes.ok.count | count |
| nodes-status | N/A |
| Name | Unit |
|---|---|
| objects.count | count |
| status | N/A |
| objects#object.snapshots.missed.count | count |
| Name | Unit |
|---|---|
| disk_name#storage.space.usage.bytes | B |
| disk_name#storage.space.free.bytes | B |
| disk_name#storage.space.usage.percentage | % |
| disk_name#storage.average.daily.growth.bytes | B |
| disk_name#storage.full.remaining.days.count | d |
| Name | Unit |
|---|---|
| tasks.succeeded.count | count |
| tasks.failed.count | count |
| tasks.canceled.count | count |
Prerequisites​
Rubrik Security Cloud provides a GraphQL API for interacting with protected objects, backups and compliance data.
To access the API, you must:
- Have access to Rubrik Security Cloud (RSC)
- Create a Service Account
- Assign the required RBAC permissions
- Generate OAuth credentials (
client_idandclient_secret)
Please refer to the Rubrik Security Cloud API documentation for more information.
Installing the monitoring connector​
Pack​
The installation procedures for monitoring connectors are slightly different depending on whether your license is offline or online.
- If the platform uses an online license, you can skip the package installation instruction below as it is not required to have the connector displayed within the Configuration > Connectors > Monitoring Connectors menu. If the platform uses an offline license, install the package on the central server with the command corresponding to the operating system's package manager:
- Alma / RHEL / Oracle Linux 8
- Alma / RHEL / Oracle Linux 9
- Debian 11 & 12
- CentOS 7
dnf install centreon-pack-applications-rubrik-graphql
dnf install centreon-pack-applications-rubrik-graphql
apt install centreon-pack-applications-rubrik-graphql
yum install centreon-pack-applications-rubrik-graphql
- Whatever the license type (online or offline), install the Rubrik Security Cloud GraphQL API connector through the Configuration > Connectors > Monitoring Connectors menu.
Plugin​
Since Centreon 22.04, you can benefit from the 'Automatic plugin installation' feature. When this feature is enabled, you can skip the installation part below.
You still have to manually install the plugin on the poller(s) when:
- Automatic plugin installation is turned off
- You want to run a discovery job from a poller that doesn't monitor any resource of this kind yet
More information in the Installing the plugin section.
Use the commands below according to your operating system's package manager:
- Alma / RHEL / Oracle Linux 8
- Alma / RHEL / Oracle Linux 9
- Debian 11 & 12
- CentOS 7
dnf install centreon-plugin-Applications-Rubrik-Graphql
dnf install centreon-plugin-Applications-Rubrik-Graphql
apt install centreon-plugin-applications-rubrik-graphql
yum install centreon-plugin-Applications-Rubrik-Graphql
Using the monitoring connector​
Using a host template provided by the connector​
- Log into Centreon and add a new host through Configuration > Hosts.
- Fill in the Name, Alias & IP Address/DNS fields according to your resource's settings.
- Apply the App-Rubrik-Graphql-custom template to the host. A list of macros appears. Macros allow you to define how the connector will connect to the resource, and to customize the connector's behavior.
- Fill in the macros you want. Some macros are mandatory.
IP Address/DNS is your Rubrik RSC Tenant hostname (e.g.
dummy.my.rubrik.com)
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| RUBRIK_RSC_API_PROTO | Protocol used | https | |
| RUBRIK_RSC_API_PORT | Port used | 443 | |
| RUBRIK_RSC_CLIENT_SECRET | Service account secret (with --service-account option) | X | |
| RUBRIK_RSC_CLUSTER | Filter cluster. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). Depending on its format this parameter is treated as either a name or a UUID | ||
| RUBRIK_RSC_EXCLUDE_CLUSTER | Exclude cluster (can be a regexp). Depending on its format this parameter is treated as either a name or a UUID | ||
| RUBRIK_RSC_INCLUDE_CLUSTER | Include cluster (can be a regexp). Depending on its format this parameter is treated as either a name or a UUID | ||
| RUBRIK_RSC_SERVICE_ACCOUNT | Service account ID (with --secret option) | X | |
| TIMEOUT | Set timeout in seconds | 120 | |
| RUBRIK_RSC_EXTRA_OPTIONS | Any extra option you may want to add to every command (a --verbose flag for example). All options are listed here. |
- Deploy the configuration. The host appears in the list of hosts, and on the Resources Status page. The command that is sent by the connector is displayed in the details panel of the host: it shows the values of the macros.
Using a service template provided by the connector​
- If you have used a host template and checked Create Services linked to the Template too, the services linked to the template have been created automatically, using the corresponding service templates. Otherwise, create manually the services you want and apply a service template to them.
- Fill in the macros you want (e.g. to change the thresholds for the alerts). Some macros are mandatory (see the table below).
- Cluster
- Disks
- Jobs
- Nodes
- Rubrik RSC SLA Compliance
- Storage
- Tasks
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| START_TIME | Set start time for filtering clusters by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| END_TIME | Set end time for filtering clusters by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| LAST | Set duration to filter last registered clusters. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d) | ||
| WARNING_READ | Warning threshold for read throughput (B/s) | ||
| CRITICAL_READ | Critical threshold for read throughput (B/s) | ||
| WARNING_READ_IOPS | Warning threshold for read IOPS | ||
| CRITICAL_READ_IOPS | Critical threshold for read IOPS | ||
| WARNING_RECEIVED | Warning threshold for network bytes received per second (B/s) | ||
| CRITICAL_RECEIVED | Critical threshold for network bytes received per second (B/s) | ||
| CRITICAL_STATUS | Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{name} | %{status} !~ /connected/ || %{system_status} !~ /ok/ | |
| WARNING_STATUS | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} | ||
| WARNING_TRANSMITTED | Warning threshold for network bytes transmitted per second (B/s) | ||
| CRITICAL_TRANSMITTED | Critical threshold for network bytes transmitted per second (B/s) | ||
| WARNING_WRITE | Warning threshold for write throughput (B/s) | ||
| CRITICAL_WRITE | Critical threshold for write throughput (B/s) | ||
| WARNING_WRITE_IOPS | Warning threshold for write IOPS | ||
| CRITICAL_WRITE_IOPS | Critical threshold for write IOPS | ||
| EXTRA_OPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. | --verbose |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| START_TIME | Set start time for filtering disks by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| END_TIME | Set end time for filtering disks by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| LAST | Set duration to filter last registered disks. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d) | ||
| INCLUDE_DISK_ID | Include disk ID (can be a regexp) | ||
| EXCLUDE_DISK_ID | Exclude disk ID (can be a regexp) | ||
| INCLUDE_DISK_PATH | Include disk path (can be a regexp) | ||
| EXCLUDE_DISK_PATH | Exclude disk path (can be a regexp) | ||
| WARNING_CLUSTER_DISKS_ACTIVE | Warning threshold for number of active disks per cluster | ||
| CRITICAL_CLUSTER_DISKS_ACTIVE | Critical threshold for number of active disks per cluster | ||
| WARNING_CLUSTER_DISKS_TOTAL | Warning threshold for total number of disks per cluster | ||
| CRITICAL_CLUSTER_DISKS_TOTAL | Critical threshold for total number of disks per cluster | ||
| CRITICAL_DISK_STATUS | Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{id}, %{path} | %{status} !~ /active/ | |
| WARNING_DISK_STATUS | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{id}, %{path} | ||
| EXTRA_OPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. | --verbose |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| UPDATED_LAST | Set duration to filter last executions by update date. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d). | 7d | |
| JOB_TYPE | Filter jobs by job type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). Use 'ALL' to include all job types. Refer to the Rubrik documentation for more information about available values | BACKUP | |
| UNIT | Select the time unit for last execution time thresholds. May be 's' for seconds, 'm' for minutes, 'h' for hours, 'd' for days, 'w' for weeks. | s | |
| START_TIME | Set start time for filtering executions by creation date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| END_TIME | Set end time for filtering executions by creation date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| LAST | Set duration to filter last executions. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d) | ||
| UPDATED_START_TIME | Set start time for filtering executions by update date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| UPDATED_END_TIME | Set end time for filtering executions by update date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| JOB_NAME | Filter jobs by job name. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| JOB_STATUS | Filter jobs by job status. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| OBJECT_TYPE | Filter jobs by object type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| JOB_ID | Filter jobs by job ID. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| INCLUDE_JOB_ID | Filter jobs by job ID (can be a regexp) | ||
| EXCLUDE_JOB_ID | Exclude jobs by job ID (can be a regexp) | ||
| INCLUDE_JOB_NAME | Filter jobs by job name (can be a regexp) | ||
| EXCLUDE_JOB_NAME | Exclude jobs by job name (can be a regexp) | ||
| INCLUDE_JOB_TYPE | Filter jobs by job type (can be a regexp) | ||
| EXCLUDE_JOB_TYPE | Exclude jobs by job type (can be a regexp) | ||
| INCLUDE_OBJECT_STATUS | Exclude jobs by job status (can be a regexp) | ||
| INCLUDE_OBJECT_TYPE | Filter jobs by object type (can be a regexp) | ||
| EXCLUDE_OBJECT_TYPE | Exclude jobs by object type (can be a regexp) | ||
| INCLUDE_LOCATION | Filter jobs by location (can be a regexp) | ||
| EXCLUDE_LOCATION | Exclude jobs by location (can be a regexp) | ||
| CRITICAL_EXECUTION_STATUS | Set critical threshold for last job execution status. You can use the following variables: %{status}, %{jobName} | %{status} =~ /Failure/i | |
| WARNING_EXECUTION_STATUS | Set warning threshold for last job execution status. You can use the following variables: %{status}, %{jobName} | ||
| WARNING_JOBS_EXECUTIONS_DETECTED | Warning threshold for number of executions detected | ||
| CRITICAL_JOBS_EXECUTIONS_DETECTED | Critical threshold for number of executions detected | ||
| WARNING_JOB_EXECUTIONS_FAILED_PRCT | Warning threshold for percentage of failed executions | ||
| CRITICAL_JOB_EXECUTIONS_FAILED_PRCT | Critical threshold for percentage of failed executions | ||
| WARNING_JOB_EXECUTION_LAST | Warning threshold for last execution time (unit defined by --unit option) | ||
| CRITICAL_JOB_EXECUTION_LAST | Critical threshold for last execution time (unit defined by --unit option) | ||
| WARNING_JOB_RUNNING_DURATION | Warning threshold for running execution duration (unit defined by --unit option) | ||
| CRITICAL_JOB_RUNNING_DURATION | Critical threshold for running execution duration (unit defined by --unit option) | ||
| EXTRA_OPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. | --verbose |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| START_TIME | Set start time for filtering nodes by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| END_TIME | Set end time for filtering nodes by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| LAST | Set duration to filter last registered nodes. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d) | ||
| INCLUDE_NODE_ID | Include node ID (can be a regexp) | ||
| EXCLUDE_NODE_ID | Exclude node ID (can be a regexp) | ||
| WARNING_CLUSTER_NODES_OK | Warning threshold for number of healthy nodes per cluster | ||
| CRITICAL_CLUSTER_NODES_OK | Critical threshold for number of healthy nodes per cluster | ||
| WARNING_CLUSTER_NODES_TOTAL | Warning threshold for total number of nodes per cluster | ||
| CRITICAL_CLUSTER_NODES_TOTAL | Critical threshold for total number of nodes per cluster | ||
| CRITICAL_NODES_STATUS | Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{id}, %{hostname}, %{ip_address} | %{status} !~ /ok/ | |
| WARNING_NODES_STATUS | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{id}, %{hostname}, %{ip_address} | ||
| EXTRA_OPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. | --verbose |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| COMLIANCE_STATUS | Filter by compliance status. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering) | OUT_OF_COMPLIANCE | |
| TIME_RANGE | Time range for compliance check. Accepted values: 'LAST_24_HOURS', 'LAST_2_SNAPSHOTS', 'LAST_3_SNAPSHOTS', 'LAST_SNAPSHOT', 'PAST_7_DAYS', 'PAST_30_DAYS', 'PAST_90_DAYS', 'SINCE_PROTECTION'. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| OBJECT_TYPE | Filter by object type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| EXCLUDED_OBJECT_TYPE | Exclude objects by type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| INCLUDE_OBJECT_TYPE | Include object type (can use regex) | ||
| EXCLUDE_OBJECT_TYPE | Exclude object type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| OBJECT_STATE | Filter by object state. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| PROTECTION_STATUS | Filter by protection status. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| SLA_DOMAIN_ID | Filter by SLA domain ID. This filter is passed directly to the GraphQL API (server-side filtering) | ||
| INCLUDE_OBJECT_ID | Include object ID (can be a regexp) | ||
| INCLUDE_OBJECT_NAME | Include object name (can use regex) | ||
| EXCLUDE_OBJECT_NAME | Exclude object name (can use regex) | ||
| INCLUDE_LOCATION | Exclude location (can use regex) | ||
| INCLUDE_COMPLANCE_STATUS | Include compliance status (can be a regexp) | ||
| EXCLUDE_COMPLIANCE_STATUS | Exclude compliance status (can be a regexp) | ||
| WARNING_MISSED_SNAPSHOTS | Warning threshold for missed snapshots | ||
| CRITICAL_MISSED_SNAPSHOTS | Critical threshold for missed snapshots | ||
| CRITICAL_OBJECTS_COUNT | Critical threshold for total number of returned objects | 0:0 | |
| WARNING_OBJECTS_COUNT | Warning threshold for total number of returned objects | ||
| WARNING_STATUS | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} | ||
| CRITICAL_STATUS | Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{name} | ||
| EXTRA_OPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. | --verbose |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| START_TIME | Set start time for filtering clusters by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| END_TIME | Set end time for filtering clusters by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| LAST | Set duration to filter last registered clusters. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d) | ||
| WARNING_AVERAGE_DAILY_GROWTH | Warning threshold for average daily growth in bytes | ||
| CRITICAL_AVERAGE_DAILY_GROWTH | Critical threshold for average daily growth in bytes | ||
| WARNING_FULL_REMAINING_DAYS | Warning threshold for remaining days before storage is full | ||
| CRITICAL_FULL_REMAINING_DAYS | Critical threshold for remaining days before storage is full | ||
| WARNING_USAGE | Warning threshold for storage usage in bytes | ||
| CRITICAL_USAGE | Critical threshold for storage usage in bytes | ||
| WARNING_USAGE_FREE | Warning threshold for storage free space in bytes | ||
| CRITICAL_USAGE_FREE | Critical threshold for storage free space in bytes | ||
| WARNING_USAGE_PRCT | Warning threshold for storage usage percentage (%) | ||
| CRITICAL_USAGE_PRCT | Critical threshold for storage usage percentage (%) | ||
| EXTRA_OPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. | --verbose |
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| DISPLAY_ON_STATUS | Display task details in verbose output for matching status. Available status: succeeded, canceled, failed Can be a regexp to match multiple statuses | canceled|failed | |
| START_TIME | Set start time for filtering tasks. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| END_TIME | Set end time for filtering tasks. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss | ||
| LAST | Set duration to filter last tasks. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d). | 1d | |
| TASK_CATEGORY | Filter by task category. Multiple values can be separated by comma. Can be 'protected' or 'recovery'. | protected | |
| OBJECT_TYPE | Filter by object type. Multiple values can be separated by comma | ||
| TASK_STATUS | Filter by task status. Multiple values can be separated by comma | ||
| TASK_TYPE | Filter by task type. Multiple values can be separated by comma | ||
| WARNING_CANCELED | Warning threshold for number of canceled tasks | ||
| CRITICAL_CANCELED | Critical threshold for number of canceled tasks | ||
| WARNING_FAILED | Warning threshold for number of failed tasks | ||
| CRITICAL_FAILED | Critical threshold for number of failed tasks | ||
| WARNING_SUCCEEDED | Warning threshold for number of succeeded tasks | ||
| CRITICAL_SUCCEEDED | Critical threshold for number of succeeded tasks | ||
| EXTRA_OPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. | --verbose |
- Deploy the configuration. The service appears in the list of services, and on the Resources Status page. The command that is sent by the connector is displayed in the details panel of the service: it shows the values of the macros.
How to check in the CLI that the configuration is OK and what are the main options for?​
Once the plugin is installed, log into your Centreon poller's CLI using the
centreon-engine user account (su - centreon-engine). Test that the connector
is able to monitor a resource using a command like this one (replace the sample values by yours):
/usr/lib/centreon/plugins/centreon_rubrik_graphql.pl \
--plugin=apps::backup::rubrik::graphql::plugin \
--mode=tasks \
--hostname='dummy.my.rubrik.com' \
--service-account='' \
--secret='' \
--port='443' \
--proto='https' \
--cluster='' \
--include-cluster='' \
--exclude-cluster='' \
--timeout='120' \
--start-time='' \
--end-time='' \
--last='' \
--task-category='' \
--object-type='' \
--task-status='' \
--task-type='' \
--display-on-status='canceled|failed' \
--warning-succeeded='' \
--critical-succeeded='' \
--warning-failed='' \
--critical-failed='' \
--warning-canceled='' \
--critical-canceled='' \
--verbose
The expected command output is shown below:
OK: succeeded: 51099 failed: 8320 canceled: 76390 | 'tasks.succeeded.count'=51099;;;0; 'tasks.failed.count'=8320;;;0; 'tasks.canceled.count'=76390;;;0;
Troubleshooting​
Please find the troubleshooting documentation for Centreon Plugins typical issues.
Available modes​
In most cases, a mode corresponds to a service template. The mode appears in the execution command for the connector. In the Centreon interface, you don't need to specify a mode explicitly: its use is implied when you apply a service template. However, you will need to specify the correct mode for the template if you want to test the execution command for the connector in your terminal.
All available modes can be displayed by adding the --list-mode parameter to
the command:
/usr/lib/centreon/plugins/centreon_rubrik_graphql.pl \
--plugin=apps::backup::rubrik::graphql::plugin \
--list-mode
The plugin brings the following modes:
| Mode | Linked service template |
|---|---|
| cluster [code] | App-Rubrik-Cluster-Graphql-custom |
| compliance [code] | App-Rubrik-Compliance-Graphql-custom |
| disks [code] | App-Rubrik-Disks-Graphql-custom |
| jobs [code] | App-Rubrik-Jobs-Graphql-custom |
| nodes [code] | App-Rubrik-Nodes-Graphql-custom |
| storage [code] | App-Rubrik-Storage-Graphql-custom |
| tasks [code] | App-Rubrik-Tasks-Graphql-custom |
Available options​
Generic options​
All generic options are listed here:
| Option | Description |
|---|---|
| --mode | Define the mode in which you want the plugin to be executed (see --list-mode). |
| --dyn-mode | Specify a mode with the module's path (advanced). |
| --list-mode | List all available modes. |
| --mode-version | Check minimal version of mode. If not, unknown error. |
| --version | Return the version of the plugin. |
| --custommode | When a plugin offers several ways (CLI, library, etc.) to get information the desired one must be defined with this option. |
| --list-custommode | List all available custom modes. |
| --multiple | Multiple custom mode objects. This may be required by some specific modes (advanced). |
| --pass-manager | Define the password manager you want to use. Supported managers are: environment, file, keepass, hashicorpvault and teampass. |
| --verbose | Display extended status information (long output). |
| --debug | Display debug messages. |
| --show-password | By default, sensitive information in command lines is hidden in debug output and replaced with *** (however, debug logs may still display sensitive information). Using the C option will display the passwords in plain text. |
| --filter-perfdata | Filter perfdata that match the regexp. Example: adding --filter-perfdata='avg' will remove all metrics that do not contain 'avg' from performance data. |
| --filter-perfdata-adv | Filter perfdata based on a "if" condition using the following variables: label, value, unit, warning, critical, min, max. Variables must be written either %{variable} or %(variable). Example: adding --filter-perfdata-adv='not (%(value) == 0 and %(max) eq "")' will remove all metrics whose value equals 0 and that don't have a maximum value. |
| --explode-perfdata-max | Create a new metric for each metric that comes with a maximum limit. The new metric will be named identically with a '_max' suffix. Example: it will split 'used_prct'=26.93%;0:80;0:90;0;100 into 'used_prct'=26.93%;0:80;0:90;0;100 'used_prct_max'=100%;;;; |
| --change-perfdata --extend-perfdata | Change or extend perfdata. Syntax: --extend-perfdata=searchlabel,newlabel,target[,[<new-unit-of-mesure>],[min],[max]] Common examples: onvert storage free perfdata into used: --change-perfdata='free,used,invert()' Convert storage free perfdata into used: --change-perfdata='used,free,invert()' Scale traffic values automatically: --change-perfdata='traffic,,scale(auto)' Scale traffic values in Mbps: --change-perfdata='traffic_in,,scale(Mbps),mbps' Change traffic values in percent: --change-perfdata='traffic_in,,percent()' |
| --change-perfdata | Change or extend perfdata. Syntax: --extend-perfdata=searchlabel,newlabel,target[,[<new-unit-of-mesure>],[min],[max]] Common examples: onvert storage free perfdata into used: --change-perfdata='free,used,invert()' Convert storage free perfdata into used: --change-perfdata='used,free,invert()' Scale traffic values automatically: --change-perfdata='traffic,,scale(auto)' Scale traffic values in Mbps: --change-perfdata='traffic_in,,scale(Mbps),mbps' Change traffic values in percent: --change-perfdata='traffic_in,,percent()' |
| --extend-perfdata | Change or extend perfdata. Syntax: --extend-perfdata=searchlabel,newlabel,target[,[<new-unit-of-mesure>],[min],[max]] Common examples: onvert storage free perfdata into used: --change-perfdata='free,used,invert()' Convert storage free perfdata into used: --change-perfdata='used,free,invert()' Scale traffic values automatically: --change-perfdata='traffic,,scale(auto)' Scale traffic values in Mbps: --change-perfdata='traffic_in,,scale(Mbps),mbps' Change traffic values in percent: --change-perfdata='traffic_in,,percent()' |
| --extend-perfdata-group | Add new aggregated metrics (min, max, average or sum) for groups of metrics defined by a regex match on the metrics' names. Syntax: --extend-perfdata-group=regex,<names-of-new-metrics>,calculation[,[<new-unit-of-mesure>],[min],[max]] regex: regular expression <names-of-new-metrics>: how the new metrics' names are composed (can use $1, $2... for groups defined by () in regex). calculation: how the values of the new metrics should be calculated <new-unit-of-mesure> (optional): unit of measure for the new metrics min (optional): lowest value the metrics can reach max (optional): highest value the metrics can reach Common examples: um wrong packets from all interfaces (with interface need --units-errors=absolute): --extend-perfdata-group=',packets_wrong,sum(packets_(discard|error)_(in|out))' Sum traffic by interface: --extend-perfdata-group='traffic_in_(.*),traffic_$1,sum(traffic_(in|out)_$1)' |
| --change-short-output --change-long-output | Modify the short/long output that is returned by the plugin. Syntax: --change-short-output=pattern |
| --change-short-output | Modify the short/long output that is returned by the plugin. Syntax: --change-short-output=pattern |
| --change-long-output | Modify the short/long output that is returned by the plugin. Syntax: --change-short-output=pattern |
| --change-exit | Replace an exit code with one of your choice. Example: adding --change-exit=unknown=critical will result in a CRITICAL state instead of an UNKNOWN state. |
| --change-output-adv | Replace short output and exit code based on a "if" condition using the following variables: short_output, exit_code. Variables must be written either %{variable} or %(variable). Example: adding --change-output-adv='%(short_ouput) =~ /UNKNOWN: No daemon/,OK: No daemon,OK' will change the following specific UNKNOWN result to an OK result. |
| --range-perfdata | Rewrite the ranges displayed in the perfdata. Accepted values: 0: nothing is changed. 1: if the lower value of the range is equal to 0, it is removed. 2: remove the thresholds from the perfdata. |
| --filter-uom | Mask the units when they don't match the given regular expression. |
| --opt-exit | Replace the exit code in case of an execution error (i.e. wrong option provided, SSH connection refused, timeout, etc). Default: unknown. |
| --output-ignore-perfdata | Remove all the metrics from the service. The service will still have a status and an output. |
| --output-ignore-label | Remove the status label ("OK:", "WARNING:", "UNKNOWN:", CRITICAL:") from the beginning of the output. Example: 'OK: Ram Total:...' will become 'Ram Total:...' |
| --output-xml | Return the output in XML format (to send to an XML API). |
| --output-json | Return the output in JSON format (to send to a JSON API). |
| --output-openmetrics | Return the output in OpenMetrics format (to send to a tool expecting this format). |
| --output-file | Write output in file (can be combined with JSON, XML and OpenMetrics options). Example: --output-file=/tmp/output.txt will write the output in /tmp/output.txt. |
| --disco-format | Applies only to modes beginning with 'list-'. Returns the list of available macros to configure a service discovery rule (formatted in XML). |
| --disco-show | Applies only to modes beginning with 'list-'. Returns the list of discovered objects (formatted in XML) for service discovery. |
| --float-precision | Define the float precision for thresholds (default: 8). |
| --source-encoding | Define the character encoding of the response sent by the monitored resource Default: 'UTF-8'. <output>. |
| --filter-counters | Only display some counters (regexp can be used). Example to check SSL connections only : --filter-counters='^xxxx|yyyy$' |
| --warning-xxx | Warning threshold. |
| --critical-xxx | Critical threshold. |
| --http-peer-addr | Set the address you want to connect to. Useful if hostname is only a vhost, to avoid IP resolution. |
| --proxyurl | Proxy URL. Example: http://my.proxy:3128 |
| --proxypac | Proxy PAC file (can be a URL or a local file). |
| --insecure | Accept insecure SSL connections. |
| --http-backend | Perl library to use for HTTP transactions. Possible values are: lwp (default) and curl. |
| --memcached | Memcached server to use (only one server). |
| --redis-server | Redis server to use (only one server). Syntax: address[:port] |
| --redis-attribute | Set Redis Options (--redis-attribute="cnx_timeout=5"). |
| --redis-db | Set Redis database index. |
| --failback-file | Fall back on a local file if Redis connection fails. |
| --memexpiration | Time to keep data in seconds (default: 86400). |
| --statefile-dir | Define the cache directory (default: '/var/lib/centreon/centplugins'). |
| --statefile-suffix | Define a suffix to customize the statefile name (default: ''). |
| --statefile-concat-cwd | If used with the '--statefile-dir' option, the latter's value will be used as a sub-directory of the current working directory. Useful on Windows when the plugin is compiled, as the file system and permissions are different from Linux. |
| --statefile-format | Define the format used to store the cache. Available formats: 'dumper', 'storable', 'json' (default). |
| --statefile-key | Define the key to encrypt/decrypt the cache. |
| --statefile-cipher | Define the cipher algorithm to encrypt the cache (default: 'AES'). |
| --hostname | Set hostname (Rubrik RSC tenant). |
| --port | Port used (default: 443) |
| --proto | Protocol used (default: 'https'). |
| --service-account | Service account ID (with --secret option). |
| --secret | Service account secret (with --service-account option). |
| --token | Use token authentication. If option is specified, token is used directly instead of service account credentials. |
| --timeout | Set timeout in seconds (default: 120). |
| --unknown-http-status | Unknown HTTP status code. |
| --warning-http-status | Warning HTTP status code. |
| --critical-http-status | Critical HTTP status code. |
| --limit | Define the number of entries to retrieve for the pagination. |
| --disable-cache | Disable the cache feature. |
| --cache-ttl | Cache time to live in minutes (default: 240 = 4 hours). |
| --cluster | Filter cluster. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). Depending on its format this parameter is treated as either a name or a UUID. |
| --include-cluster | Include cluster (can be a regexp). Depending on its format this parameter is treated as either a name or a UUID. |
| --exclude-cluster | Exclude cluster (can be a regexp). Depending on its format this parameter is treated as either a name or a UUID. |
Modes options​
All available options for each service template are listed below:
- Cluster
- Disks
- Jobs
- Nodes
- Rubrik RSC SLA Compliance
- Storage
- Tasks
| Option | Description |
|---|---|
| --start-time | Set start time for filtering clusters by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --end-time | Set end time for filtering clusters by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --last | Set duration to filter last registered clusters. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d). |
| --unknown-status | Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} |
| --warning-status | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} |
| --critical-status | Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /connected/ ||Â %{system_status} !~ /ok/'). You can use the following variables: %{status}, %{name} |
| --warning-read | Warning threshold for read throughput (B/s). |
| --critical-read | Critical threshold for read throughput (B/s). |
| --warning-write | Warning threshold for write throughput (B/s). |
| --critical-write | Critical threshold for write throughput (B/s). |
| --warning-read-iops | Warning threshold for read IOPS. |
| --critical-read-iops | Critical threshold for read IOPS. |
| --warning-write-iops | Warning threshold for write IOPS. |
| --critical-write-iops | Critical threshold for write IOPS. |
| --warning-received | Warning threshold for network bytes received per second (B/s). |
| --critical-received | Critical threshold for network bytes received per second (B/s). |
| --warning-transmitted | Warning threshold for network bytes transmitted per second (B/s). |
| --critical-transmitted | Critical threshold for network bytes transmitted per second (B/s). |
| Option | Description |
|---|---|
| --start-time | Set start time for filtering disks by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --end-time | Set end time for filtering disks by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --last | Set duration to filter last registered disks. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d). |
| --include-disk-id | Include disk ID (can be a regexp). |
| --exclude-disk-id | Exclude disk ID (can be a regexp). |
| --include-disk-path | Include disk path (can be a regexp). |
| --exclude-disk-path | Exclude disk path (can be a regexp). |
| --unknown-disk-status | Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{id}, %{path} |
| --warning-disk-status | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{id}, %{path} |
| --critical-disk-status | Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /active/'). You can use the following variables: %{status}, %{id}, %{path} |
| --warning-cluster-disks-total | Warning threshold for total number of disks per cluster. |
| --critical-cluster-disks-total | Critical threshold for total number of disks per cluster. |
| --warning-cluster-disks-active | Warning threshold for number of active disks per cluster. |
| --critical-cluster-disks-active | Critical threshold for number of active disks per cluster. |
| Option | Description |
|---|---|
| --start-time | Set start time for filtering executions by creation date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --end-time | Set end time for filtering executions by creation date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --last | Set duration to filter last executions. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d). |
| --updated-start-time | Set start time for filtering executions by update date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --updated-end-time | Set end time for filtering executions by update date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --updated-last | Set duration to filter last executions by update date. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d). When no time filtering is used updated-last defaults to 7d. |
| --job-name | Filter jobs by job name. This filter is passed directly to the GraphQL API (server-side filtering). |
| --job-type | Filter jobs by job type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). Default: 'BACKUP'. Use 'ALL' to include all job types. Refer to the Rubrik documentation for more information about available values. |
| --job-status | Filter jobs by job status. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). |
| --object-type | Filter jobs by object type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). |
| --job-id | Filter jobs by job ID. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). |
| --include-job-id | Filter jobs by job ID (can be a regexp). |
| --exclude-job-id | Exclude jobs by job ID (can be a regexp). |
| --include-job-name | Filter jobs by job name (can be a regexp). |
| --exclude-job-name | Exclude jobs by job name (can be a regexp). |
| --include-job-type | Filter jobs by job type (can be a regexp). |
| --exclude-job-type | Exclude jobs by job type (can be a regexp). |
| --include-job-status | Filter jobs by job status (can be a regexp). |
| --exclude-job-status | Exclude jobs by job status (can be a regexp). |
| --include-object-type | Filter jobs by object type (can be a regexp). |
| --exclude-object-type | Exclude jobs by object type (can be a regexp). |
| --include-location | Filter jobs by location (can be a regexp). |
| --exclude-location | Exclude jobs by location (can be a regexp). |
| --unit | Select the time unit for last execution time thresholds. May be 's' for seconds, 'm' for minutes, 'h' for hours, 'd' for days, 'w' for weeks. Default is seconds. |
| --limit | Define the number of entries to retrieve for the pagination (default: 500). |
| --unknown-execution-status | Set unknown threshold for last job execution status. You can use the following variables: %{status}, %{jobName} |
| --warning-execution-status | Set warning threshold for last job execution status. You can use the following variables: %{status}, %{jobName} |
| --critical-execution-status | Set critical threshold for last job execution status (default: %{status} =~ /Failure/i). You can use the following variables: %{status}, %{jobName} |
| --warning-job-execution-last | Warning threshold for last execution time (unit defined by --unit option). |
| --critical-job-execution-last | Critical threshold for last execution time (unit defined by --unit option). |
| --warning-job-executions-failed-prct | Warning threshold for percentage of failed executions. |
| --critical-job-executions-failed-prct | Critical threshold for percentage of failed executions. |
| --warning-job-running-duration | Warning threshold for running execution duration (unit defined by --unit option). |
| --critical-job-running-duration | Critical threshold for running execution duration (unit defined by --unit option). |
| --warning-jobs-executions-detected | Warning threshold for number of executions detected. |
| --critical-jobs-executions-detected | Critical threshold for number of executions detected. |
| Option | Description |
|---|---|
| --start-time | Set start time for filtering nodes by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --end-time | Set end time for filtering nodes by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --last | Set duration to filter last registered nodes. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d). |
| --include-node-id | Include node ID (can be a regexp). |
| --exclude-node-id | Exclude node ID (can be a regexp). |
| --unknown-nodes-status | Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{id}, %{hostname}, %{ip_address} |
| --warning-nodes-status | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{id}, %{hostname}, %{ip_address} |
| --critical-nodes-status | Define the conditions to match for the status to be CRITICAL (default: '%{status} !~ /ok/'). You can use the following variables: %{status}, %{id}, %{hostname}, %{ip_address} |
| --warning-cluster-nodes-total | Warning threshold for total number of nodes per cluster. |
| --critical-cluster-nodes-total | Critical threshold for total number of nodes per cluster. |
| --warning-cluster-nodes-ok | Warning threshold for number of healthy nodes per cluster. |
| --critical-cluster-nodes-ok | Critical threshold for number of healthy nodes per cluster. |
| Option | Description |
|---|---|
| --object-type | Filter by object type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). |
| --excluded-object-type | Exclude objects by type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). |
| --object-state | Filter by object state. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). |
| --protection-status | Filter by protection status. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). |
| --sla-domain-id | Filter by SLA domain ID. This filter is passed directly to the GraphQL API (server-side filtering). |
| --include-object-id | Include object ID (can be a regexp). |
| --exclude-object-id | Exclude object ID (can be a regexp). |
| --include-object-name | Include object name (can use regex). |
| --exclude-object-name | Exclude object name (can use regex). |
| --include-object-type | Include object type (can use regex). |
| --exclude-object-type | Exclude object type. Multiple values can be separated by comma. This filter is passed directly to the GraphQL API (server-side filtering). |
| --include-location | Include location (can use regex). |
| --exclude-location | Exclude location (can use regex). |
| --compliance-status | Filter by compliance status. Multiple values can be separated by comma (default: 'OUT_OF_COMPLIANCE'). This filter is passed directly to the GraphQL API (server-side filtering). |
| --include-compliance-status | Include compliance status (can be a regexp). |
| --exclude-compliance-status | Exclude compliance status (can be a regexp). |
| --time-range | Time range for compliance check. Accepted values: 'LAST_24_HOURS', 'LAST_2_SNAPSHOTS', 'LAST_3_SNAPSHOTS', 'LAST_SNAPSHOT', 'PAST_7_DAYS', 'PAST_30_DAYS', 'PAST_90_DAYS', 'SINCE_PROTECTION'. This filter is passed directly to the GraphQL API (server-side filtering). |
| --warning-objects-count | Warning threshold for total number of returned objects. |
| --critical-objects-count | Critical threshold for total number of returned objects (default: '0:0'). |
| --unknown-status | Define the conditions to match for the status to be UNKNOWN. You can use the following variables: %{status}, %{name} |
| --warning-status | Define the conditions to match for the status to be WARNING. You can use the following variables: %{status}, %{name} |
| --critical-status | Define the conditions to match for the status to be CRITICAL. You can use the following variables: %{status}, %{name} |
| --warning-missed-snapshots | Warning threshold for missed snapshots. |
| --critical-missed-snapshots | Critical threshold for missed snapshots. |
| Option | Description |
|---|---|
| --start-time | Set start time for filtering clusters by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --end-time | Set end time for filtering clusters by registration date. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --last | Set duration to filter last registered clusters. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d). |
| --warning-usage | Warning threshold for storage usage in bytes. |
| --critical-usage | Critical threshold for storage usage in bytes. |
| --warning-usage-free | Warning threshold for storage free space in bytes. |
| --critical-usage-free | Critical threshold for storage free space in bytes. |
| --warning-usage-prct | Warning threshold for storage usage percentage (%). |
| --critical-usage-prct | Critical threshold for storage usage percentage (%). |
| --warning-average-daily-growth | Warning threshold for average daily growth in bytes. |
| --critical-average-daily-growth | Critical threshold for average daily growth in bytes. |
| --warning-full-remaining-days | Warning threshold for remaining days before storage is full. |
| --critical-full-remaining-days | Critical threshold for remaining days before storage is full. |
| Option | Description |
|---|---|
| --start-time | Set start time for filtering tasks. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --end-time | Set end time for filtering tasks. Accepts ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ), or YYYY-MM-DD, or YYYY-MM-DD HH:mm:ss. |
| --last | Set duration to filter last tasks. Use 'd' for day, 'h' for hour, 'm' for minute (e.g., 24h, 30m, 7d). Default is: 1d (1 day). |
| --task-category | Filter by task category. Multiple values can be separated by comma. Can be 'protected' or 'recovery'. Default is 'protected'. |
| --object-type | Filter by object type. Multiple values can be separated by comma. |
| --task-status | Filter by task status. Multiple values can be separated by comma. |
| --task-type | Filter by task type. Multiple values can be separated by comma. |
| --display-on-status | Display task details in verbose output for matching status (default: 'canceled|failed'). Available status: succeeded, canceled, failed Can be a regexp to match multiple statuses. |
| --warning-succeeded | Warning threshold for number of succeeded tasks. |
| --critical-succeeded | Critical threshold for number of succeeded tasks. |
| --warning-failed | Warning threshold for number of failed tasks. |
| --critical-failed | Critical threshold for number of failed tasks. |
| --warning-canceled | Warning threshold for number of canceled tasks. |
| --critical-canceled | Critical threshold for number of canceled tasks. |
All available options for a given mode can be displayed by adding the
--help parameter to the command:
/usr/lib/centreon/plugins/centreon_rubrik_graphql.pl \
--plugin=apps::backup::rubrik::graphql::plugin \
--mode=tasks \
--help