Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Monitoring OSGI Components

jkpanera
Level 5
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
Nirmal_Jose
Correct answer by
Community Advisor
Community 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

0 Replies
Nirmal_Jose
Correct answer by
Community Advisor
Community 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