Zabbix Server on Arch Linux


Arch Linux Setup

[root@ecs-lab-zabbix501 ~]# history
    1  ln -sf /usr/share/zoneinfo/Europe/Zurich /etc/localtime
    2  hwclock --systohc
    3  nano /etc/locale.gen
    4  locale-gen
    5  nano /etc/locale.conf
    6  cat /etc/vconsole.conf
    7  nano /etc/vconsole.conf
    8  nano /etc/hostname
    9  cat /etc/hosts
   10  nano /etc/hosts
   11  mkinitcpio -p linux
   12  passwd
   13  pacman -Ss efiboot
   14  pacman -S core/efibootmgr
   15  efibootmgr -v
   16  ls -l /boot
   17  efibootmgr -c -d /dev/sda -p 1 -L "arch" -l '\vmlinuz-linux' -u 'initrd=\initramfs-linux.img'
   18  source /etc/profile
   19  env update
   20  efibootmgr -v
   21  efibootmgr -B 0004 -b
   22  efibootmgr -b 0004 -B
   23  blkid
   24  efibootmgr -c -d /dev/sda -p 1 -L "arch" -l '\vmlinuz-linux' -u 'root=PARTUUID=ba12487e-1d5d-443b-b621-8703f4839afb rw initrd=\initramfs-linux.img'
   25  ifconfig
   26  ip addr show
   27  systemctl status sshd
   28  systemctl start sshd
   29  systemctl status sshd
   30  pacman -Ss openssh
   31  pacman -S openssh
   32  pacman -Syu
   33  ip addr showe
   34  ip addr show
   35  dhcpcd ens192
   36  pacman -S openssh
   37  systemctl start sshd
   38  ip addr show
   39  useradd risko -m -G wheel
   40  passwd risko
   41  pacman -S screen
   42  pacman -Ss zabbix
   43  pacman -Ss networkmana
   44  cat /etc/netconfig
   45  nano /etc/dhcpcd.conf
   46  systemctl list-unit-files | grep dhcp
   47  nano /etc/dhcpcd.conf
   48  systemctl list-unit-files | grep dhcp
   49  systemctl enable dhcpcd.service
   50  systemctl restart dhcpcd.service
   51  ip add show
   52  nano /etc/dhcpcd.conf
   53  ip add show
   54  reboot
   55  ip addr show
   56  ip addr show
   57  ping google.com
   58  route
   59  ip route
   60  ping 10.2.239.254
   61  ping 10.2.239.2
   62  ping 10.2.239.3
   63  ping 10.2.239.2
   64  ping 8.8.8.8
   65  ping google.com
   66  systemctl status sshd
   67  systemctl enable sshd
   68  systemctl restart sshd





Zabbix Server Install


   69  pacman -S zabbix-frontend-php
   70  pacman -S zabbix-server

   72  pacman -S apache
   73  systemctl list-unit-files | grep http
   74  systemctl enable httpd
   75  systemctl start httpd
   76  grep -i root /etc/httpd/conf/httpd.conf
   77  ln -s /usr/share/webapps/zabbix /srv/http/zabbix
   78  ls -l /usr/share/webapps/zabbix
   79  nano /etc/php/php.ini
   80  mysql -u root -p -e "create database zabbix character set utf8"
   81  pacman -Ss mariadb
   82  pacman -S mariadb
   83  systemctl list-unit-files | grep maria
   84  systemctl enable mariadb.service
   85  systemctl start mariadb.service
   86  mysql -u root -p -e "create database zabbix character set utf8"
   87  mysql -u root -p -e "create database zabbix character set utf8"
   88  systemctl status mariadb.service
   89  mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
   90  systemctl start mariadb.service
   91  mysql -u root -p -e "create database zabbix character set utf8"
   92  mysql_secure_installation
   93  mysql -u root -p -e "create database zabbix character set utf8"
   94  mysql -u root -p -e "grant all on zabbix.* to zabbix@localhost identified by 'test'"
   95  mysql -u zabbix -p zabbix < /usr/share/zabbix-server/mysql/schema.sql
   96  mysql -u zabbix -p zabbix < /usr/share/zabbix-server/mysql/images.sql
   97  mysql -u zabbix -p zabbix < /usr/share/zabbix-server/mysql/data.sql
   98  pacman -S fping
   99  systemctl edit zabbix-server-mysql.service
  100  systemctl list-unit-files | grep zabbix
  101  systemctl enable zabbix-server-mysql.service
  102  systemctl start zabbix-server-mysql.service
  103  reboot
  104  nano /etc/zabbix/zabbix_server.conf
  105  nano /etc/httpd/conf.d/zabbix.conf
  106  nano /etc/httpd/conf/httpd.conf
  107  php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'
  108  nano /etc/httpd/conf/httpd.conf
  109  pacman -i
  110  pacman -Qi
  111  pacman -Qi | grep php
  112  pacman -Ss php
  113  pacman -S php
  114  grep LoadModule mpm_event_module /etc/httpd/conf/httpd.conf
  115  grep mpm_event_module /etc/httpd/conf/httpd.conf
  116  nano /etc/httpd/conf/httpd.conf
  117  nano /etc/httpd/conf/httpd.conf
  118  nano /etc/httpd/conf/httpd.conf
  119  systemctl restart httpd
  120  systemctl status httpd
  121  pacman -Ss metstat
  122  pacman -Ss netstat
  123  pacman -Ss iptools
  124  pacman -Ss tools
  125  pacman -S core/iputils
  126  netstat
  127  ss
  128  ss -h
  129  ss -l
  130  ss -h
  131  ss -4
  132  ss -4 -l
  133  systemctl status httpd
  134  systemctl status httpd
  135  ls -l  /etc/httpd/modules/libphp7.so
  136  pacman -S php-apache
  137  ls -l  /etc/httpd/modules/libphp7.so
  138  systemctl restart httpd
  139  systemctl status httpd
  140  systemctl status httpd
  141  history



Comments

Popular posts from this blog

sudo sh VMware-Remote-Console-12.0.4-21740317.x86_64.bundle -u vmware-vmrc

zabbix agent on gentoo