Monitoring OSGI Components

Avatar

Avatar

jkpanera

Avatar

jkpanera

jkpanera

18-09-2020

Hi guys,

 

We would like to monitor our OSGI components (possibly using JMX) so that if one fails to start, we will be notified. Could someone point us in the right direction?

 

Thanks!

monitoring osgi

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Nirmal_Jose

MVP

Avatar

Nirmal_Jose

MVP

Nirmal_Jose
MVP

18-09-2020

Hi @jkpanera ,

 

There is already a sling health check for active bundles. If there are any inactive bundles other than mentioned in the InactiveBundlesHealthCheck configuration, it will show up the status there. You can see the JMX for the same at [1]. You can access the healthcheck at [2] or that as a JSON endpoint at [3]

 

[1] - http://localhost:4502/system/console/jmx/org.apache.sling.healthcheck%3Aname%3DinactiveBundles%2Ctyp...

[2] - http://localhost:4502/libs/granite/operations/content/healthreports/healthreport.html/system/sling/m... 

[3] - http://localhost:4502/system/sling/monitoring/mbeans/org/apache/sling/healthcheck/HealthCheck/inacti... 

Answers (0)