Ad Widget

Collapse

RDP collection failed

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Glauber55
    Junior Member
    • Mar 2023
    • 11

    #1

    RDP collection failed

    Good afternoon !

    I'm new to the zabbix world, I'm trying to collect the RDP sessions from the server and I'm not able to obtain the collection data in my zabbix. In my research I found documentation teaching step by step, but nothing works correctly.

    Link: https://github.com/iSmartyPRO/zabbix...rdp_monitoring


    thank you !
    Attached Files
    Last edited by Glauber55; 16-08-2024, 18:33.
  • Answer selected by Glauber55 at 21-08-2024, 05:51.
    vijayk
    Senior Member
    • May 2023
    • 305

    Glauber55 Please check with below key if it works in version 6.2. I'm running with 7.0 and its working perfect.
    Click image for larger version

Name:	image.png
Views:	168
Size:	13.4 KB
ID:	489797

    Comment

    • vijayk
      Senior Member
      • May 2023
      • 305

      #2
      Which version of Zabbix server and agent are you using?

      Comment


      • Glauber55
        Glauber55 commented
        Editing a comment
        Server:
        zabbix_server (Zabbix) 6.2.6

        Agent:
        Starting Zabbix Agent [RADAR]. Zabbix 6.0.32
    • Glauber55
      Junior Member
      • Mar 2023
      • 11

      #3
      I have performed the following steps as per the documentation and images attached now.

      But it didn't work.

      After installation, copy the folder C:\Users\YourUser\Documents\WindowsPowerShell\modu les\PSTerminalServices\
      Paste the PSTerminalServices folder into C:\Windows\System32\WindowsPowerShell\v1.0\Modules \

      Is there another easier way for me to collect RDP Windows Server 2012 sessions?
      Attached Files

      Comment

      • Brambo
        Senior Member
        • Jul 2023
        • 245

        #4
        I believe you can get the who is logged in by running:
        Code:
         query user /server:Localhost
        Not sure if it works on user level or that you need admin.
        With a discovery rule you can than monitor every user who was logged in or not State active is logged in, Disconnected is not connected but also didn't use logoff ...
        Then create a calculated item which calculated every State Active and you have best of all worlds

        Comment

        • vijayk
          Senior Member
          • May 2023
          • 305

          #5
          Glauber55 Please check with below key if it works in version 6.2. I'm running with 7.0 and its working perfect.
          Click image for larger version

Name:	image.png
Views:	168
Size:	13.4 KB
ID:	489797

          Comment

          • t00m1G
            Junior Member
            • Jan 2024
            • 26

            #6
            Originally posted by Glauber55
            Good afternoon !

            I'm new to the zabbix world, I'm trying to collect the RDP sessions from the server and I'm not able to obtain the collection data in my zabbix. In my research I found documentation teaching step by step, but nothing works correctly.

            Link: https://github.com/iSmartyPRO/zabbix...rdp_monitoring


            thank you !
            Hey,

            What template are you using for that host? This provided on linked GitHub repo?

            Comment

            • Glauber55
              Junior Member
              • Mar 2023
              • 11

              #7
              Originally posted by t00m1G

              Hey,

              What template are you using for that host? This provided on linked GitHub repo?
              yes correct, I am using the same template provided from the GitHub repository for this host.

              Comment

              • t00m1G
                Junior Member
                • Jan 2024
                • 26

                #8
                Glauber55
                So I think issue might be here, as I can see this template uses some of I think non compatible keys in it,
                Please try changing keys to those:
                Active users: from "rdp.terminal.server[ACTIVE]" change it to: perf_counter[\Terminal Services\Active Sessions]
                Inactive users: from "rdp.terminal.server[INACTIVE]" change it to: perf_counter[\Terminal Services\Inactive Sessions]
                I've got them from perfmon.msc, but since I do not have instance of win2012 around me I have only those two which I've gathered from Win11.
                please check if changing those two will make any difference.

                Comment

                Working...