Add .deb agent package with systemd timer and interactive setup

This commit is contained in:
2026-07-16 14:28:12 +07:00
parent 21566c1f1e
commit 53a087fbc3
10 changed files with 261 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
Package: info-user-agent
Version: 1.0.0
Section: admin
Priority: optional
Architecture: all
Depends: python3, python3-psutil, python3-requests
Maintainer: Hidosi <hidosi@hidosi.ru>
Description: InfoUser Monitor - агент мониторинга ПК
Агент собирает метрики компьютера (CPU, RAM, диски, процессы, пользователь, IP)
и отправляет их раз в час на сервер InfoUser Monitor.
.
После установки запустите:
sudo info-user-agent-setup
для настройки адреса сервера и токена.
+20
View File
@@ -0,0 +1,20 @@
#!/bin/sh
set -e
systemctl daemon-reload 2>/dev/null || true
systemctl enable info-user-agent.timer 2>/dev/null || true
systemctl start info-user-agent.timer 2>/dev/null || true
cat <<EOF
========================================
InfoUser Agent установлен!
Настройте сервер и токен:
sudo info-user-agent-setup
Статус таймера:
systemctl status info-user-agent.timer
========================================
EOF
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -e
systemctl daemon-reload 2>/dev/null || true
exit 0
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
set -e
systemctl stop info-user-agent.timer 2>/dev/null || true
systemctl disable info-user-agent.timer 2>/dev/null || true
exit 0