Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CentreonAPI.py #1084

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Update CentreonAPI.py #1084

wants to merge 3 commits into from

Conversation

weeboo
Copy link
Contributor

@weeboo weeboo commented Nov 29, 2024

add hosts and services filters to the API request in order to reduce network traffic when there is large number of non ok services which your are not accoutable
I am not able to test the change on my laptop but if you compile a test version I will test.

add hosts and services filters to the API request in order to reduce network traffic when there is large number of non ok services which your are not accoutable
@BenoitPoulet
Copy link
Contributor

BenoitPoulet commented Dec 3, 2024

Hello,

It’s not working for the Host filter, and the fields used for the search are not the good ones.

Must be
s.description: search only in the name of the service (shown in the Resource column)

Edit : the filter for the host is working, but I think the good one is :
parent_name: search for services according to their parent's name

which is universal for all the Centreon objects.

https://docs.centreon.com/docs/23.10/alerts-notifications/resources-status/#cql-criteria

Error in reverse parameter
change search filter in order to match with CQL criteria
@weeboo
Copy link
Contributor Author

weeboo commented Dec 10, 2024

I fixed an error in reverse parameter and I change the search filter in order to match with CQL criteria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants