-
Notifications
You must be signed in to change notification settings - Fork 274
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
How can I add a new metric? #4996
Comments
Hello :) I'm not sure I understand exactly what you mean by converting certificate expiration in a metric? Would you like to apply thresholds etc on it?
I'm not sure how this option works or how it is supported, maybe you could show us an example output with this option (and with the --debug option)? |
Hi, let me rephrase. I would like to have the remaining certificate's validity days returned as performance data. Here the debug output (I removed the check of subjects because it is a test server):
I am trying to have the |
Hello :) Okay I understand your need, and based on my understanding I am not sure that the |
Hello,
I noticed plugin
apps::protocols::x509::plugin
has no perfdata, while I think having the remaining expiration of a certificate as a metric can be a useful. Therefore, I tried to use--extend-perfdata
to add variableexpiration
as a metric, but I am unable to do so, and I am also unable to find documentation about it. Can you help me in finding a way to add%{expiration}
as a perfdata?For reference, my command line:
The text was updated successfully, but these errors were encountered: