I'm trying to monitor the number of logged in users into CAS. Ideally I would like to read that number from a log file or web service and send it to our service monitoring system (zabbix).
How can I get the number of current valid sessions?
See this link for more info please: http://jasig.github.io/cas/4.2.x/installation/Monitoring-Statistics.html
Related
On a user's page on the G Suite admin console, an admin can see the last login of a user. For example, one user I can see has a "last login" date of two years ago.
I'm trying to pull this date programatically. However, the Reports API that provides information on login events only goes back 180 days. How is Google getting this login date, and can it be fetched via API?
Google has this information because they are logging the event when it happens and storing that to present in the admin console. If you start to build an application now and start storing those events as time passes you too will have a date that goes back years. G Suite Enterprise customers can seamlessly do this if they Set up BigQuery logs in the Admin console.
You should be able to get this information now though. Look at the following APIs used in GAMADV-XTD you can get this info with this command for example.
gam report users parameters accounts:last_login_time filters "accounts:last_login_time<#filtertime#" filtertime -5y
https://developers.google.com/admin-sdk/reports/v1/reference/activities
https://developers.google.com/admin-sdk/reports/v1/reference/customerUsageReports
https://developers.google.com/admin-sdk/reports/v1/reference/userUsageReport
I somehow missed this before, but you can get the last login date/time with the User Usage Report (rather than the Login Activity report).
API docs are here and the App Script example I'm using is here. I realized that if GAM was pulling the information there had to be an API for it.
I am using Strophe js for ejabberd chat application.
how to
get last message of all user who all rostered with logged in user.
If you have mod_mam enabled and properly configured, it can store all the messages of all the users, and later you can request them, following https://xmpp.org/extensions/xep-0313.html
I am creating ejabberd xmpp client for charting similar to WhatsApp. Want to understand, how does WhatsApp sync contacts with server? How does WhatsApp find out all registered users with server and synchronise it with your address book?
This feature is not related to XMPP or ejabberd. If you want to detect contact of your user you need to implement that feature in a custom way.
You need to upload an anonymised version of the user address book with hash of phone number and email and store that on your server.
When another user with a phone number or email address matching that hashes join the service you can find who knows it and do operations to notify each parties that they are both using the service (and/or add them in roster for example).
So, this is a purely custom extension to ejabberd you will have to implement.
I am building a web chat application. I want to store the messages or conversations between two parties after every press of "Enter" button. I am using Openfire Server, and MySQL database. I don't see any tables from the database that stores the conversations.
Is there a plugins for that? thanks. I am using strophe js library to send messages. Thanks.
Conversations are only stored if the 'Conversation State Archiving' is enabled under Server-->Archiving-->Archiving Settings in your Openfire Admin Console, and 'Message Archiving' is enabled for either 'Archive one-to-one chats' and/or 'Archive group chats'. Thereafter, the messages are stored in the MySQL database table 'ofMessageArchive'.
This table contains an incrementally updated 'conversationID', UNIX timestamp, and JIDs of conversation participants.
Hope this helps!
You need a plug n for that "Monitoring Services" available under Plugin tab in your admin console. Install that plugin and boom, you are ready to go!
My requirement is :
Req 1. When my application start then it should get the User Availability (e.g Busy, meeting etc) for many user (>1000).
Req 2. My application should get the notification for change in User Availability.
I saw many discussions about push notification for getting User Availability when status changes in exchange server (2010). But I did not get any way from which I can use “Push notification” to get the User Availability for all users when Application start.