Zabbix MPA Windows Agent Active

Zabbix MPA Windows agent active setup
(PRODUCTION USE)

This article will describe how to install and setup up a Zabbix Windows Active Agent in Active Mode on a server behind a corporate network guarded by a corporate firewall. Active mode will allow you to obtain server details and status information without opening up your clients corporate firewall.

Zabbix MPA Firewall Port Forward // P10051

First you need to setup a port forward on your main firewall and allow incoming port (10051) to point to your internal (Zabbix) server. This will allow incoming data from your (Active) agent to be received by your (Zabbix) server for processing.

Zabbix Prerequisite & Downloads

NotePad++ Download
Zabbix Agent (Windows All) / i386,amd64 Download
  • Once you have carried out your port forwarding, then download the precompiled Zabbix Windows Agent file from Zabbix’s main website, to the intended server you would like to monitor on the corporate network.
    .
  • Now on the server, create a new folder called (Zabbix) on the root partition (C:) drive as follow.
C:\ZABBIX
  • Now in the downloaded Zabbix Windows Agent zip file you will see the following contents.
BIN\WIN32\DEV\ZABBIX_SENDER.DLL
          \DEV\ZABBIX_SENDER.LIB
           \ZABBIX_AGENTD.EXE
            \ZABBIX_GET.EXE
             \ZABBIX_SENDER.EXE

BIN\WIN64\DEV\ZABBIX_SENDER.DLL
          \DEV\ZABBIX_SENDER.LIB
           \ZABBIX_AGENTD.EXE
            \ZABBIX_GET.EXE
             \ZABBIX_SENDER.EXE

CONF\ZABBIX_AGENTD.WIN.CONF
  • Now based on your Windows Server OS version either extract the WIN32 or WIN64 folder contents to the Zabbix directory C:\Zabbix which you created. The DEV files are not required in this instance.
    .
  • Now extract the CONF\ZABBIX_AGENTD.WIN.CONF file to the C:\Zabbix directory also and rename the file to ZABBIX_AGENTD.CONF, your Zabbix folder should now look like the following below.
C:\ZABBIX\ZABBIX_AGENTD.EXE
          \ZABBIX_GET.EXE
           \ZABBIX_SENDER.EXE
            \ZABBIX_AGENTD.CONF

Microsoft Windows Firewall Allow Application

  • Once you have all the above contents in place, you will then need to add all the (.EXE) applications to the Microsoft Windows Firewall Application List to allow data to be passed through the Microsoft Windows Firewall without any issues. This can be done by going to the following below.
  • START > CONTROL PANEL > FIREWALL > ALLOW A PROGRAM THROUGH FIREWALL

Zabbix Configuration Changes

  • Now open the C:\ZABBIX\ZABBIX_AGENTD.CONF file located in the NotePad++ application and carry out the following amendments below, once done save the config and exit.
########## GENERAL PARAMETERS ##########
.
### OPTION: SOURCEIP

SOURCEIP=0.0.0.0
.
### PASSIVE CHECKS RELATED
SERVER=ZABBIX__EXTERNAL_PUBLIC_IPADDRESS (OR) DOMAIN URL
.
### OPTION: STARTAGENTS

STARTAGENTS=0
.
### ACTIVE CHECKS RELATED
SERVER=ZABBIX__EXTERNAL_PUBLIC_IPADDRESS (OR) DOMAIN URL
.
### OPTION: HOSTNAME
HOSTNAME=HOSTNAME_OF_SERVER (OR) WORKSTATION

### OPTION: REFRESHACTIVECHECKS
REFRESHACTIVECHECKS=60
.
########## ADVANCED PARAMETERS ##########
.
### OPTION: TIMEOUT
TIMEOUT=30
.

Zabbix Services Registration

  • Open up a Microsoft DOS Command Prompt with elevated permissions (Right-Click CMD > Run As Administrator) and navigate to the Zabbix directory using DOS Commands.
C:\Zabbix>zabbix_agentd.exe -c zabbix_agentd.conf –install
  • Now run the following command line above in the MS DOS Command Prompt and then press Enter. This command line will then register a new Zabbix Service in the Microsoft Services list.
  • You will now need to Create A Host on the Zabbix Server front end portal and then come go back to the Client Server to start the Zabbix Service in the Microsoft Services list.

 

 

 

0 comments on “Zabbix MPA Windows Agent ActiveAdd yours →

Leave a Reply