Expand my Community achievements bar.

SOLVED

Monitoring OSGI Components

Avatar

Level 5

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!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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... 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

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...