Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

[2.8.18] API centreon_realtime_services object status filter #6080

Closed
kozfelipe opened this issue Feb 22, 2018 · 4 comments
Closed

[2.8.18] API centreon_realtime_services object status filter #6080

kozfelipe opened this issue Feb 22, 2018 · 4 comments

Comments

@kozfelipe
Copy link
Contributor

kozfelipe commented Feb 22, 2018


BUG REPORT INFORMATION

Centreon Web version: 2.8.18

Centreon Engine version: 1.8.1

Centreon Broker version: 3.0.13

OS: 2.6.32-696.20.1.el6.x86_64

Steps to reproduce the issue:

  1. consult centreon_realtime_services objects with list action and any* status filter (ok, warning, critical, unknown)

Describe the results you received:
Error, bad status parameter

Describe the results you expected:
services list with status filter

Additional information you think important (e.g. issue happens only occasionally):
I got bad status parameter after upgrading from 2.8.17 to 2.8.18

pending and all status works*

https://documentation.centreon.com/docs/centreon/en/2.8.x/api/api_rest/index.html#service-status

@PhilCANDIDO
Copy link

Hello,

I have upgrade my centreon infrastructure from 2.8.18 to 2.8.21. The problem is always present.

@Archie1978
Copy link

Hello,
do you know when the problem will be fixed? We have broken communications since 3 months :/

@edhil
Copy link
Contributor

edhil commented Jun 7, 2018

Hello,
I have the same issue on centreon 2.8.23

@edhil
Copy link
Contributor

edhil commented Jun 7, 2018

Seems like a cut&paste bug between centreon_realtime_hosts.class.php and centreon_realtime_services.class.php

Here is a quick patch for centreon_realtime_services.class.php :

126c126,127
<             $statusList = array('up', 'down', 'unreachable', 'pending', 'all');
---
>             $statusList = array('ok','warning','critical','unknown','pending','all');
> 

edhil added a commit to NeptuneIS/centreon that referenced this issue Jun 8, 2018
chgautier pushed a commit that referenced this issue Jun 21, 2018
adr-mo pushed a commit that referenced this issue Jun 28, 2018
adr-mo pushed a commit that referenced this issue Jun 28, 2018
kduret pushed a commit that referenced this issue Jul 6, 2018
@adr-mo adr-mo closed this as completed Jul 6, 2018
kduret pushed a commit that referenced this issue Jul 6, 2018
kduret pushed a commit that referenced this issue Jul 10, 2018
adr-mo pushed a commit that referenced this issue Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants