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

automatically monitor replication agent

msina
Level 4
Level 4

Hi,

Is there anyone monitor replication agent automatically and sent alerts for any abnormal states.Please share the steps/solution you used.

We are using AEM 6.4 and trying to monitor replication agent using any JMX plugin for example check_jmx plugin for nagios.

We have installed the check_jmx plugin in our monitor server and enable JMX connection in AEM server.

Now when testing from our monitoring server with below command we don't get expected attribute value which is true or false.

[root@MONITOR01 libexec]#  ./check_jmx -U service:jmx:rmi:///jndi/rmi://auth01:9000/jmxrmi -O com.adobe.granite.replication:type=agent,id="publish" -A QueueBlocked

JMX CRITICAL - com.adobe.granite.replication:type=agent,id=publish

But when we tried to check BackupReslut we get the expected value.Like this we wanted to check whether replication agent enabled true or false ,QueueBlocked true or false etc.

[root@MONITOR01 libexec]# ./check_jmx -U service:jmx:rmi:///jndi/rmi://auth01:9000/jmxrmi -O com.adobe.granite:type=Repository -A BackupResult

JMX OK - BackupResult=Backup completed

Please note that JMX started with port 9000 in our setup.

1539159_pastedImage_0.png

1539160_pastedImage_1.png

Any suggestion ?

regards

Sina

1 Accepted Solution
msina
Correct answer by
Level 4
Level 4

Hi,

we got the solution from here  java - JMX: Read attribute from Server - Stack Overflow .

[root@MONITOR01 libexec]# ./check_jmx -U service:jmx:rmi:///jndi/rmi://auth01:9000/jmxrmi -O com.adobe.granite.replication:type=agent,id=\"publish\" -A QueueBlocked

JMX OK - QueueBlocked=false

Monitoing in nagios

Screen Shot 2018-07-31 at 4.41.17 PM.png

View solution in original post

3 Replies
smacdonald2008
Level 10
Level 10

Interesting question. I have only ever done so manually follownig this doc -- Replication

I am asking internally as well

shunnar
Employee
Employee

There is also the high-level health check which is not agent-specific:

org.apache.sling.healthcheck:type=HealthCheck,name=replicationQueue

msina
Correct answer by
Level 4
Level 4

Hi,

we got the solution from here  java - JMX: Read attribute from Server - Stack Overflow .

[root@MONITOR01 libexec]# ./check_jmx -U service:jmx:rmi:///jndi/rmi://auth01:9000/jmxrmi -O com.adobe.granite.replication:type=agent,id=\"publish\" -A QueueBlocked

JMX OK - QueueBlocked=false

Monitoing in nagios

Screen Shot 2018-07-31 at 4.41.17 PM.png