automatically monitor replication agent | Community
Skip to main content
msina
Level 3
July 31, 2018
Solved

automatically monitor replication agent

  • July 31, 2018
  • 3 replies
  • 1935 views

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.

Any suggestion ?

regards

Sina

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by msina

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

3 replies

smacdonald2008
Level 10
July 31, 2018

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

I am asking internally as well

Adobe Employee
July 31, 2018

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

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

msina
msinaAuthorAccepted solution
Level 3
July 31, 2018

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