Installing the Linux Zabbix Agent, getting the files from monitor.rice.edu
...
Table of Contents | ||
---|---|---|
|
For servers in a closed network, the easiest way to install the Zabbix agent is probably
to download the files from monitor.rice.edu to a local workstation, then copy them over to
/tmp on your server and install from there.
This example assumes we downloaded the files and then copied to EA12.rice.edu:/tmp/
This installs just the Linux agent program; zabbix_agentd for monitoring. The default
config file will be placed at /etc/opt/zabbixThe Zabbix Agent SitePkg contains the agent programs used by Zabbix clients. It leaves out the much larger server programs that are only needed on the Zabbix server.
The recommended agent program is the daemon, zabbix_agentd. Its default config file is /usr/site/zabbix_agent-VERSION/etc/zabbix_agentd.conf. Everything else is specified
in the config file.
Download zabbix agent and files from monitor.rice.edu
No Format |
---|
# Grab zabbix_agent and its required packages: divsite -l sandmant zabbix_agent |
- Copy all files to client you are installing agent on, into /tmp/ZABBIX/
Setup Zabbix user/groups on new client
- Verify/add Zabbix user/groups on Linux client:
No Format |
---|
egrep '^zabbix:' /etc/passwd >/dev/null || cat - >> /etc/passwd << EOF zabbix:x:906:906:Zabbix User:/home/zabbix:/bin/bash EOF egrep '^zabbix:' /etc/group >/dev/null || cat - >> /etc/group << EOF zabbix:x:906: EOF pwconv |
- Setup config file and init script
Create a local configuration directory ONLY if you plan on customizing your zabbix_agentd.conf file. The default init script checks for /etc/opt/zabbix/zabbix_agentd.conf, and if found this file will be used instead of the default config file.
...
No Format |
---|
cat /usr/site/zabbix_agent/share/install/services/zabbix >> /etc/services |
Start zabbix_agent on client
Fire it up:
No Format |
---|
/etc/init.d/zabbix_agent start |