Extracting number of logged-in users for an external monitoring system

We need to monitor the number of logged-in users for several Atlassian products, most importantly Confluence, Jira and Stash. These numbers need to be fed into an external monitoring system (like xymon, Zabbix or similar). How would we best do that, keeping in mind that our Crowd installation has hit a problem and had to be switched to in-memory storage of SSO tokens?

1 answer

1 accepted

This widget could not be displayed.

Hi,

For Jira:

You can capture rate of successfull logins with LOG file reader agent for your monitoring system. Then you can write triggers - for example >100 logins in last 10 minutes.

You should read file atlassian-jira-security.log and count phrases "has PASSED authentication."

BR, Andris.

Hi Andris, thanks for the hint! Looking at it, I was wondering if it also logged sessions that become invalid due to a user closing the web browser and clearing their state. Do you happen to know if that is the case? So, for any given point in time, would counting the number of sessions that are logged as "created" but not "closed" reflect the user number correctly, or would I miss those users that only closed their browsers?

I'm not sure if it logs logouts. Probably if you rise log level....

Another option which you can consider is logging open connections to jira/confluence - you can use similar syntax:

netstat -apn|grep ESTABLISHED| grep java|wc -l

Hm, you're right, that might be more pragmatical... Thanks for the hint!

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

155 views 2 0
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