Skip to main content
Question

how genrate a list of active services (no templates) without contactgroup define? sql, api, api rest, .conf file?

  • November 27, 2025
  • 1 reply
  • 5 views

Forum|alt.badge.img+4

Hi everyone,

I’m looking for the most efficient way to generate a list of active services (excluding templates) that do not have any contactgroup defined—neither directly nor inherited from templates.

I’d like to explore different methods to achieve this, such as:

  • SQL queries (directly querying the Centreon database)
  • REST API (if applicable)
  • Parsing configuration files (e.g., .conf files in /var/lib/centreon-engine/central/config/)

If you’ve already tackled this issue or have any insights, I’d appreciate your input! Which method do you recommend for accuracy and simplicity?

Thanks in advance for your help!

1 reply

Forum|alt.badge.img+11

That’s a good question, as those data is using inheritences at multiple levels.

I suppose that to be able to see the “aggregated” configuration to be 100% sure that a service doesn’t have ANY contactgroup that the generated configuration is the most reliable, but i never tried.

Maybe the new REST APIV2 could do it, but i don’t think i saw the required data for this.
If you figure it out please share it, I’m curious.