Zabbix Share

Zabbix templates, modules & more
Log in
Choose social to login:
Login With Google
Login With Github

Nav view search

Navigation

Advanced Search
  • Applications
  • Cloud
  • Databases
  • Network Appliances
  • Network Devices
  • Official Templates
  • Operating Systems
    • Debian
    • FreeBSD
    • IBM i (i5/OS, OS/400) for IBM System i (AS/400)
    • Linux
    • Mac OS
    • macOS
    • RedHat
    • Security
    • Solaris
    • Ubuntu
    • VMWare
    • Windows
  • Power (UPS)
  • Printers
  • SCADA, IoT, Energy, Home Automation, Industrial monitoring
  • Server Hardware
  • Storage Devices
  • Telephony
  • Unsorted
  • Virtualization
  • Zabbix
  • Recently Added
  • Recently Updated
  • Popular
  • Most Rated
  • Top Rated
  • Most Reviewed

Template RDP Users Popular

  • 140.jpg

RDP Logged on Users

I use this template to check Users, that are logged on RDP sessions on Windows servers. It's not full audit, it's only for current view of logged-on users.

Template is really simple.It has only one Item and user parameter configured on monitored server.

User parameter in zabbix_agentd.conf: UserParameter=RDPUsers,"c:\zabbix\RDPUsers.cmd" Script RDPUsers.cmd:

@echo off

for /F "usebackq tokens=1,2,3,4,5*" %%i in (`qwinsta ^| find "Active"`) do (

    if "%%l" == "Active" ( echo %%j )

)

I was asked to enhance script for monitoring disconnected terminal users too. So this is my second version of script. Script adds "D:" before name for disconnecter users and "A: "for Active users. Script was tested only for English version of Windows server:

New script RDPUsers.cmd:

@echo off

for /F "usebackq tokens=1,2,3,4,5*" %%i in (`query user 2^>nul`) do (

    if "%%l" == "Active" ( echo A: %%i )

    if "%%k" == "Disc" ( echo D: %%i )

)

Rating
501
1 vote

Listing Details

Type
Template
OS
  • Microsoft Windows
Min Zabbix version
2.4.x
Features
  • Zabbix Agent Active
Created
2016-09-07
Modified
2018-02-27 12:26:55
Version 3.0
Download (4089 downloads)
1 version, '2016-09-07 07:27' modified
Owner
Alois Zadražil
RecommendReportOwner's listing
All resources created by third parties; use at your own risk
© 2001-2018 by Zabbix SIA. All rights reserved. Trademark Policy · Contact us