Ad Widget

Collapse

Creating Zabbix Proxy on a windows server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZSQLDBA
    Junior Member
    • Oct 2021
    • 1

    #1

    Creating Zabbix Proxy on a windows server

    I have a client that is using an all windows environment and I need to install a Zabbix proxy on a windows server( I have been using Linux servers for proxies with other clients).

    Has anyone figured out how to create a Zabbix proxy on a windows server? Is that even possible?

    I'm using Zabbix Version 5.4 and Windows Server 2016.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Only Zabbix agent can run on Windows. Zabbix proxy can run only on UNIX-like OS such as Linux.

    Comment

    • Piotrekzielony
      Junior Member
      • Oct 2021
      • 17

      #3
      Originally posted by ZSQLDBA
      I have a client that is using an all windows environment and I need to install a Zabbix proxy on a windows server( I have been using Linux servers for proxies with other clients).

      Has anyone figured out how to create a Zabbix proxy on a windows server? Is that even possible?

      I'm using Zabbix Version 5.4 and Windows Server 2016.
      I'm using WSL in windows to install ubuntu with zabbix proxy - so it is possible

      Comment

      • knightwolf8877
        Junior Member
        • Sep 2021
        • 20

        #4
        would you like a run sheet on how to install it on windows using wsl2?

        Comment

        • Piotrekzielony
          Junior Member
          • Oct 2021
          • 17

          #5
          i've never tried wsl2.

          I have it on 1st ver from

          Comment


          • ZSQLDBA
            ZSQLDBA commented
            Editing a comment
            Thank you for the link. I have seen this before but it mentioned Windows Server 2019. I'm not sure if this will work on previous versions.

            Your input is definitely appreciated.
        • Piotrekzielony
          Junior Member
          • Oct 2021
          • 17

          #6
          Originally posted by Piotrekzielony
          i've never tried wsl2.

          I have it on 1st ver from
          http://www.solutioning.eu/2019/05/08...xy-on-windows/
          I've got it on windows 10 Pro at the minute. I had a few issues with the firewall but other than that it's working nicely

          Comment


          • Rafael P Oliveira
            Rafael P Oliveira commented
            Editing a comment
            which issues did you had with the firewall ? im getting this error
            17792:20240603:160554.172 Unable to connect to [server ip]:10051 [cannot connect to [server ip]:10051]: [111] Connection refused]
            17792:20240603:160554.172 Will try to reconnect every 120 second(s)
            17803:20240603:160554.178 Unable to connect to [server ip]:10051 [cannot connect to [server ip]:10051]: [111] Connection refused]
            17803:20240603:160554.178 Will try to reconnect every 1 second(s)
            17803:20240603:160654.268 Still unable to connect...
            17797:20240603:160721.673 cannot send list of active checks to "127.0.0.1": host [DESKTOP-4HNUJHF] not found
            17792:20240603:160754.272 Still unable to connect...
            17803:20240603:160754.341 Still unable to connect...
            in server ip i have dns of my server , and i dont understand why i have my localhost and my host appearing in error since its not on my configuration file
        • knightwolf8877
          Junior Member
          • Sep 2021
          • 20

          #7
          I used this to install wsl2
          The most recent version of the Windows Subsystem for Linux is a significant upgrade; for most, and it's now easier than ever to install.


          then install ubuntu via the windows store (yeh I know but it works and easy to keep updated)
          1. Install the latest zabbix repository
          2. current latest - wget https://repo.zabbix.com/zabbix/5.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.4-1+ubuntu20.04_all.deb
          3. dpkg -i zabbix-release_5.4-1+ubuntu20.04_all.deb
          4. apt update


          Install
          1. sudo apt install -y zabbix-proxy-sqlite3 zabbix-agent2 zabbix-sender zabbix-get
          2. Edit the config file
            1. Sudo nano /etc/zabbix/zabbix-proxy.conf
          3. Set
            1. ProxyMode=0
            2. Dbname=/tmp/zabbix_proxy.db
            3. ProxyOfflineBuffer=120
          4. Restart computer
          5. Set WLS to auto start

          Sudo nano /etc/init-wsl
          #!/bin/sh
          echo initializing services
          service zabbix-proxy start
          # service mysql start
          1. chmod +x /etc/init-wsl\
          2. Windows task scheduler
            1. In Trigger Tab, Click New … > Begin the task: At startup > OK
            2. In Actions Tab, Click New … > Action: Start a program
            3. Program/script: wsl
            4. add arguments: -u root /etc/init-wsl
          WSL 2: Run Ubuntu Services on Windows 10 Startup - TechBrij (changed a bit to get it to work correctly

          Comment


          • ZSQLDBA
            ZSQLDBA commented
            Editing a comment
            knightwolf8877, This looks very helpful!

            Your input is definitely appreciated!
        Working...