Skip to main content
Needs Votes

Use Name in addition to ID to submit result endpoint API (and all the endpoint)

Related products:Infra Monitoring - Configuration
  • April 6, 2022
  • 6 replies
  • 96 views

Forum|alt.badge.img+16

As a user I would like to have the possibility of using name instead of the id for the submit result API: https://docs-api.centreon.com/api/centreon-web/21.10/#tag/Submit/paths/~1monitoring~1hosts~1{host_id}~1services~1{service_id}~1submit/post
 

We cannot industrialize a solution for passive monitoring because we need for each host and each service to know the id.

With the name, our customes that used NSCA can simply migrate on the API by using the name of a host and a service just like the NSCA agent.

 

Globally, we can create in the future a bundle for the passive monitoring with the API (like a cron file, and python or perl to script to submit result at regular interval).

6 replies

Forum|alt.badge.img+16
  • Author
  • Steward **
  • April 6, 2022

@discoM talk about this on a github issue: https://github.com/centreon/centreon/issues/9330


ponchoh
Centreonian
Forum|alt.badge.img+14
  • Centreonian
  • April 6, 2022

what happens on name change?


Forum|alt.badge.img+16
  • Author
  • Steward **
  • April 6, 2022

You're right the ID cover that point.

But I guess in such kind of infrastructure and monitoring implementation that's something that you need to be aware and more watchful?


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • April 22, 2022

The way we understand the requirement is an enhancement of the v2 API to accept name as input (alternative to ID).


rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • April 22, 2022
Updated idea statusNewDiscussion ongoing

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • May 4, 2022
Updated idea statusDiscussion ongoingNeeds Votes