Quick and Easy Way to install Zabbix Agent
Grab zabbix,zabbix-agent,zabbix-docs RPMs from the repo below:
http://rh6rpm.build.rice.edu/repo/
You can then download and install the RPMs and configure the agents to use monitor.rice.edu (10.129.92.52).
Example Below:
Installing Zabbix Agent
No Format |
---|
[bw8@localhost ~]# sudo yum install \
http://rh6rpm.build.rice.edu/repo/el6/x86_64/zabbix-1.8.10-1.el6.x86_64.rpm \
http://rh6rpm.build.rice.edu/repo/el6/x86_64/zabbix-agent-1.8.10-1.el6.x86_64.rpm \
http://rh6rpm.build.rice.edu/repo/el6/x86_64/zabbix-docs-1.8.10-1.el6.noarch.rpm
|
Configure Zabbix Agent to use monitor.rice.edu (10.129.92.52)
No Format |
---|
sed \-i \-e 's/Server=127.0.0.1/Server=10.129.92.52/' /etc/zabbix/zabbix_agentd.conf
sed \-i \-e "s/Hostname=Zabbix\ server/\#Hostname=$(hostname)/" /etc/zabbix/zabbix_agentd.conf
|
Start Service and Check Status
No Format |
---|
/sbin/chkconfig zabbix-agent on
/sbin/service zabbix-agent start
/sbin/service zabbix-agent status
|
Verify IPTABLES for Zabbix connections
Be sure IPTABLES is updated to accept connections on port 10050, from 10.129.92.52. May be already
done with sitedisk iptables when your system was first installed. Check for a line allowing
connections from 10.129.92.52 (monitor.rice.edu) to port 10050 on client.
No Format |
---|
## Add this IF needed to /etc/sysconfig/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
|
Installing the Linux Zabbix Agent, getting the files from monitor.rice.edu or RNAS
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/
...
Table of Contents | ||
---|---|---|
|
Download zabbix agent and files from monitor.rice.edu
From any section page on monitor
click the tab on the bottom labeled "Get the zabbix agents here"
...
No Format |
---|
[smcclure@fms09 MONITOR]$ scp monitor.rice.edu:/usr/site/zabbix/public_html/agents/RH4_32bit/zabbix_agentd . [smcclure@fms09 MONITOR]$ scp monitor.rice.edu:/usr/site/zabbix/public_html/agents/linux/zabbix_agentd.conf . [smcclure@fms09 MONITOR]$ scp monitor.rice.edu:/usr/site/zabbix/public_html/agents/linux/zabbix_agentd_ctl . |
Copy zabbix files from workstation or open client, to your CLOSED client
- make /tmp/ZABBIX on (closed) client
mkdir /tmp/ZABBIX
...
No Format |
---|
[smcclure@fms09 ZABBIX]$ scp -p * fms04.rice.edu:/tmp/ZABBIX/ |
Setup Zabbix user/groups on the new client
You will need to sudo to root to do the following:
...
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
|
Do Local setup and modifications for Zabbix
You will need to sudo to root to do the following:
...
No Format |
---|
mkdir /home/zabbix
cp -p /tmp/ZABBIX/zabbix_x64_static_agentd /home/zabbix/zabbix_agentd
chmod ugo+x /home/zabbix/zabbix_agentd
chown -R zabbix:zabbix /home/zabbix
|
...
No Format |
---|
cp -pi /tmp/ZABBIX/zabbix_agent_init /etc/init.d/zabbix_agent chown root:root /etc/init.d/zabbix_agent chmod ug+x /etc/init.d/zabbix_agent chkconfig zabbix-agent on chkconfig --list zabbix-agent |
Start zabbix_agent on client
Fire it up:
No Format |
---|
/etc/init.d/zabbix_agent start |
...
No Format |
---|
tail /var/log/zabbix/zabbix_agentd.log
2728:20100811:135911.054 Zabbix Agent started. Zabbix 1.8.2 (revision 11211).
2730:20100811:135911.054 zabbix_agentd collector started
2733:20100811:135911.055 zabbix_agentd listener started
2734:20100811:135911.055 zabbix_agentd listener started
2735:20100811:135911.055 zabbix_agentd listener started
zabbix_agentd.log (END)
|
Troubleshooting zabbix connectivity issues
Once your zabbix_agentd is started successfully you should see the host on monitor.rice.edu,
and it should say Status = "Monitored" and the Z under Availability should be Blue (not red)
...
Panel | ||
---|---|---|
| ||
root@monitor:/opt/opt.CORE/zabbix-1.8.3/rhel5/public_html/agents> telnet fms06.rice.edu 10050 Trying 10.142.93.4... agent.version ZBXD�1.6.5Connection closed by foreign host. |
Define monitoring for new client on monitor.rice.edu
The monitoring setup is done by the owner/admin of the applications running on the client.
The application owners know best what services they will need to monitor, who to notify,
and what hours of operations they need notifications done for.
Wiki Markup |
---|
See the wiki: |
\[ Zabbix Monitoring \| [https://docs.rice.edu/confluence/x/kwKlAQ |
![](/confluence/images/icons/linkext7.gif)
] \] |
OR Download zabbix agent and files from rnas.rice.edu
The Zabbix agent binaries and other files are also found on rnas.rice.edu at
- \\rnas.rice.edu\ITsata\ZabbixAgents\
(10.129.92.52)