Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

automatically monitor replication agent

Avatar

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

Avatar

Correct answer by
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

Avatar

Level 10

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

I am asking internally as well

Avatar

Employee

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

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

Avatar

Correct answer by
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