Skip to main content

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):

Service AliasService TemplateService Description
QueryApp-DB-Rrdtool-SSH-Query-customCheck DS min/max/average on a timeframe
QueryApp-DB-Rrdtool-Local-Query-customCheck 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.

NameUnit
datasource.value.minimum.countcount
datasource.value.average.countcount
datasource.value.maximum.countcount

Applies to the following service templates: Query, Query

Prerequisites​

The plugin support query with:

  • rrdtool cli (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.

  1. 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:
dnf install centreon-pack-applications-databases-rrdtool
  1. 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:

dnf 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​

  1. 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.
  2. Fill in the macros you want (e.g. to change the thresholds for the alerts). Some macros are mandatory (see the table below).
MacroDescriptionDefault valueMandatory
CUSTOMMODEWhen a plugin offers several ways (CLI, library, etc.) to get information the desired one must be defined with this optionperlmod
DSNAMESet DS name to query (default: 'value')valueX
TIMEFRAMESet timeframe in seconds (E.g '3600' to check last 60 minutes)600X
RRDFILESet rrd file to queryX
WARNINGVALUEAVERAGEThreshold
CRITICALVALUEAVERAGEThreshold
WARNINGVALUEMAXIMUMThreshold
CRITICALVALUEMAXIMUMThreshold
WARNINGVALUEMINIMUMThreshold
CRITICALVALUEMINIMUMThreshold
EXTRAOPTIONSAny extra option you may want to add to the command (a --verbose flag for example). All options are listed here.
  1. 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:

ModeLinked 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:

OptionDescription
--filter-countersOnly display some counters (regexp can be used). Example to check SSL connections only : --filter-counters='^xxxx|yyyy$'
--rrd-fileSet rrd file to query.
--ds-nameSet DS name to query (default: 'value').
--timeframeSet 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