Skip to main content
In Backlog

Oracle tablespace plugin for plugable database

Related products:Infra Monitoring - MonitoringInfra Monitoring - Connectors
  • Dec 18, 2024 8:55 AM UTC
  • 5 replies
  • 161 views

Forum|alt.badge.img+1

Hi encounter few weeks ago an issue with oracle tablespace plugin when it’s linked to plugable database (PDBs)

 

Metrics return by plugin is not correct to compare to direct request in PDB : 

CRITICAL: Tablespace 'cpe_data' Total: 32.00 GB Used: 31.34 GB (97.95%) Free: 672.62 MB (2.05%) |

 

From Database : 

 

I requested the centreon support and here are there suggestions 

 

Thank you for this, in this case the connector works with "Tablespace" storage structure (--mode='tablespace-usage' ) not with Pluggable Databases (PDBs). These PDBs are a different level. 

 

For this purpose, you can send your suggestions & feature requests through our community https://thewatch.centreon.com/ideas, right into the "IDEAS" category.

5 replies

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • Jan 10, 2025 1:08 PM UTC
New→Needs Votes

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • Jan 10, 2025 1:09 PM UTC
Updated idea statusNeeds Votes→Discussion ongoing

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • Feb 21, 2025 1:09 PM UTC
Discussion ongoing→Needs Votes

Forum|alt.badge.img+5
  • Centreonian
  • Dec 18, 2025 4:19 PM UTC
Needs Votes→In Backlog

ltirand
Centreonian
Forum|alt.badge.img+13
  • Centreonian
  • Nov 30, 2026 4:58 PM UTC

Hello :)

Thanks for this idea! We would like your help to check whether the current plugin already covers your need. The tablespace-usage mode has two options that can monitor Pluggable Databases (PDBs):

1. Monitor all the PDBs from the CDB root, with --add-container. The plugin then reads the CDB_* views and returns the tablespaces of every container, named <PDB_NAME>_<tablespace>:

/usr/lib/centreon/plugins/centreon_oracle.pl --plugin=database::oracle::plugin --mode=tablespace-usage --hostname=<host> --port=1521 --servicename=<CDB_service> --username=<user> --password=<password> --add-container --verbose

2. Monitor a single PDB, either by connecting directly to its service (--servicename=<PDB_service>) or by switching to it with --container=<PDB_NAME> (the plugin runs "alter session set container" on the connection):

/usr/lib/centreon/plugins/centreon_oracle.pl --plugin=database::oracle::plugin --mode=tablespace-usage --hostname=<host> --port=1521 --servicename=<CDB_service> --username=<user> --password=<password> --container=<PDB_NAME> --verbose

About the difference in values you reported (Total: 32.00 GB): when a datafile is in autoextend mode, the plugin computes the total from its maximum size (MAXBYTES), not from the space currently allocated (BYTES). If your direct query compares the allocated size, this may explain the gap.

Could you try these commands and tell us:
- whether you now see the tablespaces of your PDBs,
- whether the values match your own query once autoextend is taken into account (if not, please share your query and the plugin output with --debug, with sensitive data masked).

Your feedback will tell us whether a change is needed in the plugin, or only a clearer help and documentation.

Kind regards