You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Installing the Zabbix Agent, getting the files from monitor.rice.edu

The 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.

# Grab zabbix_agent and its required packages:
divsite -l sandmant zabbix_agent

Verify/add Zabbix user/groups:

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 

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.

mkdir /etc/opt/zabbix
cp -p /usr/site/zabbix_agent/share/etc/zabbix_agentd.conf /etc/opt/zabbix

Create local var directory for log and pid files:

mkdir /var/opt/zabbix
chown -R zabbix:zabbix /var/opt/zabbix

Be sure IPTABLES is updated to accept connections on port 10050, from 10.129.92.52. May be already
done with sitedisk iptables.

## accept Zabbix agent connections on port 10050, from zabbix server
## at 10.129.92.52
-A INPUT -p tcp -m tcp --dport 10050 -s 10.129.92.52/32 -j ACCEPT

Install/activate init script:

cp -pi /usr/site/zabbix_agent/share/install/init/zabbix_agent /etc/init.d/zabbix_agent
chkconfig zabbix_agent on
chkconfig --list zabbix_agent

Update services file:

cat /usr/site/zabbix_agent/share/install/services/zabbix >> /etc/services

Fire it up:

/etc/init.d/zabbix_agent start
  • No labels