Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.01k stars 576 forks source link

icinga2 ca list always empty #8976

Closed moreamazingnick closed 2 years ago

moreamazingnick commented 3 years ago

Describe the bug

I noticed recently that the command: does not show any result.

I tried with --all and - removed.

After that i looked into the sourcecodicinga2 ca liste and found that the command checks the directory /var/lib/icinga2/certificate-requests/

which is also empty.

So I registered a new host with icinga director and self service api, the host gets its certificate and can perform checks but the directroy is still empty

I know it is not an inventory nad weekly cleared

Thanks for your help and best regards

Nicolas

To Reproduce

register a new host run icinga2 ca list --all check dir /var/lib/icinga2/certificate-requests/

Include as many relevant details about the environment you experienced the problem in

Al2Klimov commented 3 years ago

HA or single master?

moreamazingnick commented 3 years ago

in HA, but on both servers

Al2Klimov commented 3 years ago

the host gets its certificate and can perform checks

What's the problem then?

moreamazingnick commented 2 years ago

Could it be something like that: If the signing-process via self service api and ticket works as expected the ca list stays empty.

If the signing-process fails there is a cert to sign manually in the list, and after the manual signing it gets renamed and deleted some time later on

Al2Klimov commented 2 years ago

Yes.

moreamazingnick commented 2 years ago

perfect, closed