An open API service indexing awesome lists of open source software.

https://github.com/PerryWerneck/libudjatusers

User/Session monitor and library for udjat.
https://github.com/PerryWerneck/libudjatusers

Last synced: 18 days ago
JSON representation

User/Session monitor and library for udjat.

Awesome Lists containing this project

README

        

# User/Session monitor and library for udjat.

[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
![CodeQL](https://github.com/PerryWerneck/udjat-module-users/workflows/CodeQL/badge.svg?branch=master)
[![build result](https://build.opensuse.org/projects/home:PerryWerneck:udjat/packages/udjat-module-users/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:PerryWerneck:udjat/udjat-module-users)

Watch active users sessions emitting UDJAT alerts (http call, script, etc) based on user's session events.

## Using agent

### Event names

* *Already active*: Session is active on startup
* *Still active*: Session still active on shutdown
* *Login*: User has logged in
* *Logout*: User has logged out
* *Lock*: Session was locked
* *Unlock*: Session was unlocked
* *Foreground*: Session is in foreground
* *Background*: Session is in background
* *sleep*: Session is preparing to sleep
* *resume*: Session is resuming from sleep
* *shutdown*: Session is shutting down
* *pulse*: Session is alive

### Examples

[Udjat](../../../udjat) service configuration to emit an alert on user logoff:

```xml










{"user":"${username}","macaddress":"${macaddress}"}


```