Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x509 loosing hosts #239

Open
slalomsk8er opened this issue May 7, 2024 · 3 comments
Open

x509 loosing hosts #239

slalomsk8er opened this issue May 7, 2024 · 3 comments
Labels
dev-call Issues and Pull Requests to be discussed at the Dev Call.

Comments

@slalomsk8er
Copy link
Contributor

slalomsk8er commented May 7, 2024

Describe the bug

I get regularly Unknown for x509 checks with the reason "Host not found"

To Reproduce

  1. create a director import
  2. wait
  3. observe periodical unknowns

Expected behavior

Hosts don't vanish and reappear.

Screenshots

If applicable, add screenshots to help explain your problem.

image
image
image
image

Your Environment

  • Icinga Web 2 version and modules (System - About): 2.12.1 & 1.3.1
  • Icinga 2 version used (icinga2 --version): r2.14.2-1
  • PHP version used (php --version): PHP 8.0.30
  • Server operating system and version: AlmaLinux 8.9
@blueman70
Copy link

BUG DESCRIPTION IN ORDER TO CONFIRM SAME PROBLEM
I got same issue but using "icingacli", without director.
Checking manually with command icingacli x509 check host --ip xxx.xxx.xxx.xxx (or --host, or etc etc)
or others results always: UNKNOWN - Host not found
No other errors messages found.

ENVIRONMENT

  • Icinga Web 2 version and modules (System - About): 2.12.1 & 1.3.2 (latest x509)
  • Icinga 2 version used (icinga2 --version): r2.14.2-1
  • PHP version used (php --version): PHP 8.3.7
  • Server operating system and version: Ubuntu 22.04.4 LTS (jammy)

Some suggestion about it?
Thx in advance!!!

@blueman70
Copy link

ANSWERING MYSELF - SOLVED ISSUE
The Icinga docs about x509 module is not so clear (maybe for me but....???).
In order to retrieve the correct certificate for a specific host (or subnet), you need to create a JOB with a icingaweb gui under Certificate Monitoring/Configuration/Jobs and scan JOB (manually or scheduled) in order to acquire data.

In this example I ran a scan to www.apple.com [23.14.136.246]
after scanning all certificates are showed on the gui

apple-cert

Hope to be clear and help your issue.

BR

@slalomsk8er
Copy link
Contributor Author

@blueman70 Thanks for your input.
Sadly no help for my issue as the director import created the service from already detected FQDN/IP:port triplets and subsequent job runs loose the triplet and rediscover them.

@lippserd lippserd added the dev-call Issues and Pull Requests to be discussed at the Dev Call. label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-call Issues and Pull Requests to be discussed at the Dev Call.
Projects
None yet
Development

No branches or pull requests

3 participants