Expand my Community achievements bar.

SOLVED

Publish and Author disponibility

Avatar

Level 2

Hello,

To monitor Adobe Publish and Author instance, we would like to have a command that can tell us if those instances are up and running. We don't want to use CURL because we don't want to be impacted by Apache.

Reading the documentation, I have found this :

You can also stop and start AEM from the command line. Assuming you have already installed the instance for the first time, the command-line scripts are located here:

<aem-install>/crx-quickstart/bin/

This folder contains the following Unix bash shell scripts:

  • start: Starts the instance
  • stop: Stops the instance
  • status: Reports the Status of the instance
  • quickstart: Used to configure start information, if necessary.

So we tried it :

sudo -u aemadm ./status

and we get the following output :

06.01.2016 10:25:51.195 *INFO * [main] Setting sling.home=. (command line)

06.01.2016 10:25:51.318 *INFO * [main] Sent 'status' to /127.0.0.1:44422: OK

What are the values for the status ?

what do we have if something went wrong ? ERROR, KO, FATAL ?

thanks a lot

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

this command only checks for the availability of the Java process, it doesn't do any kind of checking of certain functionality inside of AEM is available. If you want to check these, the probably easiest way is to use Sling Healthchecks, which can be queried using JMX.

Jörg

View solution in original post

2 Replies

Avatar

Level 10

"what do we have if something went wrong ? ERROR"

The best thing to do is check the log file. It will provide information as to why the server did not start. 

Did the servers start when you executed the start script? 

Avatar

Correct answer by
Employee Advisor

Hi,

this command only checks for the availability of the Java process, it doesn't do any kind of checking of certain functionality inside of AEM is available. If you want to check these, the probably easiest way is to use Sling Healthchecks, which can be queried using JMX.

Jörg