Checkout this guide on How to Add Host in Zabbix Server to Monitor. You can now proceed to add host in zabbix server to be monitored. That is it! You have successfully installed Zabbix Agent on your Rocky Linux Machine. To enable the agent to start on boot, use this command: sudo systemctl enable zabbix-agent └─2612519 /usr/sbin/zabbix_agentd: active checks #1 įeb 23 14:40:52 systemd: Starting Zabbix Agent.įeb 23 14:40:52 systemd: rvice: Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directoryįeb 23 14:40:52 systemd: Started Zabbix Agent.įrom the above output, we can confirm that the agent is running. ├─2612515 /usr/sbin/zabbix_agentd: collector ├─2612514 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_nf Process: 2612512 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)ĬGroup: /system.slice/rvice Loaded: loaded (/usr/lib/systemd/system/rvice disabled vendor preset: disabled)Īctive: active (running) since Wed 14:40:52 GMT 7s ago Use this command to start: sudo systemctl start zabbix-agentĬheck the status to confirm that it is started. Sudo sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config 5. You will also need to set SELinux to permissive in order to access the frontend from a browser. You can allow them with the following command: sudo firewall-cmd -permanent -add-port=10050/tcp If you have firewall installed and enabled, you will need to allow the Zabbix ports 1001. Disable SELinux and Adjust Firewall for Zabbix To do this, you need to install MariaDB or MySQL. Edit the Zabbix agent configuration file by adding the Zabbix server IP. Install Zabbix on Debian At this point, you can install the Zabbix server, frontend, and agent on Debian 11 with the command below: sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-sc When your installation is completed, you need to create the initial database. We will also update the Hostname so we know which server we configured the agent on. Now, you need to configure the Agent service to allow Zabbix server requests.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |