automatically monitor replication agent

msina

31-07-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

msina

31-07-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

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