zabbix_export: version: '5.4' date: '2021-11-21T22:08:14Z' groups: - uuid: 57b7ae836ca64446ba2c296389c009b7 name: Templates/Modules templates: - uuid: 91b6b3aa613345258dd767b450ea9cf5 template: 'Module Windows users by Zabbix agent' name: 'Module Windows users by Zabbix agent' description: | ## Description Get a total of logged-in users in the system. ## Overview **Attach** this module with your **Template OS Windows by Zabbix agent** or the **Template OS Windows by Zabbix agent active**, and start to get the number of users that are logged in your Windows Server. This module shows the 'active users' and the 'disconnected users' (consuming system resources). This module works great with my [Grafana Dashboard](https://grafana.com/grafana/dashboards/5363), please take a look. Item details: For a very long time, I tried to get this done in Windows (Linux already comes with this monitoring out of the box), the only option I know was with 'Remote Commands', which can have some security problems, or the company doesn't want to enable, so I figured out how to do this with WMI. Please enjoy. ## Author Paulo Paim groups: - name: Templates/Modules items: - uuid: 01cd035da9d54b6191661efc88b8b6f8 name: 'Number of logged in users' key: 'wmi.getall[root\cimv2,select SessionId from Win32_Process where Name like ''%explorer.exe%'']' description: 'The number of users who are currently logged in.' preprocessing: - type: JSONPATH parameters: - $.length() error_handler: DISCARD_VALUE tags: - tag: Application value: General - uuid: 7c31991ed1fc4ddcb901fe53b0a357e8 template: 'Module Windows users by Zabbix agent active' name: 'Module Windows users by Zabbix agent active' description: | ## Description Get a total of logged-in users in the system. ## Overview **Attach** this module with your **Template OS Windows by Zabbix agent** or the **Template OS Windows by Zabbix agent active**, and start to get the number of users that are logged in your Windows Server. This module shows the 'active users' and the 'disconnected users' (consuming system resources). This module works great with my [Grafana Dashboard](https://grafana.com/grafana/dashboards/5363), please take a look. Item details: For a very long time, I tried to get this done in Windows (Linux already comes with this monitoring out of the box), the only option I know was with 'Remote Commands', which can have some security problems, or the company doesn't want to enable, so I figured out how to do this with WMI. Please enjoy. ## Author Paulo Paim ## Description Get a total of logged-in users in the system. ## Overview **Attach** this module with your **Template OS Windows by Zabbix agent** or the **Template OS Windows by Zabbix agent active**, and start to get the number of users that are logged in your Windows Server. This module shows the 'active users' and the 'disconnected users' (consuming system resources). This module works great with my [Grafana Dashboard](https://grafana.com/grafana/dashboards/5363), please take a look. Item details: For a very long time, I tried to get this done in Windows (Linux already comes with this monitoring out of the box), the only option I know was with 'Remote Commands', which can have some security problems, or the company doesn't want to enable, so I figured out how to do this with WMI. Please enjoy. ## Author Paulo Paim groups: - name: Templates/Modules items: - uuid: 8557d9bb2bb34416a282e2a703015639 name: 'Number of logged in users' type: ZABBIX_ACTIVE key: 'wmi.getall[root\cimv2,select SessionId from Win32_Process where Name like ''%explorer.exe%'']' description: 'The number of users who are currently logged in.' preprocessing: - type: JSONPATH parameters: - $.length() error_handler: DISCARD_VALUE tags: - tag: Application value: General