![]() # cp -r frontends/php /var/Make sure you substitute with your own timezone. Now we need to set up automatic starting and stopping of certain services: # chkconfig level 345 zabbix_server on # chkconfig level 345 zabbix_agentd on # chkconfig level 345 httpd on # chkconfig level 345 mysqld on # /etc/init.d/iptables stop 12. # cp misc/init.d/redhat/zabbix_agentd_ctl /etc/init.d/zabbix_agentd # cp misc/init.d/redhat/zabbix_server_ctl /etc/init.d/zabbix_server In /etc/init.d/zabbix_agentd: BASEDIR=/usr/local/zabbix ZABBIX_AGENTD=$BASEDIR/sbin/zabbix_agentd In /etc/init.d/zabbix_server: BASEDIR=/usr/local/zabbix ZABBIX_SUCKERD=$BASEDIR/sbin/zabbix_server 11. Copy and edit the control scripts to start/stop/restart server and agent. # vim /etc/zabbix/zabbix_nf Server= Hostname=EnterAUniqueHostNameForEachAgent 10. We have agent and server on the same box. Add the server IP address and change the hostname. # vim /etc/zabbix/zabbix_nfģ DBUser=zabbixuser BPassword=zabbixpass 9. Change the DB login info using your favorite editor. # mkdir /etc/zabbix # cp misc/conf/zabbix_nf /etc/zabbix # cp misc/conf/zabbix_nf /etc/zabbix 8. # echo zabbix_agent 10050/tcp > /etc/services # echo zabbix_trap 10051/tcp > /etc/services REMEMBER: IF YOU HAVE IPTABLES TURNED ON YOU WILL NEED TO OPEN PORT 80, 10050, & Copy the sample config files to /etc/zabbix for server and agentd. Add the Zabbix server and agent ports to your /etc/services file. #./configure -enable-server -enable-agent -prefix=/usr/local/zabbix -with-mysql -with-net-snmp -with-libcurl # make & make install # make clean 6. Now configure and compile the source code on your system. # cd zabbix # cat create/schema/mysql.sql mysql -u zabbixuser -p zabbix # cat create/data/data.sql mysql -u zabbixuser -p zabbix # cat create/data/images_mysql.sql mysql -u zabbixuser -p zabbix 5. Insert the schema, using zabbixpass when prompted for password. # mysql -u root -p (no password required) mysql> CREATE DATABASE zabbix mysql> GRANT DROP,INDEX,CREATE,SELECT,INSERT,UPDATE,ALTER,DELETE ON zabbix.* TO IDENTIFIED BY 'zabbixpass' mysql> quit 4. Don t make it the same as your root or DB login, since it will be stored in a plaintext file. I used zabbixuser and zabbixpass for the username and password but you may want to change it to your own preference. # /etc/init.d/mysqld start Now you need to connect to MySQL using the newly created root password, create a database and assign a new user with privileges to the DB. Start MySQL and change the root password. # cd /home/zabbix # wget # tar -xzvf zabbix tar.gz 3. Download the lastest Zabbix version available and untar it. Zabbix server is actually protected from being run under root. This will need to be repeated on any devices running agent. We need to create a user the server process will run as. Each group will be provided a virtual machine with the following specifications: OS: CentOS release 5.3 (Final) Kernel: el5 #1 SMP x86_64 x86_64 GNU/Linux 1 Gb RAM 10 GB disk space CPU 1 GHZ A basic Zabbix installation requires the following software: ntp, php, php-bcmath, php-gd, php-mysql, httpd, mysql, gcc, mysql-server, mysql-devel, netsnmp, net-snmp-utils, net-snmp-devel, net-snmp-libs, curl-devel mak All the dependencies should have already been satisfied Connect via SSH to: IP: Username: root Password:Ģ 1. 1 System and Network Monitoring With Zabbix Zabbix Features Zabbix Requirements - Download Zabbix Zabbix Screenshots In this howto we are going to install Zabbix software: agent and a server side.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |