[monitoring-plugins] change error message for missing certificate
Andre Klärner
git at monitoring-plugins.org
Mon Mar 17 20:30:12 CET 2025
Module: monitoring-plugins
Branch: master
Commit: ef3045b97eea23a4dec3197277e5ff4e5afc5c71
Author: Andre Klärner <kandre at ak-online.be>
Date: Mon Mar 17 16:13:46 2025 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=ef3045b9
change error message for missing certificate
The old error message is quite similar to the openssl `failed to retrieve issuer certificate` and can mislead users to troubleshooting certificate stores.
The new message should be distinct enough to make it clear to users that this is not a problem raised by the underlying SSL implementation, but a problem inside monitoring-plugins.
---
plugins/sslutils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/sslutils.c b/plugins/sslutils.c
index 719de575..96740b3a 100644
--- a/plugins/sslutils.c
+++ b/plugins/sslutils.c
@@ -201,7 +201,7 @@ int np_net_ssl_check_certificate(X509 *certificate, int days_till_exp_warn, int
time_t tm_t;
if (!certificate) {
- printf("%s\n", _("CRITICAL - Cannot retrieve server certificate."));
+ printf("%s\n", _("CRITICAL - No server certificate present to inspect."));
return STATE_CRITICAL;
}
More information about the Commits
mailing list