We are searching for a way to get the latest known (scanned/collected/...) logged on users in SCOM (1801). For every device in SCOM, we quickly want to see who were the latest logged on users. Even if a server is not available anymore, we want to know who was logged just before the crash or connection loss.
What we don't want:
- Collect all logon/logoff events. We are not interested in the history and don't want to waste space in the database. You still have to do a calculation on the event (search the users without logoff). We only want the latest logged on users without history.
- Create a monitor if there are users logged on. We want to know exactly who is logged in (domain + username).
- Extend the Computer-class with a property 'LoggedOnUsers' and add this information with a discovery. This would be possible, but this property will be discovered very frequently. Every change would launch a configuration reload and we want to avoid this. If we could ignore the configuration reload, this would be the best scenario.
- Import all the users as objects in SCOM. This would mean: all domain user; all trusted domain users; all local users of every devices... Not possible. Create a task and get the logged on users on the fly. If a server is down, we still want to know the latest logged on users.
- Use SCCM (Configuration Manager) for this, because it should be live data (as live as possible).
In my opinion it should look like a property of a computer/device-class, but without the history or configuration reloads. Or a monitor without pre-definied error/warning/... state, but a custom text state (=logged on users).
We also use the SCOM-data in other (custom) applications via SQL-queries on the OperationsManager(DW) databases. If the data is available in the database, exporting it with a SQL-query is no problem. If we get the information in a SQL query, it would also be possible to search the devices where a specific user is logged on.
The method shouldn't be limited to logged on users only. A solution can also apply to other kinds of data.
Does anybody have an idea on how to do this?