Hello there,
When I access the API using theses links:
https://my_centreon/centreon/api/latest/monitoring/resources
I don’t get all the information about the resources, on the api output below (some part have been removed to make it short), the “information”, last_check and “performance_data” (perhaps others) text is missing (null)
{
"result": [
{
"uuid": "h142-s1388",
"duration": "4w 1d",
"last_check": null,
"short_type": "s",
"id": 1388,
"type": "service",
"name": "check_tcp_port",
"alias": null,
"fqdn": null,
"host_id": 142,
"service_id": 1388,
"icon": null,
"monitoring_server_name": "xxxx",
"parent": {
"uuid": "h142",
"short_type": "h",
"id": 142,
"type": "host",
"name": "xxxx-xxxx-server",
"alias": "XXXXX XXXXX",
"fqdn": "nnn.nnn.nnn.nnnn",
"host_id": null,
"service_id": null,
"icon": null,
"status": {
"code": 0,
"name": "UP",
"severity_code": 5
},
"links": {
"uris": {
"configuration": null,
"logs": null,
"reporting": null
},
"endpoints": {},
"externals": {
"action_url": null,
"notes": null
}
}
},
"status": {
"code": 2,
"name": "CRITICAL",
"severity_code": 1
},
"in_downtime": false,
"acknowledged": false,
"active_checks": true,
"passive_checks": false,
"chart_url": null,
"last_status_change": "2023-08-16T06:06:14-04:00",
"tries": "3/3 (H)",
"information": null,
"performance_data": null,
"notification_enabled": true,
"severity": null
},
{}
],
"meta": {
"page": 1,
"limit": 10,
"search": {},
"sort_by": {},
"total": 2
}
}
but, if I go on the hosts/services API directly (https://my_centreon/centreon/api/latest/monitoring/resources/hosts/142/services/1388), it show all the missing data:
{
"uuid": "h142-s1388",
"id": 1388,
"name": "check_tcp_port",
"type": "service",
"short_type": "s",
"status": {
"name": "CRITICAL",
"code": 2,
"severity_code": 1,
"type": 1
},
"in_downtime": false,
"acknowledged": false,
"flapping": false,
"performance_data": "",
"information": "connect to address nnn.nnn.nnn.nnn and port 11100: No route to host",
"command_line": "/usr/lib/nagios/plugins/check_tcp -H nnn.nnn.nnn.nnn -p 11100 -w 2 -c 4",
"notification_number": 676,
"latency": 0.065,
"percent_state_change": 0,
"passive_checks": false,
"execution_time": 1.213,
"active_checks": true,
"icon": {
"id": null,
"name": "",
"url": ""
},
}
Attached a screenshot that show the “resources” window with the missing info and on the sidebar the service windows, where the info is displayed correctly.

Someone have any idea why this can been happen and where should I look to fix it ??
centreon using the last version 23.04.
thanks and attentive

