{"id":2044,"date":"2021-10-21T00:11:07","date_gmt":"2021-10-20T22:11:07","guid":{"rendered":"https:\/\/itsimple.info\/?p=2044"},"modified":"2021-11-22T15:31:57","modified_gmt":"2021-11-22T13:31:57","slug":"how-to-install-zabbix-agent-on-centos-rhel-8","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=2044","title":{"rendered":"How to Install Zabbix Agent on CentOS\/RHEL 8"},"content":{"rendered":"\n<p>Zabbix Agent can provide great linux system monitor  system once installed, here is the steps to install it :<\/p>\n\n\n\n<p>SElinux is enable by default, You can disable the SELinux by editing \/etc\/selinux\/config file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/selinux\/config\n<\/pre>\n\n\n\n<p>Change the following line:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELINUX=disabled\n<\/pre>\n\n\n\n<p>Now install zabbix repository (in the demo it is 5.4):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/5.4\/rhel\/8\/x86_64\/zabbix-release-5.4-1.el8.noarch.rpm\ndnf clean all\ndnf -y install zabbix-agent\n<\/pre>\n\n\n\n<p>Now you need to edit the config file to point to your Zabbix server :<\/p>\n\n\n\n<p>nano <strong>\/etc\/zabbix\/zabbix_agentd.conf<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#Server=[zabbix server ip]\n#Hostname=[ Hostname of client system ]\n\nServer=<strong>192.168.1.100<\/strong>   \nHostname=<strong>the name you gave this linux when created in zabbix server<\/strong>\n<\/pre>\n\n\n\n<p>You need to open the firewall for traffic between this station and the zabbix server :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">firewall-cmd --permanent --add-port=10050\/tcp\nfirewall-cmd --reload<\/pre>\n\n\n\n<p>Now enable and start the agent :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl enable zabbix-agent\nsystemctl start zabbix-agent<\/pre>\n\n\n\n<p>Sometime allowing agent as root is not enough and you need to configure the service running as root <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"796\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2021\/11\/ZaabixAgent_AsRoot-1024x796.png\" alt=\"\" class=\"wp-image-2075\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2021\/11\/ZaabixAgent_AsRoot-1024x796.png 1024w, https:\/\/itsimple.info\/wp-content\/uploads\/2021\/11\/ZaabixAgent_AsRoot-300x233.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2021\/11\/ZaabixAgent_AsRoot-768x597.png 768w, https:\/\/itsimple.info\/wp-content\/uploads\/2021\/11\/ZaabixAgent_AsRoot.png 1126w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-pullquote is-style-solid-color\"><blockquote class=\"has-text-color has-vivid-green-cyan-color\"><p><strong>Good Luck<\/strong><\/p><\/blockquote><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Zabbix Agent can provide great linux system monitor system once installed, here is the steps to install it : SElinux is enable by default, You can disable the SELinux by editing \/etc\/selinux\/config file: nano \/etc\/selinux\/config Change the following line: SELINUX=disabled Now install zabbix repository (in the demo it is 5.4): rpm -Uvh https:\/\/repo.zabbix.com\/zabbix\/5.4\/rhel\/8\/x86_64\/zabbix-release-5.4-1.el8.noarch.rpm dnf clean [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,13,4,12],"tags":[],"class_list":["post-2044","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux","category-tech","category-tutorials"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2044","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2044"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/2044\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}