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 |
---|
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.
See the wiki:
[ Zabbix Monitoring | https://docs.rice.edu/confluence/x/kwKlAQ ]
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
...