Skip to main content
Question

Docker Plugin Pack "Service status" bug

  • July 22, 2026
  • 0 replies
  • 7 views

Forum|alt.badge.img+2

Hello,

I try to monitor our docker swarm with Centreon and I’m facing an issue with “service status” check of the docker plugin pack (API not SSH)

Got a task in desired state=running but state=pending because this container cannot start (wrong placement rule)
 

[root@swarm1:~]# docker service ps mzcuervresdb                                                               
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
wbd3dz5c051t stack-traefik_traefik.1 traefik:v3.7 Running Pending about an hour ago "no suitable node (scheduling …"
(...)

If I look more deeply this task

[root@swarm1:~]# docker inspect wbd3dz5c051tq8wf8hjf9jy0f
(...)
"Status": {
"Timestamp": "2026-07-22T09:59:36.52320026Z",
"State": "pending",
"Message": "pending task scheduling",
"Err": "no suitable node (scheduling constraints not satisfied on 2 nodes; 1 node not available for new tasks)",
"PortStatus": {}
},
"DesiredState": "running",
(...)

Service status check return me a status : skipped (no value(s))

[root@centreon:~]# /usr/lib/centreon/plugins/centreon_docker_restapi.pl --plugin=cloud::docker::restapi::plugin --mode=service-status --hostname=xxxxx --port=443 --debug  --verbose   --filter-service-name stack-traefik_traefik

ok: service 'stack-traefik_traefik' task 'wbd3dz5c051tq8wf8hjf9jy0f' status : skipped (no value(s))

Looks like “servicestatus” check don’t know how to manage this special case where the containter has not been created and task is in pending state