Monitor replication agent using New Relic

Avatar

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile
msina
Level 3

08-06-2018

Hi,

We are using New Relic for AEM instances monitoring (cpu,memory,disk,processe ,JVM etc..).Could you please suggest how can i monitor the replication agents using  new relic.Any one used any New Relic plugin or agent.I could not find any solution.

Thanks

Sina

Replies

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

08-06-2018

Hello Sina,

Did you take a look at this post - https://discuss.newrelic.com/t/checking-replication-agents-status-and-pending-count/13194 ?

Regards,

Vishu

Avatar

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile
msina
Level 3

08-06-2018

Hi Vishu,

I have seen this already but it down not say about any solution.

Thanks

Sina

Avatar

Avatar
Give Back 50
Employee
Kunwar
Employee

Likes

65 likes

Total Posts

253 posts

Correct reply

72 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Kunwar
Employee

Likes

65 likes

Total Posts

253 posts

Correct reply

72 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Kunwar
Employee

08-06-2018

You need to create your custom object for newrelic to consume replication JMX mbeans. See (1) to understand how to go about it.

Mbean to be consumed for replication would be (2)

(1) : Custom JMX instrumentation by YAML | New Relic Documentation

(2) : http://HOST:PORT/system/console/jmx/com.adobe.granite.replication:id="publish",type=agent

Avatar

Avatar
Validate 25
MVP
bsloki
MVP

Likes

182 likes

Total Posts

1,859 posts

Correct reply

545 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile

Avatar
Validate 25
MVP
bsloki
MVP

Likes

182 likes

Total Posts

1,859 posts

Correct reply

545 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
bsloki
MVP

08-06-2018

you should collect custom metrics for the same and as kunwar mentioned you can try with YAML.

Below are some URLs which might help

Custom JMX instrumentation by YAML | New Relic Documentation

Custom JMX YAML examples | New Relic Documentation

Avatar

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile
msina
Level 3

08-06-2018

Thanks Kunwar and bsloki.

Will try and see.

Avatar

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile
msina
Level 3

11-06-2018

When hit URL   http://auth01.cms.9c9media.net:4502/system/console/jmx/com.adobe.granite.replication:id="publish",ty...

get below response.

1506425_pastedImage_0.png

But in New Relic we don't get the attribute value as expected.Its showing more like below screenshot.e.g If i want to check QueueBlocked  value False/True and if True then generate an alert.

1506427_pastedImage_2.png

Our main goal is to monitor replication agents and create alert if any one of them stop working.How can we achieve that any suggestion.

Here is our yml file configurations:

name: AEM-JMX

version: 1.0

enabled: true

jmx:

  - object_name: com.adobe.granite.replication:id="publish",type=agent

    metrics:

      - attributes: QueueBlocked, Enabled, QueuePaused

        type: simple

  - object_name: com.adobe.granite.replication:id="publish",type=agent

    metrics:

      - attributes: QueueStatusTime, QueueNumEntries

        type: monotonically_increasing

Avatar

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile

Avatar
Give Back 10
Level 3
msina
Level 3

Likes

13 likes

Total Posts

52 posts

Correct reply

1 solution
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 3
View profile
msina
Level 3

31-07-2018

automatically monitor replication agent solution with nagios posted there .

Not using new relic for monitoring and alert.