Hallo,
ich habe nun versucht die Lösung nachzubauen indem ich für beite zu testende Hosts jeweils einen eigenen Agenten gebacken habe. Leider ohne Erfolg, obwohl es eigentlich so passen sollte. Könnte in die Problematik noch irgend eine andere Konfigurationsstelle rein spielen?
Instanz A (SITE-Master und SITE-Instanz liegen auf dem selben Host)
Altes Zertifikat ==> Updater OK
$ openssl s_client -connect CMK-SERVER:443 -showcerts | egrep ‘s:|i:’
depth=0 C = DE, ST = Nordrhein-Westfalen, O = OOOOOOOOOOOO OOO, CN = CMK-SERVER
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = DE, ST = Nordrhein-Westfalen, O = OOOOOOOOOOOO OOO, CN = CMK-SERVER
verify error:num=21:unable to verify the first certificate
verify return:1
depth=0 C = DE, ST = Nordrhein-Westfalen, O = OOOOOOOOOOOO OOO, CN = CMK-SERVER
verify return:1
0 s:C = DE, ST = Nordrhein-Westfalen, O = OOOOOOOOOOOO OOO, CN = CMK-SERVER
i:C = NL, O = GEANT Vereniging, CN = GEANT OV RSA CA 4
#$ cmk-update-agent -v
Updated the certificate store “/var/lib/check_mk_agent/cas/all_certs.pem” with 3 certificate(s)
±------------------------------------------------------------------+
| |
| Checkmk Agent Updater v2.3.0-2025.05.26 - Update |
| |
±------------------------------------------------------------------+
Getting target agent configuration for host ‘HOST-A’ from deployment server
Updated the certificate store “/var/lib/check_mk_agent/cas/all_certs.pem” with 3 certificate(s)
Target state (from deployment server):
Agent available: True
Signatures: 1
Target hash: 41935e2408a3cd2b
Agent 41935e2408a3cd2b already installed.
Neues Zertifikat ==> Updater ERROR
openssl s_client -connect CMK-SERVER:443 -showcerts | egrep ‘s:|i:’
depth=2 C = GR, O = Hellenic Academic and Research Institutions CA, CN = HARICA TLS RSA Root CA 2021
verify return:1
depth=1 C = GR, O = Hellenic Academic and Research Institutions CA, CN = GEANT TLS RSA 1
verify return:1
depth=0 C = DE, ST = Nordrhein-Westfalen, O = OOOOOOOOOOOO OOO, CN = CMK-SERVER
verify return:1
0 s:C = DE, ST = Nordrhein-Westfalen, O = OOOOOOOOOOOO OOO, CN = CMK-SERVER
i:C = GR, O = Hellenic Academic and Research Institutions CA, CN = GEANT TLS RSA 1
1 s:C = GR, O = Hellenic Academic and Research Institutions CA, CN = GEANT TLS RSA 1
i:C = GR, O = Hellenic Academic and Research Institutions CA, CN = HARICA TLS RSA Root CA 2021
2 s:C = GR, O = Hellenic Academic and Research Institutions CA, CN = HARICA TLS RSA Root CA 2021
i:C = GR, L = Athens, O = Hellenic Academic and Research Institutions Cert. Authority, CN = Hellenic Academic and Research Institutions RootCA 2015
$ cmk-update-agent -v
Updated the certificate store “/var/lib/check_mk_agent/cas/all_certs.pem” with 3 certificate(s)
±------------------------------------------------------------------+
| |
| Checkmk Agent Updater v2.3.0-2025.05.26 - Update |
| |
±------------------------------------------------------------------+
Getting target agent configuration for host ‘kn01p3ap801’ from deployment server
Failed to connect to Agent Bakery: HTTPSConnectionPool(host= CMK-SERVER ', port=443): Max retries exceeded with url: /SITE-MASTER/check_mk/deploy_agent.py (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)’)))
Retrying with fallback URL: https:// CMK-SERVER-A /SITE/check_mk
HTTPSConnectionPool(host= CMK-SERVER ', port=443): Max retries exceeded with url: /SITE-INSTANZ/check_mk/deploy_agent.py (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)’)))
See syslog or Logfile at /var/lib/check_mk_agent/cmk-update-agent.log for details.
Instanz B
Altes Zertifikat ==> Updater OK
#$ openssl s_client -connect CMK-SERVER-B:443 -showcerts | egrep ‘s:|i:’
Connecting to 10.188.46.230
depth=2 C=US, ST=New Jersey, L=Jersey City, O=The USERTRUST Network, CN=USERTrust RSA Certification Authority
verify return:1
depth=1 C=NL, O=GEANT Vereniging, CN=GEANT OV RSA CA 4
verify return:1
depth=0 C=DE, ST=Nordrhein-Westfalen, O= OOOOOOOOOOOO OOO, CN= CMK-SERVER-B
verify return:1
0 s:C=DE, ST=Nordrhein-Westfalen, O= OOOOOOOOOOOO OOO, CN= CMK-SERVER-B
i:C=NL, O=GEANT Vereniging, CN=GEANT OV RSA CA 4
#$ cmk-update-agent -v
Updated the certificate store “/var/lib/check_mk_agent/cas/all_certs.pem” with 5 certificate(s)
±------------------------------------------------------------------+
| |
| Checkmk Agent Updater v2.3.0-2025.05.26 - Update |
| |
±------------------------------------------------------------------+
Getting target agent configuration for host ‘HOST-B’ from deployment server
Failed to connect to Agent Bakery: HTTPSConnectionPool(host= CMK-SERVER’, port=443): Max retries exceeded with url: /Master-Site/check_mk/deploy_agent.py (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7f240ae9d090>: Failed to establish a new connection: [Errno 111] Connection refused’))
Retrying with fallback URL: https:// CMK-SERVER-B /INSTANZ-B/check_mk
Updated the certificate store “/var/lib/check_mk_agent/cas/all_certs.pem” with 5 certificate(s)
Target state (from deployment server):
Agent available: True
Signatures: 1
Target hash: a7cf13368ba1d602
Agent a7cf13368ba1d602 already installed.
Neues Zertifikat ==> Updater OK
openssl s_client -connect CMK-SERVER-B:443 -showcerts | egrep ‘s:|i:’
Connecting to IP-CMKSERVER-A
depth=2 C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA TLS RSA Root CA 2021
verify return:1
depth=1 C=GR, O=Hellenic Academic and Research Institutions CA, CN=GEANT TLS RSA 1
verify return:1
depth=0 C=DE, ST=Nordrhein-Westfalen, O=OOOOOOOOOO OOO, CN= CMK-SERVER-B
verify return:1
0 s:C=DE, ST=Nordrhein-Westfalen, O= OOOOOOOOOO OOO, CN= CMK-SERVER-A
i:C=GR, O=Hellenic Academic and Research Institutions CA, CN=GEANT TLS RSA 1
1 s:C=GR, O=Hellenic Academic and Research Institutions CA, CN=GEANT TLS RSA 1
i:C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA TLS RSA Root CA 2021
2 s:C=GR, O=Hellenic Academic and Research Institutions CA, CN=HARICA TLS RSA Root CA 2021
i:C=GR, L=Athens, O=Hellenic Academic and Research Institutions Cert. Authority, CN=Hellenic Academic and Research Institutions RootCA 2015
#$ cmk-update-agent -v
Updated the certificate store “/var/lib/check_mk_agent/cas/all_certs.pem” with 5 certificate(s)
±------------------------------------------------------------------+
| |
| Checkmk Agent Updater v2.3.0-2025.05.26 - Update |
| |
±------------------------------------------------------------------+
Getting target agent configuration for host ‘HOST-B’ from deployment server
Failed to connect to Agent Bakery: HTTPSConnectionPool(host=CMK-Server’, port=443): Max retries exceeded with url: /MASTER-SITE/check_mk/deploy_agent.py (Caused by NewConnectionError(‘<urllib3.connection.HTTPSConnection object at 0x7fb1d62de1d0>: Failed to establish a new connection: [Errno 111] Connection refused’))
Retrying with fallback URL: https://CMK-SERVER-B/INSTANZ-B/check_mk
Updated the certificate store “/var/lib/check_mk_agent/cas/all_certs.pem” with 5 certificate(s)
Target state (from deployment server):
Agent available: True
Signatures: 1
Target hash: a7cf13368ba1d602
Agent a7cf13368ba1d602 already installed.