This extension monitors the SSL certificates for configurable domains. This extension should be used with standalone Java Machine Agents.
<MACHINE_AGENT_HOME>/monitors
.Please place the extension in the "monitors" directory of your Machine Agent installation directory. Do not place the extension in the "extensions" directory of your Machine Agent installation directory.
Note
Please make sure to not use tab (\t) while editing yaml files. You may want to validate the yaml file using a yaml validator
Configure the domains by editing the config.yml file in <MACHINE_AGENT_HOME>/monitors/SslCertificateMonitor/
.
#This will create this metric in all the tiers, under this path
metricPrefix: "Custom Metrics|SslCertificate"
#This will create it in specific Tier. Replace <TIER_ID>
#metricPrefix: Server|Component:<TIER_ID>|Custom Metrics|SslCertificate
domains:
- domain: "www.google.com"
port: 443
displayName: "Google"
- domain: "www.ebay.com"
port: 443
displayName: "eBay"
- domain: "www.amazon.com"
port: 443
displayName: "amazon"
# Point to .sh for unix based and .bat for windows.
# Incase if you are using Cygwin's openssl, please make sure to change the openssl.bat to point to Cygwin's openssl.
# For eg. echo | C:\Cygwin64\bin\openssl s_client -connect %1:%2 2> null | C:\Cygwin64\bin\openssl x509 -noout -enddate
cmdFile: "monitors/SslCertificateMonitor/cmd/openssl.sh"
#cmdFile: "monitors\\SslCertificateMonitor\\cmd\\openssl.bat"
#### Configurations below this need not be changed.###
# number of concurrent tasks
numberOfThreads: 10
#timeout for the thread
threadTimeout: 5
Configure the path to the config.yml file by editing the in the monitor.xml file in the <MACHINE_AGENT_HOME>/monitors/SslCertificateMonitor/
directory.
You can also change the frequency at which the MachineAgent calls the extension by changing the in monitor.xml. Below is the sample
<task-arguments>
<!-- config file-->
<argument name="config-file" is-required="true" default-value="monitors/SslCertificateMonitor/config.yml" />
</task-arguments>
On Windows, please specify the absolute path to the config.yml.
If needed, configure the openssl command in the cmdFile pointed by config.yml.
Workbench is an inbuilt feature provided with each extension in order to assist you to fine tune the extension setup before you actually deploy it on the controller. Please review the following document on How to use the Extensions WorkBench.
Please follow the steps listed in this troubleshooting-document in order to troubleshoot your issue. These are a set of common issues that customers might have faced during the installation of the extension.
Verify Machine Agent Data: Please start the Machine Agent without the extension and make sure that it reports data.
Verify that the machine agent status is UP and it is reporting Hardware Metrics.
config.yml: Validate the file here.
The config cannot be null: This usually happens when on a windows machine in monitor.xml you give config.yml file path with linux file path separator /
. Use Windows file path separator \
e.g. monitors\SSLMonitor\config.yml
. On Windows, please specify absolute file path.
Metric Limit: Please start the machine agent with the argument -Dappdynamics.agent.maxMetrics=5000 if there is a metric limit reached
error in the logs. If you don't see the expected metrics, this could be the cause.
Always feel free to fork and contribute any changes directly here on GitHub.
Name | Version |
---|---|
Extension Version | 3.0.2 |
Last Update | 14/12/2021 |
Note: While extensions are maintained and supported by customers under the open-source licensing model, they interact with agents and Controllers that are subject to AppDynamics’ maintenance and support policy. Some extensions have been tested with AppDynamics 4.5.13+ artifacts, but you are strongly recommended against using versions that are no longer supported.
Owner
Contributors
Categories
Products
AppDynamicsProgramming Languages
JavaLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community