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

[apps::protocols::x509] --custommode='file' on Windows Server #5422

Closed
SavCent opened this issue Feb 4, 2025 · 1 comment
Closed

[apps::protocols::x509] --custommode='file' on Windows Server #5422

SavCent opened this issue Feb 4, 2025 · 1 comment

Comments

@SavCent
Copy link

SavCent commented Feb 4, 2025

Hi,
we try to get certificat expiration from Windows server 2022 with x509 plugin.

We encounter the error :
Unknown option: hostname at /usr/lib/centreon/plugins//centreon_protocol_x509.pl line 1294.

When we do this from the poller:
/usr/lib/centreon/plugins//centreon_protocol_x509.pl --plugin=apps::protocols::x509::plugin --mode=certificate --custommode='file' --hostname='1.2.3.4' --port=443 --warning-status='%{expiration} < 60' --critical-status='%{expiration} < 30' --certificate='E:\FOLDER\myCertificat.pem'

@omercier
Copy link
Contributor

omercier commented Feb 6, 2025

Hi @SavCent,
This custom mode is intended to check a local certificate, meaning on the Linux server where it runs (the poller or the Linux host you are monitoring using SSH or NRPE).
You cannot reach a Windows file system with it.

@SavCent SavCent closed this as completed Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants