That was a good hint, apparently there are services created that are not linked to any devices. Additionally those services appear to be empty. How can that be?
We are creating service checks via Ansible using the API. If there is no service check defined Ansible just does nothing and skips that step. So I don’t understand what causes this?!
Shouldn’t there be a mechanism be in place that denys creating empty services?
Removing the empty services via API solved this issue in the dashboard, but there is no way of doing this via the UI (to my knowledge).
Maybe it would be usefull to improve the service overview and allow to do such cleanup jobs via the UI.
Update:
Apparently it is possible to add service checks to non existing devices. Shouldn’t this be denied via API? (Adding services to non existing devices)
Update2:
I added a check loop into our Ansible roles that checks if the device actually exists before trying to add services. It automatically adds missing devices, checks again for the device and then adds the desired service checks.
Still it would be good if the API throws an error if the device actually does not exist.
Thanks for your reply. I am not a developer and hence cannot help out with a php code contribution. Sorry. Hope someone who can will take care of this.