Monitor replication agent using New Relic

Avatar

Avatar

msina

Avatar

msina

msina

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

Highlighted

Avatar

Avatar

Vish_dhaliwal

Employee

Avatar

Vish_dhaliwal

Employee

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

Highlighted

Avatar

Avatar

msina

Avatar

msina

msina

08-06-2018

Hi Vishu,

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

Thanks

Sina

Highlighted

Avatar

Avatar

Kunwar

Employee

Avatar

Kunwar

Employee

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

Highlighted

Avatar

Avatar

bsloki

MVP

Total Posts

1.9K

Likes

170

Correct Answer

544

Avatar

bsloki

MVP

Total Posts

1.9K

Likes

170

Correct Answer

544
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

Highlighted

Avatar

Avatar

msina

Avatar

msina

msina

08-06-2018

Thanks Kunwar and bsloki.

Will try and see.

Highlighted

Avatar

Avatar

msina

Avatar

msina

msina

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

Highlighted

Avatar

Avatar

msina

Avatar

msina

msina

31-07-2018

automatically monitor replication agent solution with nagios posted there .

Not using new relic for monitoring and alert.