svs-proxmox-watchdog/README.md

12 lines
603 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Простой монитор доступности виртуальных машин.
Следит по IP и перезапускает если недостуна
- запускать на хосте proxmox, по крону, раз в минуту (например: crontab -e; */1 * * * * /usr/bin/python3 /root/svs-proxmox-watchdog.py 1>/dev/null 2>/dev/null)
- необходим первичный json со списком виртуалок для мониторинга, вида:
List of dicts: [ {}, {}, ... ]
Dict: { "name" : "", "id" : proxmox_vm_id, "ip" : "x.x.x.x", "down" : 0 }