feat(daemon): Add UPSD (NUT) protocol support, Proxmox VM shutdown action, pause/resume monitoring, and network-loss/unreachable handling; bump config version to 4.2

This commit is contained in:
2026-02-20 11:51:59 +00:00
parent 782c8c9555
commit 42b8eaf6d2
30 changed files with 2183 additions and 697 deletions

21
ts/upsd/types.ts Normal file
View File

@@ -0,0 +1,21 @@
/**
* Type definitions for UPSD/NIS (Network UPS Tools) protocol module
*/
/**
* UPSD connection configuration
*/
export interface IUpsdConfig {
/** UPSD server host (default: 127.0.0.1) */
host: string;
/** UPSD server port (default: 3493) */
port: number;
/** NUT device name (default: 'ups') */
upsName: string;
/** Connection timeout in milliseconds (default: 5000) */
timeout: number;
/** Optional username for authentication */
username?: string;
/** Optional password for authentication */
password?: string;
}