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
Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Interesting question. I have only ever done so manually follownig this doc -- Replication
I am asking internally as well
Views
Replies
Total Likes
There is also the high-level health check which is not agent-specific:
org.apache.sling.healthcheck:type=HealthCheck,name=replicationQueue
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies