Skygist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 49ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
KarelWintersky

KarelWintersky

Joined 1 year ago

All gists 82
Recently created Least recently created Recently updated Least recently updated
KarelWintersky

KarelWintersky / ping_monitor.py

Last active 2 months ago

./ping_monitor.py 8.8.8.8

0 0 2
1 #!/usr/bin/env python3
2 import sys
3 import subprocess
4 import time
5 from datetime import datetime
6 from collections import deque
7
8 class PingMonitor:
9 def __init__(self, host):
10 self.host = host
KarelWintersky

KarelWintersky / smart_monitor

Last active 2 months ago

Связка скриптов для мониторинга SMART дисков в системе, с отправкой результата сканирования в телеграм

0 0 4
1 #!/bin/bash
2
3 # --- Загрузка конфига ---
4 CONFIG_FILE="/srv/smart_monitor.conf"
5 if [ -f "$CONFIG_FILE" ]; then
6 . "$CONFIG_FILE"
7 else
8 echo "Config file $CONFIG_FILE not found!" >&2
9 exit 1
10 fi
Newer Older