Skip to content

Open-Future-Belgium/zabbix-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zabbix Client

This play will install the zabbix Agent on your clients The Client will also be added into the Zabbix server with the correct template and group

Requirements

Centos-RHEL 6.5/7

Version

31/08/2015

Role Variables

All variables are set in default\main.yml

# Please adjust these parameters to your own needs
zbx_repo_enabled: 1                                     # Put 0 to use your own local repo
zbx_agent_Version: "2.4.6"                              # Desired version of the client
zbx_agent_HostName:                                     # If not set hostname from machine will be taken.
zbx_server_Passive:                                     # Passive Server Checks
zbx_agent_ServerActive:                                 # Active Server Checks


# API
server_url: "http://zabbix_server_url/api_jsonrpc.php"      # Add the url to the API
login_user: "Admin"                                     # Login for the user with API rights
login_password: "Admin password"                        # Password for the API user
host_groups:                                            # List of host groups the host should belong to start each group with -
          - "Linux servers"
link_templates:                                         # A list of templates that need to be linked to the host
          - "Template OS Linux"
status: "enabled"                                       # Status of the host enabled or disabled
state: "present"


# Zabbix Repository
zbx_repo: "http://repo.zabbix.com/zabbix/2.4/rhel/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/zabbix-release-2.4-1.el{{ ansible_distribution_major_version }}.noarch.rpm"



# General Zabbix Agent Parameters

zbx_agent_Pid: "/var/run/zabbix/zabbix_agentd.pid"      # Location of Agent PID File
zbx_agent_Log: "/var/log/zabbix/zabbix_agentd.log"      # Location of Agent Log File
zbx_agent_LogSize: 0                                    # Log File Size In MB ( 0 = disabled Log Rotation )
zbx_agent_Debug: 1                                      # Debug Level (0 = no debug, 1=critical, 2=error info, 3=warnings, 4=debug )
zbx_agent_SourceIp:                                     # Source IP address for outgoing connections.
zbx_agent_Remote: 0                                     # Enable remote commands ( 0=disabled, 1=enabled)
zbx_agent_LogRemote: 0                                  # Log Remote Commands ( Enable logging of executed commands )
zbx_agent_Port: 10050                                   # Zabbix Agent Listen Port (if changed also alter tasks/iptables.yml
zbx_agent_ListenIp:                                     # Agent Listen Ip
zbx_agent_StartAgents: 3                                # Number of Pre-Forked Instances of zabbix_agentd
zbx_agent_HostName:                                     # Put the hostname if not filled in name of the machine is used
zbx_agent_HostMeta:                                     # Optional parameter that defines host metadata.
zbx_agent_HostMetaItem:                                 # Optional parameter that defines an item used for getting host metadata
zbx_agent_RefreshActiveChecks: 120                      # How often list of active checks is refreshed, in seconds.
zbx_agent_Buffer: 5                                     # Do not keep data longer then N seconds in buffer.
zbx_agent_BufferSize: 100                               # Maximum number of values in a memory buffer
zbx_agent_MaxLinesSecond: 100                           # Maximum number of new lines the agent will send per second to Zabbix Server

# Advanced Zabbix Agent Parameters

zbx_agent_Timeout: 3                                    # Spend no more than Timeout seconds on processing
zbx_agent_AllowRoot: 0                                  # Allow the agent to run as 'root'
zbx_agent_Include:                                      # Possible to add multiple lines start always with - like next line.
                  - "/etc/zabbix/zabbix_agentd.d/"      # You may include individual files or all files in a directory in the cfg file.


# USER-DEFINED Zabbix Agent Monitored Parameters

zbx_agent_UnsafeUserParam: 0
zbx_agent_UserParameter: []                             # Add one or more lines with user parameters same as with zbx_agent_Include
zbx_agent_LoadModulePath:                               # Add path of the loadable modules
zbx_agent_Modules: []                                   # Add one or more lines with modules module.so

Dependencies

  • Centos/RHEL 6.5 or 7 is needed
  • On Ansible server install zabbix-api from pip
  • Install extra module zabbix_host

License

GPLv2

Author Information

About

A module to install the zabbix agent on centos/rhel 6 & 7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published