и посмотреть медиа
Linux Network DevOps - courses and guides
и посмотреть медиа
Author's channel on Linux, networks, DevOps, NetDevOps. Lessons on Bash, Git, CI/CD, Docker, Kubernetes, Ansible, Terraform, monitoring.
Author's channel on Linux, networks, DevOps, NetDevOps. Lessons on Bash, Git, CI/CD, Docker, Kubernetes, Ansible, Terraform, monitoring.
AI bot for text-to-speech and voice cloning in Telegram. Create audio using neural network quickly and easily.
Channel for studying Linux, network technologies, DevOps, NetDevOps, DevNet. Materials on Bash, Git, CI/CD, Docker, Kubernetes, Ansible, Terraform, Prometheus, Grafana, Zabbix. Useful for SRE and system administrators. In-depth breakdowns, practices and tools for professional growth.
👾 Проверка доступности списка хостов с логированием времени ответа Иногда нужно быстро проверить, какие из серверов в списке живы, и сколько времени уходит на ответ. Вот простой скрипт на Bash: #!/bin/bash HOSTS_FILE="hosts.txt" LOG_FILE="ping_log.txt" while read -r host; do if [[ -n "$host" ]]; then START=$(date +%s%3N) ping -c 1 -W 1 "$host" &> /dev/null STATUS=$? END=$(date +%s%3N) TIME=$((END - START)) if [[ $STATUS -eq 0 ]]; then echo "$(date '+%Y-%m-%d %H:%M:%S') - $host is UP (response time: ${TIME}ms)" | tee -a "$LOG_FILE" else echo "$(date '+%Y-%m-%d %H:%M:%S') - $host is DOWN" | tee -a "$LOG_FILE" fi fi done < "$HOSTS_FILE" Файл hosts.txt должен содержать список IP или доменов — по одному в строке. 🍑Удобно использовать для мониторинга парка серверов или диагностики проблем с сетью. Telegram 😍 Tg чат 🌐 YouTube 🌐 VK 🌐 Rutube 📺 #bash #linux #sysadmin
Открыть канал и посмотреть медиаOnly registered users can share their opinion.
Be the first to share your impression of this resource!