wiki.ipfire.org

The community-maintained documentation platform of IPFire

User Tools

Site Tools


addons:zabbix_agentd

Zabbix Agent

This addon provides the agent for monitoring a host by Zabbix Montitoring.

Requirements

You need a running Zabbix Server and you should be aware of how to integrate hosts monitored by agents into your environment.

Installation

  1. Install the addon via Pakfire
  2. Modify the configuration files to fit your needs as described under the next heading
  3. Restart the agent to apply your changed config
  4. Create firewall rule(s) to allow the communication between the agent and your server/proxy

Configuration

The addon is shipped with a default configuration file and some additional directories and files:

  • /etc/zabbix_agentd All configuration files should be put below this directory. The entire directory will be included in a backup of this addon.
  • /etc/zabbix_agentd/zabbix_agentd.conf The configuration file. See the original documentation for help.

The parameters Server and ServerActive have to be set to your Zabbix Server's (or Proxy's) IP/DNS in order to allow access to the agent. They are both set to 127.0.0.1 by default for security reasons.

  • /etc/zabbix_agentd/zabbix_agentd.d Files containing UserParameters should go here. They need to have the extension *.conf.
  • /etc/zabbix_agentd/scripts Additional scripts e.g. for UserParameters should go here
  • /etc/sudoers.d/zabbix.user This file can be modified to allow certain commands to be executed with sudo if needed by a UserParameter. This file will be included in a backup of this addon. Do not change the filename!

    Currently there is a bug. The File is beeing ignored by sudo, because of the . in it's filename. This will be fixed in with Core Update 131 by renaming it to zabbix. You can rename it manually in the meantime, if you run into this issue. — Alex Koch 2019/04/13 14:09

  • /usr/lib/modules LoadModulePath
  • /var/log/zabbix/zabbix_agentd.log Current LogFile
  • /etc/logrotate.d/zabbix_agentd Includefile for logrotate. The logs are rotated monthly and kept for 12 month by default.

The logs are not included in a backup of this addon.

addons/zabbix_agentd.txt · Last modified: 2019/04/13 14:11 by Alex Koch