Zabbix is free monitoring software!
It is open source!
It is server-client based! It can monitor Linux, AIX, Windows servers! I will write more detail about it later!
How to install zabbix agent on Linux? Easy!!!
Steps are:
1. download agent
2.on server create user zabbix
server#useradd zabbix
3. Move it to home dir
server#mv download_location/zabbix_agents_2.0.4.linux2_6.amd64.tar.gz /home/zabbix
4.Untar it!
server#tar xzvf zabbix_agents_2.0.4.linux2_6.amd64.tar.gz
server## ls
bin conf sbin zabbix_agents_2.0.4.linux2_6.amd64.tar.gz
5. In conf folder, you will find default configuration! From version 2.0.x zabbix conf file should be located in /usr/local/etc/ folder.
If you install zabbix agent this way, you will need to find somewhere service zabbix! I just copied it from some other server!
server2#scp /etc/init.d/zabbix_agentd server1:/etc/init.d/
6.To start zabbix agent, execute
server1#/etc/init.d/zabbix_agentd start
7. Check if agent is running
server1# ps aux |grep zabbix
root 2531 0.0 0.0 13436 708 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2533 0.0 0.0 13436 756 ? S 12:45 0:01 /home/zabbix/sbin/zabbix_agentd
root 2534 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2535 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2536 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2537 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2538 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 3220 0.0 0.0 103248 836 pts/1 S+ 13:57 0:00 grep zabbix
8. On zabbix server check if you can communicate with zabbix agent
# /zabbix_server_location/bin/zabbix_get -s server1_IP -k agent.version
2.0.4
In case that your response is like this
# /zabbix_server_location/bin/zabbix_get -s server1_IP -k agent.version
zabbix_get [9917]: Get value error: cannot connect to [[server1_IP]:10050]: [111] Connection refused
you have communication issue!
To solve this, check following:
1.Check iptables on server1! Port 10050 and 10051 need to be open!
server1#iptables -I INPUT 5 -p tcp --dport 10050 -s zabbix_server_ip -j ACCEPT
server1#iptables -I INPUT 5 -p tcp --dport 10051 -s zabbix_server_ip -j ACCEPT
2. check if zabbix_agent is running
server1#ps aux |grep zabbix
3.try telnet to zabbix server with port 10050
server1#telnet zabbix_server_ip 10050
It is wise to put zabbix agent service to start after reboot
server1#chkconfig --level 345 zabbix_agentd on
It is open source!
It is server-client based! It can monitor Linux, AIX, Windows servers! I will write more detail about it later!
How to install zabbix agent on Linux? Easy!!!
Steps are:
1. download agent
2.on server create user zabbix
server#useradd zabbix
3. Move it to home dir
server#mv download_location/zabbix_agents_2.0.4.linux2_6.amd64.tar.gz /home/zabbix
4.Untar it!
server#tar xzvf zabbix_agents_2.0.4.linux2_6.amd64.tar.gz
server## ls
bin conf sbin zabbix_agents_2.0.4.linux2_6.amd64.tar.gz
5. In conf folder, you will find default configuration! From version 2.0.x zabbix conf file should be located in /usr/local/etc/ folder.
If you install zabbix agent this way, you will need to find somewhere service zabbix! I just copied it from some other server!
server2#scp /etc/init.d/zabbix_agentd server1:/etc/init.d/
6.To start zabbix agent, execute
server1#/etc/init.d/zabbix_agentd start
7. Check if agent is running
server1# ps aux |grep zabbix
root 2531 0.0 0.0 13436 708 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2533 0.0 0.0 13436 756 ? S 12:45 0:01 /home/zabbix/sbin/zabbix_agentd
root 2534 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2535 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2536 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2537 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 2538 0.0 0.0 13444 932 ? S 12:45 0:00 /home/zabbix/sbin/zabbix_agentd
root 3220 0.0 0.0 103248 836 pts/1 S+ 13:57 0:00 grep zabbix
8. On zabbix server check if you can communicate with zabbix agent
# /zabbix_server_location/bin/zabbix_get -s server1_IP -k agent.version
2.0.4
In case that your response is like this
# /zabbix_server_location/bin/zabbix_get -s server1_IP -k agent.version
zabbix_get [9917]: Get value error: cannot connect to [[server1_IP]:10050]: [111] Connection refused
you have communication issue!
To solve this, check following:
1.Check iptables on server1! Port 10050 and 10051 need to be open!
server1#iptables -I INPUT 5 -p tcp --dport 10050 -s zabbix_server_ip -j ACCEPT
server1#iptables -I INPUT 5 -p tcp --dport 10051 -s zabbix_server_ip -j ACCEPT
2. check if zabbix_agent is running
server1#ps aux |grep zabbix
3.try telnet to zabbix server with port 10050
server1#telnet zabbix_server_ip 10050
It is wise to put zabbix agent service to start after reboot
server1#chkconfig --level 345 zabbix_agentd on
No comments:
Post a Comment