Zabbix MPA Windows Agent Passive

Zabbix MPA Windows agent Passive setup
(PRODUCTION USE)

This article will describe how to install and setup up a Zabbix Windows Agent in Passive Mode on a server/workstation, with the main Zabbix Server being on the same network.

Zabbix Prerequisite & Downloads

NotePad++ Download
Zabbix Agent (Windows All) / i386,amd64 Download
  • Download the precompiled Zabbix Windows Agent file from Zabbix’s main website to the intended server/workstation you want to monitor.
    .
  • Now on the server/workstation, create a new folder called ‘Zabbix’ on the root partition (C:) drive as follow.
C:\ZABBIX
  • In the Zabbix Windows Agent file you will see the following files.
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 the system you want to monitor either extract the WIN32 or WIN64 folder contents to the Zabbix directory (C:\Zabbix). The DEV files are not required.
    .
  • Then extract the Zabbix_Agentd.Win.Conf file to the Zabbix directory 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

Zabbix Configuration Changes

  • Now open the Zabbix_Agentd.Conf file located in the C:\Zabbix\Zabbix_Agentd.Conf in NotePad++ and carry out the following amendments below.
########## GENERAL PARAMETERS ##########
.
### OPTION: ENABLEREMOTECOMMANDS

ENABLEREMOTECOMMANDS=1
.
### PASSIVE CHECKS RELATED
SERVER=ZABBIX_INTERNAL_IPADDRESS
.
### OPTION: HOSTNAME
HOSTNAME=HOSTNAME_OF_SERVER (OR) WORKSTATION

### OPTION: REFRESHACTIVECHECKS
REFRESHACTIVECHECKS=60
.
########## ADVANCED PARAMETERS ##########
.
### OPTION: TIMEOUT
TIMEOUT=30
.
  • Once changes have been made to the Zabbix_Agentd.Conf file, save the file and exit.

Zabbix Services Registration

  • Open up a Microsoft DOS Command Prompt with elevated permissions and navigate to the Zabbix directory.
C:\Zabbix>zabbix_agentd.exe -c zabbix_agentd.conf –install
  • Now run the following command line listed below in the command prompt and then press Enter. This command line will then register a new Zabbix service in the Microsoft Services list. (Services.msc)

zabbix_agentd.exe -c zabbix_agentd.conf --install

  • You will now need to Create A Host on the Zabbix Server and then come back to the Client Server to start the Zabbix Service in the Microsoft Services list.

 

 

 

0 comments on “Zabbix MPA Windows Agent PassiveAdd yours →

Leave a Reply