<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Deniz Kavruk on Medium]]></title>
        <description><![CDATA[Stories by Deniz Kavruk on Medium]]></description>
        <link>https://medium.com/@deniz-kavruk?source=rss-d926ec98e355------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-2VW8B2YwpNxim5TO1Pv3w.jpeg</url>
            <title>Stories by Deniz Kavruk on Medium</title>
            <link>https://medium.com/@deniz-kavruk?source=rss-d926ec98e355------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 14:05:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@deniz-kavruk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Kubespray ile Kubernetes Cluster Kurulumu ve Helm ile Argocd Örneği]]></title>
            <link>https://deniz-kavruk.medium.com/kubespray-ile-kubernetes-cluster-kurulumu-ve-helm-ile-argocd-%C3%B6rne%C4%9Fi-7ac4b91eeec5?source=rss-d926ec98e355------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ac4b91eeec5</guid>
            <dc:creator><![CDATA[Deniz Kavruk]]></dc:creator>
            <pubDate>Tue, 17 Sep 2024 23:56:09 GMT</pubDate>
            <atom:updated>2024-09-17T23:56:09.304Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*j_KCD8cFOO4UYuky4bZJ9Q.png" /></figure><p>Kubespray, Kubernetes clusterlarında konteynerleştirilmiş uygulamaları ve hizmetleri dağıtma, ölçeklendirme ve yönetme sürecini otomatikleştiren bir Kubernetes dağıtım aracıdır. Açık kaynaklı bir projedir. Kubespray, dağıtım sürecini otomatikleştirmek için Ansible’ı kullanır. Cloud Provider’lar, OpenStack, vSphere, Bare-metal dahil olmak üzere birçok altyapıyı destekler. Kubespray ile kullanıcılar, belirli gereksinimleri için optimize edilmiş bir K8s clusterı hızla kurabilir ve yapılandırabilir, ihtiyaçlarına göre node ekleme, node silme, yedekleme ve versiyon yükseltme yapılabilir.</p><h4><strong>Kaynaklar ve Altyapı</strong></h4><p>Kubespray için ayrı bir düşük kaynaklı veya bastion bir Linux sanal sunucu yeterli olacaktır. Bu örnekte Kubespray için Cloud provider üzerinde 1 cpu 2 memory kaynaklı Ubuntu vm, K8s için 1 master 1 worker olacak şekilde 2 Ubuntu vm kurdum.</p><p>K8s cluster kurulduktan sonra Helm ile ArgoCD ayağa kaldıracağız.</p><h4>Kubespray Kurulumu</h4><p>Kubespray için kurulan vm’in update, hostname verilmesi, paket kurulumları (git, python3-pip, sshpass) yapılır. Tüm sunuculara sshpass kurulmalıdır.</p><pre>apt update &amp;&amp; apt upgrade -y<br><br>hostnamectl set-hostname kubespray<br><br>apt install git python3-pip sshpass -y<br><br>pip3 -V<br><br>git version</pre><p>Host dosyasına kubernetes vmlerinin hostname/ip bilgileri girilir.</p><pre>vim /etc/hosts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*1bBmGnDoLit7tQ3AlQI0GQ.png" /></figure><p>Kubespray Github dan repo sunucuya clonlanır ve kubespray dizinine geçilir. pip3 ile gerekli uygulamaların olduğu requirements.txt kurulumu yapılır. ansible, jmespath, jsonschema, netaddr uygulamaları kurulur. Sonrasında inventory/mycluster/hosts.yaml düzenlenir ve kurulacak cluster ipleri eklenir.</p><pre>git clone https://github.com/kubernetes-sigs/kubespray.git<br><br>cd kubespray<br><br>pip3 install -r requirements.txt<br><br>ansible --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*AfThETAzDTPQ2LErh5H6KA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*xs2Y4K1pRegEpVlQ16yE_g.png" /></figure><pre>cp -rfp inventory/sample inventory/mycluster<br><br>declare -a IPS=(172.x.x.x 172.x.x.x)<br><br>CONFIG_FILE=inventory/mycluster/hosts.yaml python3 contrib/inventory_builder/inventory.py ${IPS[@]}</pre><p>Bu adımda kubespray sunucusu k8s nodelarına erişip kurmak için user/password ile ssh erişimi veya ssh-keygen ile sshkey erişimi gerekir. Parolalı erişim güvenlik sorunu yapabileceğinden, sshkey ile kurulum önerilir. Bu örnekte password ile erişim göstereceğim ancak sshkey örneği de ekleyeceğim. Sonrasında configler <strong>kubespray/inventory/mycluster/hosts.yaml </strong>altında yapılacaktır.</p><p>user/password ile ansible düzenleneceğinde öncesinde k8s nodelarına ssh erişimi yapmak gerekmektedir;</p><pre>[all]<br>master   ansible_host=172.x.x.x  ip=172.x.x.x etcd_member_name=etcd1 ansible_user=root ansible_password=x.x.x<br>worker   ansible_host=172.x.x.x  ip=172.x.x.x etcd_member_name=etcd2 ansible_user=root ansible_password=x.x.x<br><br>#[bastion]<br>#bastion ansible_host=x.x.x.x  ansible_user=ec2-user  ansible_ssh_private_key_file=/Users/Documents/test.pem<br><br>[kube-master:vars]<br>supplementary_addresses_in_ssl_keys = [ &quot;172.x.x.x&quot; ]<br><br>[kube-master]<br>master<br><br>[etcd]<br>master<br><br>[kube-node]<br>worker<br><br>[calico-rr]<br><br>[k8s-cluster:children]<br>kube-master<br>kube-node<br>calico-rr</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Usly_ynXqSWuRyaBzJZqVw.png" /></figure><p>sshkey ile yapılırsa ansible düzenleme;</p><pre>ssh-keygen -t rsa<br><br>ssh-copy-id root@172.x.x.x<br><br>ssh-copy-id root@172.x.x.x</pre><p>Erişim sağlandıktan sonra bu adımda bazı kurulum dosyalarını inceleyelim;</p><ul><li><strong>cat kubespray/inventory/mycluster/group_vars/all/all.yml</strong> dosyasında loadbalancer_apiserver port ve healthcheck port vb LB ile ilgili birçok ayar bulunur.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNgLUWY1HJzztA2VlM3xtA.png" /></figure><ul><li><strong>cat kubespray/inventory/mycluster/group_vars/k8s_cluster/k8s-cluster.yml</strong> dosyasında kurulacak k8s versiyonu, network plugin, ip aralığı, dns_mode gibi birçok ayar bulunmaktadır.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*LpXbx4v0U_qvkoYUYTffEw.png" /></figure><p>Ansible ile tüm hostlara erişim denenir;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*zLEIaHvooLtdlIehslRmIw.png" /></figure><pre>ansible -i inventory/mycluster/hosts.yaml -m ping all</pre><p>Kurulum başlatılır;</p><pre>ansible-playbook -i inventory/mycluster/hosts.yaml --become-user=root cluster.yml --become</pre><p>Tamamlanması sunucu kaynağına göre 15–25 dk arası sürebilir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GbeXdajNlaqrzTEnUQ_Gwg.png" /></figure><pre>kubectl get nodes -o wide</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*CrLikVBUmV6ABmA2_wf-9Q.png" /></figure><pre>curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3<br><br>chmod 700 get_helm.sh<br><br>./get_helm.sh</pre><p>Master node’a Helm kurulduktan sonra Argocd imajı lokale eklenir.</p><pre>helm repo add argo https://argoproj.github.io/argo-helm<br><br>helm search repo argo<br><br>helm template argo argo/argo-cd --output-dir argocd-manifests<br><br>helm show values argo/argo-cd &gt; values.yaml<br><br>helm fetch argo/argo-cd<br><br>tar -zxvf argo-cd-&lt;version&gt;.tgz</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1mVRGkl6Z13pxdiGCUsVw.png" /></figure><pre>kubectl create namespace argocd<br><br>kubectl get ns</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*Nc7jM8StMgDDA0yW3g4m7w.png" /></figure><pre>helm install --values values.yaml argocd argo/argo-cd --namespace argocd<br><br>helm upgrade --values values.yaml argocd argo/argo-cd --namespace argocd<br><br>kubectl get all -n argocd<br><br>kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath=&quot;{.data.password}&quot; | base64 --decode ; echo</pre><p><a href="http://185.32.14.60:30080/">http://ipadres:30080</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*UDXbVOGpYH2LT7BWmLxbJA.png" /></figure><p><em>Faydalı olması dileğiyle…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ac4b91eeec5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes + GlusterFS + Heketi Cluster Kurulumları ve Yapılandırmaları — Ubuntu 20— Dynamic…]]></title>
            <link>https://deniz-kavruk.medium.com/kubernetes-glusterfs-heketi-cluster-kurulumlar%C4%B1-ve-yap%C4%B1land%C4%B1rmalar%C4%B1-ubuntu-20-dynamic-f5d92aedbfd1?source=rss-d926ec98e355------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5d92aedbfd1</guid>
            <dc:creator><![CDATA[Deniz Kavruk]]></dc:creator>
            <pubDate>Thu, 28 Jul 2022 14:58:09 GMT</pubDate>
            <atom:updated>2022-07-28T14:58:09.974Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubernetes + GlusterFS + Heketi Cluster Kurulumları ve Yapılandırmaları — Ubuntu 20— Dynamic Provisioning</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*V5chu9ZYCntdJuBXCvzFhw.png" /></figure><p><strong>Glusterfs</strong>: Birden çok sunucudan gelen disk depolama kaynaklarını tek bir genel namespace altında toplayan, ölçeklenebilir, dağıtık kullanılabilen bir dosya sistemidir. Açık kaynaklı bir dosya sistemi olan GlusterFS, disk birimlerini Pod’lara bağlamayı sağlar. High Availability ve Disaster Recovery yapılar sunar. Fiziksel veya Bulut ortamlarında çalışabilir. HA Object Storage için Glusterfs en iyi çözümlerden biridir. Resmi sitesinde daha detaylı bilgiler bulunmaktadır.</p><p><a href="https://docs.gluster.org/en/latest/">https://docs.gluster.org/en/latest/</a></p><p><strong>Heketi:</strong> GlusterFS disklerini yönetmek için kullanılabilecek bir RESTful tabanlı yönetim arabirimi sağlar. Glusterfs için oluşturulmuştur ve diskleri dinamik olarak yönetmeyi sağlar. Kısacası otomasyon sağlar. Heketi üzerindeki işlemler için <strong>heketi-cli</strong> tool çalışmaktadır. <strong>heketi-cli</strong> ile API üzerinden haberleşerek çalışır. Daha detaylı açıklamalar için sitesi:</p><p><a href="https://github.com/heketi/heketi">https://github.com/heketi/heketi</a></p><blockquote>Glusterfs ve Heketi’nin en uygun kullanım şekli 3 adet node şeklindedir. 2 node olarak da çalışır ancak tek node olarak çözüm sağlamamaktadır. Buradaki çalışmada 2 node olarak kurulum yapılacaktır. Kubernetes Cluster ise <strong>Kubespray</strong> açık kaynak çözümü ile kurulan 1.22 versiyonunda bir master ve worker node’dur. Kubernetes için 1.18+ önerilir. Tüm node’lar <strong>Ubuntu 20.04</strong> üzerine kurulmuştur.</blockquote><ul><li>glusterfs01 -192.168.0.32 -Management node</li><li>glusterfs02 - 192.168.0.31</li><li>k8s master01- 192.168.0.27</li><li>k8s worker01 -192.168.0.25</li></ul><ol><li>İlk olarak tüm sunucuların birbirinin adını çözebilmesi için host dosyaları düzenlenir.</li></ol><pre>vim /etc/hosts</pre><pre>192.168.0.32  glusterfs01<br>192.168.0.31  glusterfs02<br>192.168.0.27  master01<br>192.168.0.25  worker01</pre><p><strong>2.</strong> Gluster sunucularına disk eklenir. Hangi Cloud Provider kullanılıyorsa ilgili konsoldan her node için 200 GB yeni volume oluşturup(ihtiyaca göre değişir) sunuculara attach edilir. En kritik noktalardan biridir, disk bağlandıktan sonra sunucudan fdisk ile disk Linux LVM partition olarak eklenmelidir. Başka bir işleme gerek yoktur. Gluster ve heketi kendisi lvm olarak dağıtımı yapacaktır, herhangi bir lv, vg, pv oluşturulmaz.</p><pre>fdisk /dev/vdb</pre><pre>&gt; n</pre><pre>&gt; p</pre><pre>&gt; enter</pre><pre>&gt; t</pre><pre>&gt; 8e</pre><pre>&gt; w</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*abAmJPPy2Wv6raTAOFFw_w.png" /></figure><p><strong>3.</strong> Gluster node olarak kullanılacak sunucular üzerinde Glusterfs kurulumu yapılır.</p><pre>apt-get install software-properties-common<br>add-apt-repository ppa:gluster/glusterfs-7<br>apt update<br>apt install glusterfs-server -y<br>glusterd -V</pre><p><em>NOT: Client olarak kullanıcak sunuculara glusterfs-client paketi kurulacaktır. İleri adımlarda yapacağız.</em></p><p>glusterfs01 üzerine gerekli üç çekirdek modülünü yüklemek için aşağıdaki komut çalıştırılır.</p><pre>apt -y install thin-provisioning-tools</pre><p>Modülleri kontrol etmek şu üç komut çalıştırılır:</p><pre>echo dm_thin_pool | sudo tee -a /etc/modules<br>echo dm_snapshot | sudo tee -a /etc/modules<br>echo dm_mirror | sudo tee -a /etc/modules</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*-q_lAcbWr21cRWXtm537qw.png" /></figure><p>Glusterfs cluster yapısı oluşturulur ve node’lar birbirine bağlanır. peer status komutuyla bağlantılar kontrol edilir.</p><pre>gluster peer probe glusterfs01<br>gluster peer probe glusterfs02<br>gluster peer status</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*esDcazCXMF3JDUrrbRoz5w.png" /></figure><p>Şimdi gluster servisi başlatılır ve enable edilir.</p><pre>systemctl start glusterd<br>systemctl enable glusterd<br>systemctl status glusterd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*QdE67mgx6MAAnxk1KdnEkw.png" /></figure><p><strong>4. </strong>Heketi kurulumu yapılır.</p><pre>wget <a href="https://github.com/heketi/heketi/releases/download/v7.0.0/heketi-v7.0.0.linux.amd64.tar.gz">https://github.com/heketi/heketi/releases/download/v7.0.0/heketi-v7.0.0.linux.amd64.tar.gz</a></pre><pre>tar -xvf heketi-v7.0.0.linux.amd64.tar.gz</pre><pre>chmod +x heketi/{heketi,heketi-cli}</pre><pre>cp heketi/{heketi,heketi-cli} /usr/bin</pre><pre>mkdir -p /var/lib/heketi /etc/heketi /var/log/heketi</pre><p>Yukarıdaki adımlar tamamlandıktan sonra config dosyaları düzenlenir. İlk olarak heketi servisi oluşturulur.</p><pre>vim /lib/systemd/system/heketi.service</pre><p>heketi.service içeriğine eklenir ve kaydedilir:</p><pre>[Unit]<br>Description=Heketi Server<br>[Service]<br>Type=simple<br>WorkingDirectory=/var/lib/heketi<br>ExecStart=/usr/bin/heketi --config=/etc/heketi/heketi.json<br>Restart=on-failure<br>StandardOutput=syslog<br>StandardError=syslog<br>[Install]<br>WantedBy=multi-user.target</pre><p>Şimdi heketi.json dosyası düzenlenir.</p><pre>vim /etc/heketi/heketi.json</pre><p>heketi.json içeriğine eklenir ve kaydedilir:</p><pre>{<br>  &quot;_port_comment&quot;: &quot;Heketi Server Port Number&quot;,<br>  &quot;port&quot;: &quot;8080&quot;,</pre><pre>&quot;_use_auth&quot;: &quot;Enable JWT authorization. Please enable for deployment&quot;,<br>  &quot;use_auth&quot;: false,</pre><pre>&quot;_jwt&quot;: &quot;Private keys for access&quot;,<br>  &quot;jwt&quot;: {<br>    &quot;_admin&quot;: &quot;Admin has access to all APIs&quot;,<br>    &quot;admin&quot;: {<br>      &quot;key&quot;: &quot;123456&quot;<br>    },<br>    &quot;_user&quot;: &quot;User only has access to /volumes endpoint&quot;,<br>    &quot;user&quot;: {<br>      &quot;key&quot;: &quot;123456&quot;<br>    }<br>  },</pre><pre>&quot;_glusterfs_comment&quot;: &quot;GlusterFS Configuration&quot;,<br>  &quot;glusterfs&quot;: {<br>    &quot;_executor_comment&quot;: [<br>      &quot;Execute plugin. Possible choices: mock, ssh&quot;,<br>      &quot;mock: This setting is used for testing and development.&quot;,<br>      &quot;      It will not send commands to any node.&quot;,<br>      &quot;ssh:  This setting will notify Heketi to ssh to the nodes.&quot;,<br>      &quot;      It will need the values in sshexec to be configured.&quot;,<br>      &quot;kubernetes: Communicate with GlusterFS containers over&quot;,<br>      &quot;            Kubernetes exec api.&quot;<br>    ],<br>    &quot;executor&quot;: &quot;ssh&quot;,</pre><pre>&quot;_sshexec_comment&quot;: &quot;SSH username and private key file information&quot;,<br>    &quot;sshexec&quot;: {<br>      &quot;keyfile&quot;: &quot;/etc/heketi/heketi_key&quot;,<br>      &quot;user&quot;: &quot;root&quot;<br>    },</pre><pre>&quot;_kubeexec_comment&quot;: &quot;Kubernetes configuration&quot;,<br>    &quot;kubeexec&quot;: {<br>      &quot;host&quot; :&quot;<a href="https://kubernetes.host:8443/">https://kubernetes.host:8443</a>&quot;,<br>      &quot;cert&quot; : &quot;/path/to/crt.file&quot;,<br>      &quot;insecure&quot;: false,<br>      &quot;user&quot;: &quot;kubernetes username&quot;,<br>      &quot;password&quot;: &quot;password for kubernetes user&quot;,<br>      &quot;namespace&quot;: &quot;Kubernetes namespace&quot;,<br>      &quot;fstab&quot;: &quot;Optional: Specify fstab file on node.  Default is /etc/fstab&quot;<br>    },</pre><pre>&quot;_db_comment&quot;: &quot;Database file name&quot;,<br>    &quot;db&quot;: &quot;/var/lib/heketi/heketi.db&quot;,<br>    &quot;brick_max_size_gb&quot; : 1024,<br> &quot;brick_min_size_gb&quot; : 1,<br> &quot;max_bricks_per_volume&quot; : 33,</pre><pre>&quot;_loglevel_comment&quot;: [<br>      &quot;Set log level. Choices are:&quot;,<br>      &quot;  none, critical, error, warning, info, debug&quot;,<br>      &quot;Default is warning&quot;<br>    ],<br>    &quot;loglevel&quot; : &quot;debug&quot;<br>  }<br>}</pre><p>Ssh key’ler oluşturulur ve gluster nodelarına kopyalanır. Bu adımı yapmadan heketi servisi başlatılırsa hata alınabilir. ssh-key’ler kopyalandıktan sonra servis çalışacaktır.</p><pre>ssh-keygen -m PEM -t rsa -b 4096 -q -f /etc/heketi/heketi_key<br>ssh-copy-id -i /etc/heketi/heketi_key root@glusterfs01<br>ssh-copy-id -i /etc/heketi/heketi_key root@glusterfs02</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*ZBdmdKfyGJQwiLZJNYkzQw.png" /></figure><p>Şimdi heketi servisi başlatılır:</p><pre>systemctl start heketi<br>systemctl daemon-reload<br>systemctl enable heketi<br>systemctl status heketi</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*u8usbHpmdYSWNJeyfkVWgA.png" /></figure><pre>#komutu ile heketi portunun dinlendiği görülebilir.</pre><pre>netstat -tuplen | grep LISTEN | grep heketi</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mu5SIl8FPu5DcKDqgmbz8A.png" /></figure><p><strong>5. </strong>Heketi kurulumu da tamamlandıktan sonra gluster topology düzenlenir ve heketi-cli ile yüklemesi yapılır.</p><pre>vim /etc/heketi/topology.json</pre><p>topology.json içeriği aşağıdaki gibi düzenlenip kaydedilir:</p><pre>{<br>  &quot;clusters&quot;: [<br>    {<br>      &quot;nodes&quot;: [<br>        {<br>          &quot;node&quot;: {<br>            &quot;hostnames&quot;: {<br>              &quot;manage&quot;: [<br>                &quot;192.168.0.32&quot;<br>              ],<br>              &quot;storage&quot;: [<br>                &quot;192.168.0.32&quot;<br>              ]<br>            },<br>            &quot;zone&quot;: 1<br>          },<br>          &quot;devices&quot;: [<br>            &quot;/dev/vdb1&quot;<br>          ]<br>        },<br>        {<br>          &quot;node&quot;: {<br>            &quot;hostnames&quot;: {<br>              &quot;manage&quot;: [<br>                &quot;192.168.0.31&quot;<br>              ],<br>              &quot;storage&quot;: [<br>                &quot;192.168.0.31&quot;<br>              ]<br>            },<br>            &quot;zone&quot;: 2<br>          },<br>          &quot;devices&quot;: [<br>            &quot;/dev/vdb1&quot;<br>          ]<br>         }<br>      ]<br>    }<br>  ]<br>}</pre><p>eğer birden fazla disk varsa “/dev/vdb1”,”/dev/vdb2&quot;,”/dev/vdc1&quot;,”/dev/vdd1&quot; şeklinde eklenebilir.</p><p>Heketi cli ile topology yüklemesi yapılır:</p><pre>export HEKETI_CLI_SERVER=<a href="http://localhost:8080/">http://localhost:8080</a></pre><pre>heketi-cli topology load --json=/etc/heketi/topology.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*DiJmD8oXZl5X2fabtvcYJA.png" /></figure><p>Topoloji ve kurulumlar başarıyla tamamlandı.</p><p><strong>6. Glusterfs-Heketi topoloji kontrolleri nasıl yapılır?</strong></p><pre>#en büyük yardımcı --help :) Bazı örnekler aşağıdadır.</pre><pre>heketi-cli --help<br>heketi-cli cluster list<br>heketi-cli topology info<br>heketi-cli cluster info a722bdc6767590fb2a21dcd2b414ac80<br>tail -f /var/log/glusterfs/glusterd.log</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*nOJYnKNdkJlByNS_if5HKw.png" /><figcaption>heketi-cli cluster list</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/701/1*KEYB1_LKnVrPjzZoOCxswg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3TMak7S14M0Y346PWvsCzQ.png" /><figcaption>heketi-cli topology info</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HSW_5meK_IEXPL__kwllTw.png" /><figcaption>tail -f /var/log/glusterfs/glusterd.log</figcaption></figure><p><strong>7. </strong>Gluster nodelarında işlemler tamamlandı. Bu adımda Kubernetes Clusterımıza geçip ayarlamaları yapacağız. İlk olarak Kubernetes nodelarına glusterfs-client paketleri kurulmalıdır. Sonrasında Storage Class, Persistent Volume Claim, Endpoint oluşturulacak.</p><p>Master ve Worker node üzerine glusterfs-client kurulumu yapılır:</p><pre>apt-get install software-properties-common<br><br>add-apt-repository ppa:gluster/glusterfs-7<br><br>apt install glusterfs-client -y</pre><p>Client paket kurulumu tamamlandıktan sonra Kubernetes Master node üzerinde objeleri oluşturulur. İlk olarak endpoint oluşturulur. adreslere gluster nodelarının bilgileri girilir.</p><pre>vim endpoint.yaml<br>kubectl create -f endpoint.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLWnS7C2_8fk6-NggyP70w.png" /></figure><pre>apiVersion: v1<br>kind: Endpoints<br>metadata:<br>  name: glusterfs-endpoint<br>  labels:<br>     storage.k8s.io/name: glusterfs<br>subsets:<br>  - addresses:<br>      - ip: 192.168.0.32<br>        hostname: glusterfs01<br>    ports:<br>      - port: 1<br>  - addresses:<br>      - ip: 192.168.0.31<br>        hostname: glusterfs02<br>    ports:<br>      - port: 1</pre><p>Storage Class ve PV’lerin bound olacağı PersistentVolumeClaim oluşturulur. Storage Class yaml dosyasındaki önemli noktalar, gluster tarafından alınması gereken clusterid, resturl, replica sayısı gibi bilgilerdir.</p><pre>vim sc.yaml<br>kubectl create -f sc.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3SrOPth5pt9PTOvF3CiO4g.png" /></figure><pre>apiVersion: storage.k8s.io/v1<br>kind: StorageClass<br>metadata:<br>  name: gluster-heketi<br>provisioner: kubernetes.io/glusterfs<br>reclaimPolicy: Retain<br>volumeBindingMode: Immediate<br>allowVolumeExpansion: true<br>parameters:<br>  resturl: &quot;<a href="http://192.168.0.32:8080/">http://192.168.0.32:8080</a>&quot;<br>  restauthenabled: &quot;false&quot;<br>  volumetype: &quot;replicate:2&quot;<br>  clusterid: &quot;b17d1d2a6de174eace38e0b0b48de9e5&quot;</pre><p>PVC oluşturulur. 5 GB alan verilmiştir. Oluşturduktan sonra Bound olması gerekmektedir.</p><pre>vim pvc.yaml<br>kubectl create -f pvc.yaml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wOfff8xUOhTXq5GToXkf_Q.png" /></figure><pre>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br> name: gluster-pvc<br> annotations:<br>    volume.beta.kubernetes.io/storage-class: gluster-heketi<br>spec:<br> accessModes:<br>  - ReadWriteMany<br> resources:<br>   requests:<br>        storage: 5Gi</pre><p>Aşağıda otomatik oluşan bir 5 GB bir PV vardır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RN6EPAnqA_UcEZwOkcwzDQ.png" /></figure><p>Glusterfs-Heketi node’una geçip 5 GB lık brick’ler oluştuğunu teyit edelim.</p><p>heketi-cli topology info komutu detaylı bilgi verecektir. Görüldüğü gibi glusterda disk alanı başarıyla oluşturulmuştur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wCY5HFMxcYA2udjDIEmflQ.png" /></figure><p><em>Faydalı olması dileğiyle…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5d92aedbfd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Grafana Kurulumu ve Zabbix Eklentisi /Ubuntu 20.04]]></title>
            <link>https://deniz-kavruk.medium.com/grafana-kurulumu-ve-zabbix-eklentisi-ubuntu-20-04-fadcc9679d8b?source=rss-d926ec98e355------2</link>
            <guid isPermaLink="false">https://medium.com/p/fadcc9679d8b</guid>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[zabbix]]></category>
            <category><![CDATA[grafana-plugin]]></category>
            <dc:creator><![CDATA[Deniz Kavruk]]></dc:creator>
            <pubDate>Thu, 07 Apr 2022 20:34:19 GMT</pubDate>
            <atom:updated>2022-04-07T21:27:05.893Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*2mo0WGcm78ilVeSdPeHxig.jpeg" /></figure><p>Grafana, açık kaynak kodlu, çeşitli veri kaynaklarından topladığı verileri zengin görsel ve grafiklerde sunabilen bir web uygulamasıdır. Zengin grafikler ve tablolar sunabilen Grafana monitoring uygulaması, Zabbix, Prometheus, InfluxDB, ElasticSearch gibi birçok kaynağı destekler. Bu kaynaklardan çektiği verileri işler ve zengin dashboard seçenekleri üzerinden görselleştirir. Resmi sitesinden çok daha detaylı bilgi elde edilebilir.</p><p><a href="https://grafana.com/">https://grafana.com</a>/</p><p>Bu yazımızda Ubuntu 20.04 üzerinde Grafana 8.4.5 kurulumu ve Zabbix 6.0 ile bağlamayı anlatacağım.</p><p>Bağımlılık paketleri yüklenir:</p><pre>sudo apt-get install -y apt-transport-https<br>sudo apt-get install -y software-properties-common wget<br>wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -</pre><p>Stabil sürüm için repo eklenir:</p><pre>echo &quot;deb https://packages.grafana.com/oss/deb stable main&quot; | sudo tee -a /etc/apt/sources.list.d/grafana.list</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gkgPATvE_OZCCF3mpNnWRg.png" /></figure><p>Repo eklendikten sonra yükleme yapılır :</p><pre>sudo apt-get update<br>sudo apt-get install grafana</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*PrckdO7ZPz9ys-ha7KxZ-A.png" /></figure><p>Yükleme tamamlanınca servis başlatılır:</p><pre>sudo systemctl daemon-reload<br>sudo systemctl start grafana-server<br>sudo systemctl status grafana-server</pre><p>Grafana sunucusunu açılışta başlayacak şekilde yapılandırılır:</p><pre>sudo systemctl enable grafana-server.service</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KtA-NQHvuHKRwP597mLhUg.png" /></figure><p>Paket detayları ve özelleştirilmiş konfigürasyonlar yapılmak istenirse aşağıdaki listede tüm dosyalar eklenmiştir. Biz bu adımı geçeceğiz, özel bir ayar yapmayacağız.</p><ul><li>Binary yapılandırması için: /usr/sbin/grafana-server</li><li>Init.d script yapılandırmaları için: /etc/init.d/grafana-server</li><li>Default dosya yapılandırmaları (environment vars) için: /etc/default/grafana-server</li><li>Yapılandırma dosyası için: /etc/grafana/grafana.ini</li><li>Default konfigürasyonlar için log dosyası: /var/log/grafana/grafana.log</li><li>Konfigürasyon özelleştirmeleri SQLite3 db için: /var/lib/grafana/grafana.db</li><li>HTML/JS/CSS ve diğer Grafana dosyası için: /usr/share/grafana</li></ul><p>Bu adımda opsiyonel olarak birçok dashboard plugin seçenekleri yüklenebilir. Zabbix plugin de bu adımda yüklenmektedir.</p><pre>grafana-cli plugins install alexanderzobnin-zabbix-app<br><br>grafana-cli plugins install btplc-status-dot-panel<br>grafana-cli plugins install farski-blendstat-panel<br>grafana-cli plugins install snuids-radar-panel<br>grafana-cli plugins install citilogics-geoloop-panel<br>grafana-cli plugins install grafana-worldmap-panel<br>grafana-cli plugins install btplc-peak-report-panel<br>grafana-cli plugins install btplc-status-dot-panel<br>grafana-cli plugins install snuids-radar-panel<br>grafana-cli plugins update-all</pre><pre>systemctl restart grafana-server</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kRI05HEIS4pXSGyYanuMtA.png" /></figure><p>Grafana kurulumu tamamladı, sonrasında <a href="http://185.32.14.10:3000/login"><strong>http://IPADRESİ:3000/login</strong></a> ile arayüze bağlanılır. Grafana default olarak 3000 portunu kullanır. Arayüze ilk giriş kullanıcı bilgileri <strong>admin admin</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q80s-QDO0g9dnQ2mHmd7HA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X__WCROlHWOVRxbTfeyfSA.png" /></figure><p>Şimdiki adımda halihazırda kurulmuş olan Zabbix yapısını Data Source olarak Grafanaya bağlayacağız. Sol konsol seçeneklerinden <strong>Data Source</strong> seçilir. <strong>Plugins</strong> adımı seçilerek zabbix plugin aktif edilir. Aktif edildikten sonra <strong>Data Source</strong> adımından Zabbix seçilerek eklenir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QNMBZ9n6lGSdbdIszmbC7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HjbWAhqhcS-adh6Jt-8OxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*UtFoSDbAISc5iqjjuEqwzA.png" /></figure><p>Zabbix Server IP’si data source adımına eklenir, <strong>Basic auth </strong>ve <strong>Zabbix API details</strong> yerlerine zabbix giriş bilgileri girilerek <strong>Save&amp;Test</strong> ile kaydedilir. Bağlantı testi başarılıysa bağlantı tamamlanmıştır.</p><p>Bir sonraki yazıda dashboard oluşturma detaylarını işleyeceğiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*dT1g_wS3BZbjOFyunGZgSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oMzJ_D2OgC6_bJ69D5GJtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eztKW_zjfnBy9jstm7cRWg.png" /></figure><p>Faydalı olması dileğiyle…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fadcc9679d8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux  Üzerine Zabbix Agent Yükleme]]></title>
            <link>https://deniz-kavruk.medium.com/linux-%C3%BCzerine-zabbix-agent-y%C3%BCkleme-579ced7b6d5e?source=rss-d926ec98e355------2</link>
            <guid isPermaLink="false">https://medium.com/p/579ced7b6d5e</guid>
            <category><![CDATA[zabbix-agent]]></category>
            <category><![CDATA[zabbix]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Deniz Kavruk]]></dc:creator>
            <pubDate>Fri, 08 Jan 2021 16:08:56 GMT</pubDate>
            <atom:updated>2022-04-07T21:32:03.797Z</atom:updated>
            <content:encoded><![CDATA[<h3>Linux Üzerine Zabbix Agent Yükleme</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*jjnVKRPU1EN_q4skjzWDHA.png" /></figure><p>Zabbix Agent’ı CentOS 7 ve Ubuntu 18.04 üzerinde yüklemeyi ve konfigüre etmeyi göstereceğim.</p><p>Agent, izlemek istediğimiz OS üzerine yüklenerek, bilgi çekmeyi ve Zabbix Server’a iletmeyi sağlar.</p><p><strong>Adım 1 : Zabbix Repository Eklemek</strong></p><p>Aşağıda Zabbix versiyon 5.0 için CentOS 7–8 ve Ubuntu 18–20 repoları bulunmaktadır. Uygun olan repo eklenmelidir. Eğer GUI kullanılıyorsa paket olarak da resmi sitesinden indirilebilmektedir. Destekleyen tüm OS ve versiyonlar için paketler bulunmaktadır.</p><blockquote><a href="https://www.zabbix.com/download_agents">https://www.zabbix.com/download_agents</a></blockquote><blockquote><a href="https://repo.zabbix.com/zabbix/5.0/">https://repo.zabbix.com/zabbix/5.0/</a></blockquote><p>Zabbix 5.0 / RHEL-CentOS 8:</p><pre># rpm -Uvh <a href="https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm">https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm</a></pre><p>Zabbix 5.0 / RHEL-CentOS 7:</p><pre># rpm -Uvh <a href="https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm">https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm</a></pre><p>Zabbix 5.0 / Ubuntu 20.04:</p><pre>wget <a href="https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bfocal_all.deb">https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bfocal_all.deb</a></pre><p>Zabbix 5.0 / Ubuntu 18.04:</p><pre>wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1%2Bbionic_all.deb</pre><p><strong>Adım 2 : Update ve Zabbix Agent Yüklemek</strong></p><p>Repo eklendikten sonra update işlemi yapılır ve agent yüklenir.</p><blockquote>CentOS:</blockquote><pre><strong>yum update -y</strong></pre><pre><strong>yum install zabbix-agent -y</strong></pre><blockquote>Ubuntu:</blockquote><pre><strong>sudo apt update -y</strong></pre><pre><strong>sudo dpkg -i zabbix-release_5.0-1+bionic_all.deb</strong></pre><pre><strong>sudo apt install zabbix-agent -y</strong></pre><h4>Adım 3 : Zabbix Agent Konfigürasyon</h4><p>Kısaca Config dosyamızı açıyoruz ve içerisinde Server ve Hostname kısımlarını kendimize göre düzenliyoruz. Akabinde dosyayı kaydedip çıkıyoruz.</p><pre><strong>vim /etc/zabbix/zabbix_agentd.conf</strong></pre><p>Aşağıdaki satırları bularak server adresine göre düzenlenir.</p><blockquote>Server=127.0.0.1<br> Zabbix Server IP ya da kullanılacaksa Proxy IP’si.<br> <br> Hostname=Kurulumu yapılan makinenin uniq adı.Türkçe karakter kullanılmaması önerilir.</blockquote><p><strong>ListenPort:</strong> Zabbix sunucunun isteklerini hangi porttan dinleyeceğini ayarlar. Default olarak 10050 portunu dinler.</p><p><strong>LogFile:</strong> Logları nereye kaydedeceğini belirtir. Default yolu var/log/zabbix/zabbix_agentd.log</p><p>Son olarak servis başlatılır ve enable edililir.</p><pre><strong># systemctl start zabbix-agent</strong></pre><pre><strong># systemctl enable zabbix-agent</strong></pre><p>Servis durumu status komutuyla görülebilir.</p><pre><strong># systemctl status zabbix-agent</strong></pre><p>Versiyon kontrolü için <strong>#zabbix_agent -V</strong> komutu kullanılır.</p><p>Firewall açıksa izin verilmesi gerekmektedir.</p><pre><strong># firewall-cmd — add-port={10051/tcp,10050/tcp} — permanent</strong></pre><pre><strong># firewall-cmd --reload</strong></pre><p><em>Faydalı olması dileğiyle…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=579ced7b6d5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CentOS7 Üzerinde Zabbix Proxy Kurulumu]]></title>
            <link>https://deniz-kavruk.medium.com/centos7-%C3%BCzerinde-zabbix-proxy-kurulumu-929b838be2d6?source=rss-d926ec98e355------2</link>
            <guid isPermaLink="false">https://medium.com/p/929b838be2d6</guid>
            <category><![CDATA[zabbix]]></category>
            <category><![CDATA[zabbix-proxy]]></category>
            <dc:creator><![CDATA[Deniz Kavruk]]></dc:creator>
            <pubDate>Thu, 17 Dec 2020 15:06:02 GMT</pubDate>
            <atom:updated>2022-04-07T21:32:30.830Z</atom:updated>
            <content:encoded><![CDATA[<h3>CentOS 7 Üzerinde Zabbix Proxy Kurulumu</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*jjnVKRPU1EN_q4skjzWDHA.png" /></figure><p>Zabbix Proxy, bir veya daha fazla izlenen cihazdan izleme verilerini toplayan, bilgileri esasen Zabbix Server adına çalışarak oraya gönderen bir yapıdır. Kısaca Zabbix Server üzerindeki yükü azaltmak, verilerin lokalde düzenli toplanması ve kolay analiz edilebilmesi için önemlidir.</p><p>Server ve Proxy versiyon uyumluğu çok önemlidir.</p><p>CentOS 7 üzerinde kurulumu yapılacaktır. Server kurulumu yapıldığı öngörülerek detaylara girmeyeceğim.</p><p>Sunucu üzerinde update, SELinux ve firewalld gibi ayarlamalar yapıldıktan sonra zabbix versiyonuna göre ilgili repo’ları eklemesi gerekmektedir. Versiyon 5.0 ve 4.4 için repoları ekledim.</p><p>RHEL 8/5.0:</p><pre>rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm</pre><p>RHEL 7 /5.0:</p><pre>rpm -Uvh <a href="https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm">https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm</a></pre><p>RHEL 8 /4.4:</p><pre>rpm -Uvh <a href="https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm">https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm</a></pre><p>RHEL 7/4.4:</p><pre>rpm -Uvh <a href="https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm">https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm</a></pre><p>İlgili repo eklendikten sonra yükleme işlemine geçilir;</p><pre>yum install zabbix-proxy-mysql -y</pre><p>Eksik paketten hata vermemesi için Epel repoları eklenmesi tavsiye edilir;</p><pre>yum install epel-release -y</pre><p>Database olarak MariaDB yüklenip servis enable edilir.</p><pre>yum install -y install mariadb-server &amp;&amp; systemctl start mariadb &amp;&amp; systemctl enable mariadb</pre><p>Mysql’e bağlanılıp, DB oluşturulup, aşağıdaki gibi sırasıyla ayarlar yapılıp çıkılır.</p><pre># mysql</pre><pre># create database zabbix_proxy character set utf8 collate utf8_bin;</pre><pre># grant all privileges on zabbix_proxy.* to zabbix@localhost identified by &#39;zabbix&#39;;</pre><pre># show databases;</pre><blockquote>DB ayarları ile ilgili detay vermekte fayda var.</blockquote><blockquote>create database <strong>(zabbix_proxy)</strong> burada istenilen isim DB’ye verilebilir.</blockquote><blockquote>grant all privileges on <strong>(db ismi)</strong> to <strong>(verilecek kullanıcı adı)</strong>@localhost identified by <strong>‘verilecek db parolası’</strong>;</blockquote><blockquote>Bu kurallara göre isim verilmelidir.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wEQzNkLcxmjX6LqY04JCGA.png" /></figure><p>Dizin değiştirilip zabbix-proxy-mysql yolu bulunur. Dizin içerisinde schema.sql.gz görülmelidir. zcat işlemi biraz zaman alabiliyor.</p><pre># cd /usr/share/doc/zabbix-proxy-mysql-5...</pre><pre># ls</pre><pre># zcat schema.sql.gz | mysql zabbix_proxy</pre><p>İşlem tamamlandıktan sonra config dosyasına girilip;</p><p>Database değerleri, oluşturulan değerlerle aynı olup olmadığı kontrol edilir/güncellenir.</p><p><strong>Hostname=</strong> Arayüze eklenecek proxy adı birebir eşleşecek şekilde Hostname kısmına yazılır.</p><p><strong>Server=</strong> üzerine Zabbix Server Ip adresi verilir.</p><p>Aşağıdaki gibi konfigürasyonlar yapıldıktan sonra kaydedilip çıkılır ve servis başlatılır.</p><pre># vim /etc/zabbix/zabbix_proxy.conf<br>DBHost=localhost<br>DBName=zabbix_proxy<br>DBUser=zabbix<br>DBPassword=zabbix</pre><pre>Hostname=&lt;testvm&gt;<br>Server=(zabbix server IP yazılır)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*fo4wJr7yQHiDi8OttZd8dA.png" /></figure><p>Servis başlatılır ve enable edilir.</p><pre># systemctl start zabbix-proxy &amp;&amp; systemctl enable zabbix-proxy</pre><pre># systemctl status zabbix-proxy</pre><p>Zabbix Server, Proxy ve agent versiyonlarını öğrenmek için;</p><pre>zabbix_server -V</pre><pre>zabbix_proxy -V</pre><pre>zabbix_agentd -V</pre><p>Proxy servisi sorunsuz çalıştıysa arayüz üzerinde eklenmesi gerekmektedir.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T9PYgtngHVcRSFpeeKxwvg.png" /></figure><p>Administration &gt; Proxies &gt; Create Proxy &gt; Proxy name /others &gt; Add</p><p>Proxy sunucusu takip edileceğinden Host olarak da eklenmelidir.</p><p>Faydalı olması dileğiyle.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=929b838be2d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>