Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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/ZABBIX/ on your server and install from there.
This example assumes we downloaded the files and then copied to EA12.rice.edu:/tmp/ZABBIX/

This installs just the Linux agent program; zabbix_agentd for monitoring. The default
config file will be placed at /etc/opt/zabbix/zabbix_agentd.conf. Everything else is specified
in the config file.

...

  • Verify/add Zabbix user/groups on Linux client:

This may already have been done as part of the initial install. Verify and do setup
if necessary.

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 Zabbix config file
  • Make home dir for zabbix, copy in zabbix_agentd

Wherever the local admins accounts are, make one for Zabbix.

No Format

mkdir /home/zabbix 
cp -p /tmp/ZABBIX/zabbix_agentd /home/zabbix
chown -R zabbix /home/zabbix
  • Setup Zabbix config file

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.

...