Ad Widget

Collapse

Install Zabbix agent 2 v6.0.19 on Windows machines +500 using group policy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vijaymydam
    Junior Member
    • Jul 2023
    • 3

    #1

    Install Zabbix agent 2 v6.0.19 on Windows machines +500 using group policy

    Hello Experts, i have recently installed Zabbix proxy(RHEL) now the pending task is to install the Zabbix agent 2 v6.0.19 on + 500 windows servers through group policy, could someone help me or provide instructions how we can achieve this.
    encryption to be used(PSK) as well from Windows Agent to Zabbix proxy server.

    ​Thank you.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Not really a zabbix question.. https://learn.microsoft.com/en-us/tr...stall-software

    Comment

    • vijaymydam
      Junior Member
      • Jul 2023
      • 3

      #3
      Thank you for your response, i tried deploying using group policy howerver it got failed with message "Please enter the name or IP address in the Zabbix server IP/DNS field or set SERVER variable on command line !"

      Comment

      • SPG-DK11
        Junior Member
        • Jul 2023
        • 4

        #4
        Originally posted by vijaymydam
        Thank you for your response, i tried deploying using group policy howerver it got failed with message "Please enter the name or IP address in the Zabbix server IP/DNS field or set SERVER variable on command line !"
        Heya, when using the default GPO software install pushes it'll need a reboot before it appears, so what we did was create a immediate scheduled task to install it instead, so it does not need a reboot.

        1. Create a group policy
        2. Go to Computer Configuration > Preferences > Control Panel Settings > Scheduled Tasks
        3. Right Click > New > Immediate Task (At least Windows 7)
        4. Fill in a name, description of needed
        5. Run under NT AUTHORITY\System
        6. Run whether user is logged on or not
        7. Run with highest privileges
        8. Hidden
        9. Create action, Program/Script: C:\Windows\System32\WindowsPowerShell\v1.0\powersh ell.exe
        Just point to your PowerShell executable.
        10. Arguments: -executionpolicy bypass -command "$hostname = [System.Net.Dns]::GetHostByName($env:computerName).HostName;msiexe c /i "PATH TO YOUR MSI ON NETWORK SHARE" /qn /norestart ENABLEPATH=1 SERVER=SERVERSHERE LISTENPORT=LISTENPORTHERE SERVERACTIVE=SERVERSHERE TLSCONNECT=psk TLSACCEPT=psk TLSPSKVALUE=VALUEHERE TLSPSKIDENTITY=PSKIDENTITYHERE HOSTNAME=$hostname HOSTMETADATA=HOSTMETADATAHERE"

        Don't forget to change these values:
        1. PATH TO YOUR MSI ON NETWORK SHARE > define a network share here accessible for all your windows hosts, for example a netlogon share
        2. SERVERSHERE > Change both of these instances to your Zabbix server(s) comma separated if using multiple (HA)
        3. LISTENPORTHERE > Define the listenport you are using (Default is 10050)
        4. VALUEHERE > Define your PSKvalue here if using PSK encryption, otherwise remove this.
        5. PSKIDENTITYHERE > Define your PSK Identity here if using PSK encryption, otherwise remove this.
        6. HOSTMETADATAHERE > Define your Host metadata here, if not using metadata remove this

        If not using PSK encryption, also remove the TLSCONNECT and TLSACCEPT variables from the install command.


        This should instantly install the zabbix agent on your Windows devices.

        Comment

        • vijaymydam
          Junior Member
          • Jul 2023
          • 3

          #5
          Thank you very much, this worked!! instead immediate task, created schedule task to run onetime (agents are not rebooted).

          Comment

          Working...