What is a valid URL for validating Confluence is healthy?

We want to run Confluence behind a reverse proxy.  In order to do so we need to tell the proxy what URL it can use to validate Confluence is running and healthy.  For JIRA there is a /status URL path for this but I haven't found anything for Confluence.

4 answers

1 accepted

1 vote
Accepted answer

This seems to work as the URL for healthcheck:

/login.action?os_destination=%2Fdashboard.action

 

Anyone think of a reason this isn't a good idea long term?

why not just /login.action ? why do you need to have a "redirect" to dashboard.action?

That seemed to work as well! I was just copying what was in the browser URL at the time.

1 vote

Hi Troy, 

 

Correct me if I'm wrong, but you want to check the Confluence's URL to check if it have failed, right? 

I believe the correct url to be used on this environment should be the external URL of Confluence.

You can use a monitoring software to check it for you since there isn't a native way to do it on Confluence. One software which do it is Nagios and another one is Zabbix.

Another simple way would be you create a script to ping the external URL of Confluence and check if it is answering or not. For example, a simple shell script would be like:

#!/bin/bash
DATA=`date +%d/%m/%Y`
HORA=`date +%H:%M`
ping -c 15 -w 30 http://confluence.your_domain.com
if [ $? -ne 1 ] ; then
echo "Link's up..." ; else
echo "Link's failed..."
mail -s "Link has failed at $DATA - $HORA" root@localhost < /root/warning
fi

 

Hope it helps, 

Renato Rudnicki

 

ping will not be 100% correct, as you may have your confluence behind apache or some other server (and confluence could be down, while front server is up)...

The test URL for Confluence is the same as the one for JIRA, http://host.domain.com/context/status (http://host.domain.com/wiki/status) this page returns a test string with status.

Well, this isn't answered after all! sad

Checking for "/login.action" only works after a successful login.  So I have to log into Confluence directly and then the health check starts working.

Doesn't this seem odd?

What do you mean "only works after a successful login"? The url does not require any authentication...

Disregard. This was simply due to the fact that Confluence was starting properly only my test instance when the appliance restarted.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,099 views 17 14
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you