RRDtool
Connector dependencies​
The following monitoring connectors will be installed when you install the RRDtool connector through the Configuration > Connectors > Monitoring Connectors menu:
Pack assets​
Templates​
The Monitoring Connector RRDtool brings no host templates.
The connector brings the following service templates (sorted by the host template they are attached to):
- Not attached to a host template
| Service Alias | Service Template | Service Description |
|---|---|---|
| Query | App-DB-Rrdtool-SSH-Query-custom | Check DS min/max/average on a timeframe |
| Query | App-DB-Rrdtool-Local-Query-custom | Check DS min/max/average on a timeframe |
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.
Collected metrics & status​
Here is the list of services for this connector, detailing all metrics and statuses linked to each service.
- Query*
| Name | Unit |
|---|---|
| datasource.value.minimum.count | count |
| datasource.value.average.count | count |
| datasource.value.maximum.count | count |
Applies to the following service templates: Query, Query
Prerequisites​
The plugin support query with:
rrdtoolcli (executed locally or through ssh)- perl binding (executed locally only)
rrdcached is not supported (yet).
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-databases-rrdtool
dnf install centreon-pack-applications-databases-rrdtool
apt install centreon-pack-applications-databases-rrdtool
yum install centreon-pack-applications-databases-rrdtool
- Whatever the license type (online or offline), install the RRDtool 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-Databases-Rrdtool
dnf install centreon-plugin-Applications-Databases-Rrdtool
apt install centreon-plugin-applications-databases-rrdtool
yum install centreon-plugin-Applications-Databases-Rrdtool
Using the monitoring connector​
Using a host template provided by the connector​
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).
- Query
| Macro | Description | Default value | Mandatory |
|---|---|---|---|
| CUSTOMMODE | When a plugin offers several ways (CLI, library, etc.) to get information the desired one must be defined with this option | perlmod | |
| DSNAME | Set DS name to query (default: 'value') | value | X |
| TIMEFRAME | Set timeframe in seconds (E.g '3600' to check last 60 minutes) | 600 | X |
| RRDFILE | Set rrd file to query | X | |
| WARNINGVALUEAVERAGE | Threshold | ||
| CRITICALVALUEAVERAGE | Threshold | ||
| WARNINGVALUEMAXIMUM | Threshold | ||
| CRITICALVALUEMAXIMUM | Threshold | ||
| WARNINGVALUEMINIMUM | Threshold | ||
| CRITICALVALUEMINIMUM | Threshold | ||
| EXTRAOPTIONS | Any extra option you may want to add to the command (a --verbose flag for example). All options are listed here. |
- 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_rrdtool.pl \
--plugin=database::rrdtool::local::plugin \
--mode=query \
--custommode='perlmod' \
--rrd-file='xxxxxx' \
--ds-name='value' \
--timeframe='600' \
--warning-value-minimum='' \
--critical-value-minimum='' \
--warning-value-average='' \
--critical-value-average='' \
--warning-value-maximum='' \
--critical-value-maximum=''
The expected command output is shown below:
OK: datasource 'value': 3.12 (min), 4.52 (avg), 5.13 (max) | 'value#datasource.value.minimum.count'=3.12;;;; 'value#datasource.value.average.count'=4.52;;;; 'value#datasource.value.maximum.count'=5.13;;;;
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_rrdtool.pl \
--plugin=database::rrdtool::local::plugin \
--list-mode
The plugin brings the following modes:
| Mode | Linked service template |
|---|---|
| query [code] | App-DB-Rrdtool-SSH-Query-custom App-DB-Rrdtool-Local-Query-custom |
Available options​
Modes options​
All available options for each service template are listed below:
- Query*
| Option | Description |
|---|---|
| --filter-counters | Only display some counters (regexp can be used). Example to check SSL connections only : --filter-counters='^xxxx|yyyy$' |
| --rrd-file | Set rrd file to query. |
| --ds-name | Set DS name to query (default: 'value'). |
| --timeframe | Set timeframe in seconds (E.g '3600' to check last 60 minutes). |
| --warning-* --critical-* | Thresholds. Can be: 'value-minimum', 'value-average', 'value-maximum'. |
All available options for a given mode can be displayed by adding the
--help parameter to the command:
/usr/lib/centreon/plugins/centreon_rrdtool.pl \
--plugin=database::rrdtool::local::plugin \
--mode=query \
--help