{"id":2370,"date":"2022-10-30T08:00:18","date_gmt":"2022-10-30T08:00:18","guid":{"rendered":"https:\/\/sunucucozumleri.com\/?p=2370"},"modified":"2025-02-04T01:55:43","modified_gmt":"2025-02-03T22:55:43","slug":"ubuntu-mysql-ve-zabbix-kurulumu","status":"publish","type":"post","link":"https:\/\/sunucucozumleri.com\/blog\/ubuntu-mysql-ve-zabbix-kurulumu\/","title":{"rendered":"Ubuntu Mysql ve Zabbix Kurulumu"},"content":{"rendered":"<p>Merhaba, bu makalemizde <strong>Zabbix<\/strong> kurumunu ele al\u0131yor olaca\u011f\u0131z.<\/p>\n<p>Ufaktan ad\u0131mlar\u0131m\u0131za ba\u015flayal\u0131m. Ben \u00f6ncelikle <a href=\"https:\/\/sunucucozumleri.com\/sunucu\/sanal-sunucu\/\"><strong>sanal sunucu<\/strong><\/a>muza Ubuntu i\u015fletim sisteminin son versiyonunu indirdim ve kurulumu yapt\u0131m. Kurulum sonras\u0131 Ubuntu i\u015fletim sistemimi g\u00fcncelledim. Yani bir i\u015fletim sistemini temel olarak kurdum ve kullan\u0131ma haz\u0131rlad\u0131m. \u015eimdi ise <strong>Mysql<\/strong> ve Zabbix temel kurulum i\u015flemini ele alaca\u011f\u0131z. Sonraki ad\u0131mlarda ise \u00f6\u011frendik\u00e7e \u00fcr\u00fcne farkl\u0131 bak\u0131\u015f a\u00e7\u0131lar\u0131n\u0131 ele alaca\u011f\u0131z.<\/p>\n<h3>Zabbix Nedir?<\/h3>\n<p>Zabbix, a\u011flar\u0131n, sunucular\u0131n, uygulamalar\u0131n ve di\u011fer IT altyap\u0131lar\u0131n\u0131n performans\u0131n\u0131 ve sa\u011fl\u0131\u011f\u0131n\u0131 izlemek i\u00e7in kullan\u0131lan a\u00e7\u0131k kaynakl\u0131 bir izleme ve analiz yaz\u0131l\u0131m\u0131d\u0131r. Kurulu\u015flar\u0131n IT altyap\u0131lar\u0131n\u0131 s\u00fcrekli olarak izlemesine, performans sorunlar\u0131n\u0131 tespit etmesine ve bu sorunlar\u0131 \u00e7\u00f6zmesine olanak tan\u0131r. Zabbix, \u00f6zellikle b\u00fcy\u00fck \u00f6l\u00e7ekli ve karma\u015f\u0131k IT ortamlar\u0131 i\u00e7in tasarlanm\u0131\u015ft\u0131r ve geni\u015f bir kullan\u0131m alan\u0131na sahiptir.<\/p>\n<p>\u00d6ncelikle i\u015fletim sistemimizi tekrar kontrol edelim. Mevcut versiyonumuza g\u00f6re kurulum komutlar\u0131n\u0131n parametrelerinin de\u011fi\u015fti\u011fini unutmayal\u0131m.<\/p>\n<p>cat \/etc\/os-release<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2371\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu.jpg\" alt=\"\" width=\"629\" height=\"269\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu.jpg 629w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu-300x128.jpg 300w\" sizes=\"(max-width: 629px) 100vw, 629px\" \/><\/p>\n<p>Tekrardan bir g\u00fcncelleme var m\u0131 kontrol edelim.<\/p>\n<p>sudo apt-get update<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2372\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu2.jpg\" alt=\"\" width=\"629\" height=\"363\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu2.jpg 629w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu2-300x173.jpg 300w\" sizes=\"(max-width: 629px) 100vw, 629px\" \/><\/p>\n<p>sudo apt-get upgrade<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2373\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu3.jpg\" alt=\"\" width=\"629\" height=\"450\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu3.jpg 629w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu3-300x215.jpg 300w\" sizes=\"(max-width: 629px) 100vw, 629px\" \/><\/p>\n<p>Bu ad\u0131mlardan sonra ilgili kurulum i\u00e7in gerekli komut setlerini bulaca\u011f\u0131m\u0131z download sayfas\u0131na bu https:\/\/www.zabbix.com\/download?zabbix=6.2&amp;os_distribution=ubuntu&amp;os_version=22.04_jammy&amp;db=mysql&amp;ws=apache sayfadan eri\u015fim sa\u011flayal\u0131m. \u0130lgili i\u015fletim sistemi versiyonu, kurulacak olan <a href=\"https:\/\/sunucucozumleri.com\/blog\/veri-tabani-sunucusu-kiralama\/\">veri taban\u0131<\/a> sunucusu se\u00e7imi gibi se\u00e7imleri tamamlad\u0131ktan sonra alt k\u0131s\u0131mda ilgili komut setleri ayarlanacak ve kullan\u0131ma haz\u0131r duruma gelecektir.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2374\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu4.jpg\" alt=\"\" width=\"1024\" height=\"536\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu4.jpg 1024w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu4-300x157.jpg 300w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu4-768x402.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Zabbix kurulumu \u00f6ncesinde veri taban\u0131m\u0131z\u0131 ayarlayal\u0131m. Ubuntu \u00fczerinde Mysql ve PostgreSQL veri taban\u0131 \u00fcr\u00fcnlerinden istedi\u011fimizi tercih edebiliriz. Biz veri taban\u0131 olarak Mysql veri taban\u0131 kullanaca\u011f\u0131z. A\u015fa\u011f\u0131daki komutu \u00e7al\u0131\u015ft\u0131ral\u0131m.<\/p>\n<p>apt install mysql -server -y<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2375\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu5.jpg\" alt=\"\" width=\"633\" height=\"596\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu5.jpg 633w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu5-300x282.jpg 300w\" sizes=\"(max-width: 633px) 100vw, 633px\" \/><\/p>\n<p>Kurulum i\u015flemi tamamland\u0131ktan sonra a\u015fa\u011f\u0131daki komut ile mysql sunucunun kuruldu\u011funu g\u00f6relim.<\/p>\n<p>mysql -v<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2376\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu6.jpg\" alt=\"\" width=\"631\" height=\"263\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu6.jpg 631w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu6-300x125.jpg 300w\" sizes=\"(max-width: 631px) 100vw, 631px\" \/><\/p>\n<p>Veri taban\u0131 kurulumundan sonra <a href=\"https:\/\/sunucucozumleri.com\/blog\/parola-saklama-uygulamalari-ve-karsilastirmalari\/\">parola<\/a> g\u00fcvenlik yap\u0131land\u0131rmas\u0131n\u0131 ger\u00e7ekle\u015ftirmemiz gerekmekte. Bu nedenle a\u015fa\u011f\u0131daki komutu uygulayal\u0131m.<\/p>\n<p>mysql_secure_installation<\/p>\n<p>\u0130lk soruyu Yes ile ge\u00e7elim ve parola karma\u015f\u0131kl\u0131k seviyesini belirleyelim. Ben test ortam\u0131nda oldu\u011fum i\u00e7in basit parola kullanaca\u011f\u0131m i\u00e7in Strong de\u011ferini 0 olarak ge\u00e7iyorum. Bu i\u015flemden sonra mysql <a href=\"https:\/\/sunucucozumleri.com\/blog\/frontpage\/\">sunucu<\/a> i\u00e7in bir parola belirliyorum. Ancak s\u00fcrekli olarak ayn\u0131 ekran tekrar tekrar geliyor. \u201cError: SET PASSWORD has no significance for user \u2018root\u2019@\u2019localhost\u2019 as the authentication method used doesn\u2019t store authentication data in the MySQL server\u201d hatas\u0131 beliriyor.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2377\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu7.jpg\" alt=\"\" width=\"628\" height=\"543\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu7.jpg 628w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu7-300x259.jpg 300w\" sizes=\"(max-width: 628px) 100vw, 628px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Sorunu d\u00fczeltmek i\u00e7in a\u015fa\u011f\u0131daki mysql sunucumuza a\u015fa\u011f\u0131daki komut login olal\u0131m.<\/p>\n<p>Mysql<br \/>\nLogin i\u015fleminden sonra \u201cError: SET PASSWORD has no significance for user \u2018root\u2019@\u2019localhost\u2019 as the authentication method used doesn\u2019t store authentication data in the MySQL server\u201d hatas\u0131n\u0131 d\u00fczeltmek i\u00e7in a\u015fa\u011f\u0131daki komutu girelim.<\/p>\n<p>ALTER USER &#8216;root&#8217;@&#8217;localhost&#8217; IDENTIFIED WITH mysql_native_password by &#8216;Parola&#8217;;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2378\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu8.jpg\" alt=\"\" width=\"708\" height=\"298\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu8.jpg 708w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu8-300x126.jpg 300w\" sizes=\"(max-width: 708px) 100vw, 708px\" \/><\/p>\n<p>\u0130\u015flemimiz ba\u015far\u0131 ile tamamland\u0131. Tekrardan Mysql komutu ile login olmaya \u00e7al\u0131\u015fal\u0131m. G\u00fcvenlik yap\u0131land\u0131rmas\u0131 i\u00e7in parolay\u0131 devreye ald\u0131\u011f\u0131m\u0131z ve parolam\u0131z aktif oldu\u011fu i\u00e7in Access Denied for user \u2018root\u2019@\u2019localhost\u2019 yetki hatas\u0131 ald\u0131k.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2379\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu89.jpg\" alt=\"\" width=\"707\" height=\"111\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu89.jpg 707w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu89-300x47.jpg 300w\" sizes=\"(max-width: 707px) 100vw, 707px\" \/><\/p>\n<p>Bizde parola ile mysql sunucumuza ba\u011flanmak i\u00e7in a\u015fa\u011f\u0131daki komutu uygulayal\u0131m.<\/p>\n<p>mysql -u root -p<\/p>\n<p>Sonras\u0131nda alt k\u0131s\u0131mda parola bekleyen alana yukar\u0131 ad\u0131mda ALTER USER \u2018root\u2019@\u2019localhost\u2019 IDENTIFIED WITH mysql_native_password by \u2018Parola\u2019; komut seti i\u00e7erisinde belirledi\u011fimiz parolam\u0131z\u0131 girelim. Sonras\u0131nda ba\u015far\u0131l\u0131 \u015fekilde login oldu\u011fumuzu g\u00f6rebiliriz.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2380\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu10.jpg\" alt=\"\" width=\"708\" height=\"260\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu10.jpg 708w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu10-300x110.jpg 300w\" sizes=\"(max-width: 708px) 100vw, 708px\" \/><\/p>\n<p>Kald\u0131\u011f\u0131m\u0131z yerden devam edebiliriz. Tekrardan a\u015fa\u011f\u0131daki komutu \u00e7al\u0131\u015ft\u0131ral\u0131m.<\/p>\n<p>mysql_secure_installation<\/p>\n<p>Parolam\u0131z\u0131 girelim ve gerekli i\u015flemleri ba\u015ftan yapal\u0131m.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2381\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu11.jpg\" alt=\"\" width=\"709\" height=\"136\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu11.jpg 709w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu11-300x58.jpg 300w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/p>\n<p>Mysql root parolas\u0131n\u0131 de\u011fi\u015ftirme sorusunu YES ile onaylayal\u0131m. Sonras\u0131nda yeni parolam\u0131z\u0131 belirleyelim. Anonymous eri\u015fimleri kapatma, uzak eri\u015fimleri kapatma, test veri taban\u0131n\u0131 silme ve ayr\u0131cal\u0131kl\u0131 tablolar\u0131n y\u00fcklenmesi sorular\u0131n\u0131 s\u0131ras\u0131 ile YES ile ge\u00e7elim.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2382\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu12.jpg\" alt=\"\" width=\"706\" height=\"888\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu12.jpg 706w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu12-239x300.jpg 239w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/p>\n<p>\u0130\u015flemimiz tamamland\u0131. Yeni parolam\u0131z ve ayarlar\u0131m\u0131z ile Mysql sunucumuza login olmak i\u00e7in a\u015fa\u011f\u0131daki komutu \u00e7al\u0131\u015ft\u0131ral\u0131m.<\/p>\n<p>mysql -u root -p<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2383\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu13.jpg\" alt=\"\" width=\"710\" height=\"257\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu13.jpg 710w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu13-300x109.jpg 300w\" sizes=\"(max-width: 710px) 100vw, 710px\" \/><\/p>\n<p>Sonras\u0131nda belirledi\u011fimiz parolam\u0131z\u0131 girelim ve sorunsuzca login oldu\u011fumuzu g\u00f6relim. Buraya kadar olan i\u015flemler \u00f6n haz\u0131rl\u0131kt\u0131 ve tamamland\u0131. Bundan sonraki a\u015famalarda ise art\u0131k zabbix kurulumuna y\u00f6nelik olarak ilgili ad\u0131mlar\u0131 ataca\u011f\u0131z.<\/p>\n<p>Zabbix download sayas\u0131ndaki numara ve ba\u015fl\u0131klara g\u00f6re uymam\u0131z gereken kurallar ve kullanmam\u0131z gereken komut setleri verilmi\u015f durumda \u015fimdi s\u0131ras\u0131 ile bunlar\u0131 uygulayaca\u011f\u0131z.<\/p>\n<p>2-a. Install Zabbix repository (Recository Kurulumu)<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2384\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu14.jpg\" alt=\"\" width=\"1024\" height=\"333\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu14.jpg 1024w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu14-300x98.jpg 300w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu14-768x250.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>wget https:\/\/repo.zabbix.com\/zabbix\/6.2\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_6.2-1+ubuntu22.04_all.deb<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2385\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu135jpg.jpg\" alt=\"\" width=\"705\" height=\"285\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu135jpg.jpg 705w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu135jpg-300x121.jpg 300w\" sizes=\"(max-width: 705px) 100vw, 705px\" \/><\/p>\n<p>dpkg -i zabbix-release_6.2-1+ubuntu22.04_all.deb<br \/>\napt update<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2386\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu16.jpg\" alt=\"\" width=\"707\" height=\"397\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu16.jpg 707w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu16-300x168.jpg 300w\" sizes=\"(max-width: 707px) 100vw, 707px\" \/><\/p>\n<p>2-b. Install Zabbix server, frontend, agent (Zabbix sunucu ve ajan kurulumu)<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2387\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu17.jpg\" alt=\"\" width=\"1024\" height=\"106\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu17.jpg 1024w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu17-300x31.jpg 300w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu17-768x80.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2388\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu18.jpg\" alt=\"\" width=\"1010\" height=\"568\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu18.jpg 1010w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu18-300x169.jpg 300w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu18-768x432.jpg 768w\" sizes=\"(max-width: 1010px) 100vw, 1010px\" \/><\/p>\n<p>2-c. Create initial database (Veri taban\u0131 kontrol\u00fc)<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2389\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu19.jpg\" alt=\"\" width=\"1024\" height=\"296\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu19.jpg 1024w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu19-300x87.jpg 300w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu19-768x222.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>\u00d6ncelikle a\u015fa\u011f\u0131daki komut ile veri taban\u0131m\u0131za tekrardan login olal\u0131m.<\/p>\n<p>Mysql -u root -p<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2390\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu20.jpg\" alt=\"\" width=\"721\" height=\"269\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu20.jpg 721w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu20-300x112.jpg 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/p>\n<p>\u015eimdi s\u0131ras\u0131 ile zabbix komut setlerini \u00e7al\u0131\u015ft\u0131ral\u0131m.<\/p>\n<p>mysql&gt; create database zabbix character set utf8mb4 collate utf8mb4_bin;<br \/>\nmysql&gt; create user zabbix@localhost identified by &#8216;Parola;<br \/>\nmysql&gt; grant all privileges on zabbix.* to zabbix@localhost;<br \/>\nmysql&gt;SET GLOBAL log_bin_trust_function_creators = 1;<br \/>\nmysql&gt; quit;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2391\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu21.jpg\" alt=\"\" width=\"787\" height=\"434\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu21.jpg 787w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu21-300x165.jpg 300w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu21-768x424.jpg 768w\" sizes=\"(max-width: 787px) 100vw, 787px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u015eimdi veri taban\u0131nda \u015feman\u0131n i\u00e7eri al\u0131nmas\u0131 i\u00e7in a\u015fa\u011f\u0131daki komutu ve komutun \u00e7al\u0131\u015fmas\u0131 i\u00e7in parolam\u0131z\u0131 girelim. Bu i\u015flem 2-5 dakika aras\u0131nda s\u00fcrebilir bu nedenle acele etmeyiniz.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2392\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu22.jpg\" alt=\"\" width=\"1024\" height=\"113\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu22.jpg 1024w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu22-300x33.jpg 300w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu22-768x85.jpg 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>zcat \/usr\/share\/doc\/zabbix-sql-scripts\/mysql\/server.sql.gz | mysql -uzabbix -p zabbix<br \/>\n\u0130\u015flem sonras\u0131nda mysql -u root -p komutu ile parolam\u0131z\u0131 girerek login olal\u0131m. Use zabbix; komutu ile olu\u015fturulan 176 adet tabloyu g\u00f6rmemiz gerekmekte.<\/p>\n<p>Veri taban\u0131n\u0131 \u015fema i\u015fleminden sonra a\u015fa\u011f\u0131daki komut seti ile sonraki \u015fema fonksiyonunu k\u0131s\u0131tlamak i\u00e7in parolam\u0131z\u0131 girerek a\u015fa\u011f\u0131daki komutlar\u0131 \u00e7al\u0131\u015ft\u0131ral\u0131m.<\/p>\n<p>mysql -uroot -p<br \/>\nmysql&gt; SET GLOBAL log_bin_trust_function_creators = 0;<br \/>\nmysql&gt; quit;<\/p>\n<p>2-d. Configure the database for Zabbix server (Zabbix i\u00e7in veri taban\u0131 \u00fczerinde ayar)<\/p>\n<p>Veri taban\u0131 \u00fczerinde a\u015fa\u011f\u0131daki ayar\u0131 yapmam\u0131z gerekmekte. Ben yukar\u0131daki komut setinden farkl\u0131 olarak i\u015flemi nano metin d\u00fczenleyici \u00fczerinde yapaca\u011f\u0131m i\u00e7in a\u015fa\u011f\u0131daki komutlar\u0131 kullan\u0131yorum.<\/p>\n<p>Cd&#8211;<br \/>\nNano \/etc\/zabbix\/zabbix_server.conf<\/p>\n<p>A\u00e7\u0131lan ekranda DBPassword parametresini a\u00e7\u0131p veri taban\u0131 parolam\u0131z\u0131 bu alana yazmam\u0131z gerekiyor. Parametremizi aktif edip parolam\u0131z\u0131 giriyor ve ALT+X ile \u00e7\u0131k\u0131\u015f yap\u0131yoruz.<\/p>\n<p>Evet ile yapt\u0131\u011f\u0131m\u0131z de\u011fi\u015fiklikleri kaydedelim.<\/p>\n<p>Kaydedilecek dosya bilgisi geldi\u011finde Enter ile onaylayal\u0131m ve \u00e7\u0131kal\u0131m.<\/p>\n<p>2-e. Start Zabbix server and agent processes<\/p>\n<p>A\u015fa\u011f\u0131daki komutlar ile apache sunucumuzun servislerini yeniden ba\u015flatal\u0131m ve a\u00e7\u0131k duruma getirelim.<\/p>\n<p>systemctl <a href=\"https:\/\/sunucucozumleri.com\/blog\/reboot-ve-restart-arasindaki-farklar-nedir\/\">restart<\/a> zabbix-server zabbix-agent apache2<br \/>\nsystemctl enable zabbix-server zabbix-agent apache2<\/p>\n<p>\u0130\u015flem tamamland\u0131. Son olarak b\u00f6lgesel bir ayar yapmam\u0131z gerekmekte. Bu nedenle a\u015fa\u011f\u0131daki komut setini \u00e7al\u0131\u015ft\u0131ral\u0131m.<\/p>\n<p>Nano \/etc\/zebbix\/apache.conf<\/p>\n<p>Metin d\u00fczenleyicimiz \u00fczerinde a\u00e7t\u0131\u011f\u0131m\u0131z apache.conf dosyam\u0131za a\u015fa\u011f\u0131daki komut setini resimdeki alana ekleyelim. Bu i\u015flemden sonra ALT+X ile dosyam\u0131z\u0131 kaydedip kapatal\u0131m.<\/p>\n<p>Php_value date.timezone Europe\/Istanbul<\/p>\n<p>\u0130\u015flemimiz tamamland\u0131.<\/p>\n<p>Bu a\u015famadan sonra art\u0131k Zabbix web ara y\u00fcz\u00fcne ba\u011flan\u0131p geri kalan birka\u00e7 ayar\u0131 tamamlayarak konsola eri\u015fim sa\u011flayabiliriz.<\/p>\n<p>http:\/\/Localhost\/zabbix http:\/\/127.0.0.1\/zabbix veya http:\/\/hostname\/zabbix adreslerinden bir tanesini kullanarak konsolumuza login olabilir. A\u00e7\u0131lan ekran\u0131m\u0131zda dil se\u00e7imi yaparak sonraki ad\u0131ma ilerleyelim.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-2393\" src=\"https:\/\/sunucucozumleri.com\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu23.jpg\" alt=\"\" width=\"872\" height=\"686\" title=\"\" srcset=\"\/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu23.jpg 872w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu23-300x236.jpg 300w, \/\/sunucucozumleri.com\/blog\/wp-content\/uploads\/2022\/10\/Ubuntu-Mysql-ve-Zabbix-Kurulumu23-768x604.jpg 768w\" sizes=\"(max-width: 872px) 100vw, 872px\" \/><\/p>\n<p>Sistemin \u00e7al\u0131\u015fabilmesi i\u00e7in gerekli kontroller yap\u0131l\u0131yor ve OK ald\u0131k. Next Step ile sonraki ad\u0131ma ge\u00e7elim.<\/p>\n<p>Yap\u0131land\u0131rma i\u015flemleri s\u0131ras\u0131nda kurdu\u011fumuz veri taban\u0131 kullan\u0131c\u0131 ad\u0131 ve parolas\u0131n\u0131 ilgili alana girerek Next Step ile sonraki ad\u0131ma ge\u00e7elim.<\/p>\n<p>Zabbix sunucusuna bir isim verelim, b\u00f6lgesel ayarlar\u0131 ve tema ayarlar\u0131m\u0131z\u0131 belirledikten sonra Next Step ile sonraki ad\u0131ma ge\u00e7elim.<\/p>\n<p>Se\u00e7ti\u011fimiz ayarlar\u0131n bir \u00f6zeti geldi. Uygulanmas\u0131 i\u00e7in Next Step ile sonraki ad\u0131ma ge\u00e7elim.<\/p>\n<p>Konfig\u00fcrasyon ayarlar\u0131m\u0131z ba\u015far\u0131 ile tamamland\u0131. Finish ile ad\u0131mlar\u0131m\u0131z\u0131 art\u0131k tamamlayabiliriz.<\/p>\n<p>Login ekran\u0131m\u0131z geldi. \u0130lk kuruluma \u00f6zel olarak kullan\u0131c\u0131 Admin parola zabbix olarak eri\u015fim sa\u011flayal\u0131m.<\/p>\n<p>\u0130lk kurulum sonras\u0131n Zabbix sunucumuz kaynak olarak hali haz\u0131rda eklenmi\u015f durumda konsolumuz geldi.<\/p>\n<p>Bu makale ; https:\/\/www.rizasahan.com\/2022\/07\/29\/ubuntu-22-04-uzerine-mysql-veri-tabani-ve-zabbix-6-2-monitoring-yazilimi-kurulumu\/ adresinden al\u0131nt\u0131d\u0131r.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Merhaba, bu makalemizde Zabbix kurumunu ele al\u0131yor olaca\u011f\u0131z. Ufaktan ad\u0131mlar\u0131m\u0131za ba\u015flayal\u0131m. Ben \u00f6ncelikle sanal sunucumuza Ubuntu i\u015fletim sisteminin son versiyonunu indirdim ve kurulumu yapt\u0131m. Kurulum sonras\u0131 Ubuntu i\u015fletim sistemimi g\u00fcncelledim. Yani bir i\u015fletim sistemini temel olarak kurdum ve kullan\u0131ma haz\u0131rlad\u0131m. \u015eimdi ise Mysql ve Zabbix temel kurulum i\u015flemini ele alaca\u011f\u0131z. Sonraki ad\u0131mlarda ise \u00f6\u011frendik\u00e7e \u00fcr\u00fcne &hellip;<\/p>\n","protected":false},"author":1,"featured_media":2393,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[24],"tags":[],"class_list":["post-2370","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"acf":[],"_links":{"self":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/2370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/comments?post=2370"}],"version-history":[{"count":0,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/posts\/2370\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media\/2393"}],"wp:attachment":[{"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/media?parent=2370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/categories?post=2370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sunucucozumleri.com\/blog\/wp-json\/wp\/v2\/tags?post=2370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}