munkireport / user_sessions
User_sessions module for munkireport.
Installs: 9 307
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 4
Open Issues: 0
This package is auto-updated.
Last update: 2024-10-26 19:00:08 UTC
README
Gathers logins, logout, shut downs, and reboots on the client computer. The widget shows all events and the count listing shows them only for the past year.
Configuration
User Sessions module will by default log all events. To skip some events, set the events that you want to skip to be false. By default the module also saves historical data. To disable this, set the user_sessions_keep_historical
key to false. The configuration can be set by adding them to the server environment variables or the .env
file.
user_sessions_save_remote_ssh=TRUE;
user_sessions_save_login=TRUE;
user_sessions_save_logout=TRUE;
user_sessions_save_reboot=TRUE;
user_sessions_save_shutdown=TRUE;
user_sessions_keep_historical=TRUE;
user_sessions_unique_users_only=FALSE;
Table Schema
Database:
- event - varchar(255) - event type
- time - int - UNIX time of event occurrence
- user - varchar(255) - user name associated with event
- ssh_remove - varchar(255) - IP address of the remote SSH user
Module by @tuxudo, script by @clburlison and @pudquick (frogor)