How To Install Zabbix Agent on XEN Server 7.24 min read
I would like to show how you to install Zabbix agent on your XEN server 7.2 for monitoring XEN Server. So follow this step by step my instruction for setup Zabbix agent.
If you can check my previous post
Now I would like to show how to install Zabbix agent on your XEN Server 7.0.2
Step #01: At first download rpm package from Zabbix official page.
[[email protected] ~]# rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
Install Zabbix agent via command below.
[[email protected] ~]# yum install zabbix-agent -y
Step #02: Configure iptables for allow Zabbix port. Open iptables file.
[[email protected] ~]# vi /etc/sysconfig/iptables
Then insert below line into iptables file.
-A RH-Firewall-1-INPUT -p tcp –dport 10050 -j ACCEPT
Now restart your iptable service via systemctl.
[[email protected] ~]# systemctl restart iptables
Step #03: Now configure Zabbix agent. So at first enable Zabbix agent.
[[email protected] ~]# systemctl enable zabbix-agent
Then start Zabbix service via command.
[[email protected] ~]# systemctl start zabbix-agent
Step #04: Edit Zabbix agent file for monitor XEN Server. Open zabbix_agentd.conf file and insert Zabbix Server IP and your XEN Server host name.
[[email protected] ~]# vi /etc/zabbix/zabbix_agentd.conf
Insert all below lines into zabbix_agentd.conf file.
Server=188.8.131.52 ServerActive=184.108.40.206 Hostname=XEN-SERVER
Server=Your Zabbix Server IP address
ServerActive=Your Zabbix Server IP address
Hostname=Your XEN Server Host Name
Then save and exit command below.
Esc :wq press Enter
Finally Zabbix service restart.
[[email protected] ~]# service zabbix-agent restart
Now goto your Zabbix Server fronted then add your XEN Server host.
Now enjoy your virtual environment.
Troubleshooting : when you add new rule and can’t start iptables service
Job for iptables.service failed because the control process exited with error code. See “systemctl status iptables.service” and “journalctl –xe” for details.
when you add new rule and can’t start iptables service
Solution : First save iptables new rule
[[email protected]~]# /sbin/service iptables save
Second : iptable service start
[[email protected]~]# service iptables start
3rd : iptable service status
[[email protected]~]# service iptables status
Remember it! When you add new rule then first save and then start iptables service. But many people without save and restart iptables service.
- How To Install Jitsi Own Server For Video Conference On Ubuntu 20.04 - November 16, 2020
- Private Cloud Setup Step By Step Using Apache Cloud Stack - September 19, 2020
- How To Install Zabbix 5.0 On Centos 8 - September 13, 2020
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!