Watch active users sessions emitting UDJAT alerts (http call, script, etc) based on user's session events.
- 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
Udjat service configuration to emit an alert on user logoff:
<?xml version="1.0" encoding="UTF-8" ?>
<config log-debug='yes' log-trace='yes'>
<!-- The HTTP module implements the http client backend -->
<module name='http' required='yes' />
<!-- Implements user's monitor -->
<module name='users' required='yes' />
<!-- Declare an user monitor agent -->
<users name='users' update-timer='60'>
<!-- The XML text block contains the post payload -->
<alert name='logout' event='logout' max-retries='1' action='post' url='http://localhost'>
{"user":"${username}","macaddress":"${macaddress}"}
</alert>
</users>
</config>