Giter VIP home page Giter VIP logo

ansible-role-system-monitor's Introduction

System Monitor Ansible Playbook'u

Bu Ansible playbook'u, belirli sunucular grubundan CPU kullanımı, RAM kullanımı, disk kullanımı ve sistem çalışma süresi gibi temel sistem metriklerini toplar ve bu bilgileri Markdown formatında bir rapor dosyasına yazar. Bu belge, playbook'un ne yaptığını ve genel amacını açıklamaktadır.

Özellikler

  • CPU Kullanımı: Sunucuların CPU kullanım yüzdesini alır.
  • RAM Kullanımı: Kullanılan RAM miktarını insan-okunabilir biçimde (örneğin, MiB, GiB) elde eder.
  • Disk Kullanımı: Kök bölümün disk kullanım yüzdesini çeker.
  • Sistem Çalışma Süresi: Sistemin son yeniden başlatıldığı zamandan beri ne kadar süredir çalıştığını bildirir.

Önkoşullar

  • SSH erişimi olan yetkisine sahip Linux tabanlı hedef sunucular.
ssh-copy-id -i ~/.ssh/mykey [email protected]
ssh-copy-id -i ~/.ssh/mykey [email protected]
ssh-copy-id -i ~/.ssh/mykey [email protected]

Kullanım

  1. Envanterinizi Yapılandırın inventory klasöründeki envanter dosyanızın, metriklerini toplamak istediğiniz sunucuları güncel olarak içerdiğinden emin olun. İşte envanter dosyası için bir örnek yapı:
all:
  children:
    hypervisor:
      hosts:
        proxmox:
          ansible_host: 192.168.1.152
        hyper-v:
          ansible_host: 192.168.1.152
    storage_server:
      hosts:
        storage1:
          ansible_host: 192.168.1.153
        storage2:
          ansible_host: 192.168.1.156
    web_server:
      hosts:
        web1:
          ansible_host: 192.168.1.153
        web2:
          ansible_host: 192.168.1.156
  1. Playbook'u Çalıştır: Aşağıdaki komut ile Ansible playbook'unu çalıştırın:
ansible-playbook -i inventory/cluster_inventory.yml site.yml

Yapı

ansible-role-system-monitor/
├── ansible.cfg
├── collections
│   └── requirements.yml
├── hosts
├── inventory
│   └── server_groups.yml
├── LICENSE
├── output
│   └── example.md
├── playbooks
│   └── roles
│       └── system_monitor
│           ├── files
│           ├── handlers
│           ├── meta
│           ├── output
│           ├── tasks
│           │   ├── 01_system_check.yml
│           │   └── main.yml
│           ├── templates
│           └── vars
│               └── main.yml
├── README.md
└── site.yml

13 directories, 11 files

ansible-role-system-monitor's People

Contributors

murat-akpinar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.