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
BedrockMission!

Learn More

View all

Sign in to view all badges

Monitoring OSGI Components

Avatar

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 10
Level 3
jkpanera
Level 3

Likes

17 likes

Total Posts

97 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 10
View profile
jkpanera
Level 3

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
View Entire Topic

Avatar

Avatar
Validate 1
MVP
Nirmal_Jose
MVP

Likes

118 likes

Total Posts

207 posts

Correct Reply

58 solutions
Top badges earned
Validate 1
Establish
Coach
Contributor
Shape 1
View profile

Avatar
Validate 1
MVP
Nirmal_Jose
MVP

Likes

118 likes

Total Posts

207 posts

Correct Reply

58 solutions
Top badges earned
Validate 1
Establish
Coach
Contributor
Shape 1
View profile
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...