fix: daily report без локального Telegram при fallback SAC (2.1.9-SAC)
Аналог ssh-monitor: report.daily.* только SAC/spool, timeout 45s, spool flush приоритет отчётам (50 файлов/цикл). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+5
-3
@@ -90,7 +90,7 @@ $script:SkipLogDetailLimit = 15
|
||||
# строки ниже, если правки «мелкие» и вы не хотите менять отображаемую версию в логах).
|
||||
# Рекомендация: при значимых релизах меняйте и $ScriptVersion, и version.txt одинаково; при только
|
||||
# исправлениях на шаре — достаточно поднять patch в version.txt (например 1.3.0.1).
|
||||
$ScriptVersion = "2.1.8-SAC"
|
||||
$ScriptVersion = "2.1.9-SAC"
|
||||
|
||||
# Логи (все под InstallRoot)
|
||||
$LogFile = Join-Path $script:InstallRoot "Logs\login_monitor.log"
|
||||
@@ -258,7 +258,9 @@ $SacUrl = ''
|
||||
$SacApiKey = ''
|
||||
$SacSpoolDir = ''
|
||||
$SacAgentIdFile = ''
|
||||
$SacTimeoutSec = 12
|
||||
$SacTimeoutSec = 45
|
||||
$SacSpoolFlushMaxFiles = 50
|
||||
$SacSpoolMaxAgeHours = 72
|
||||
$SacTlsSkipVerify = $false
|
||||
$SacFallbackFailures = 5
|
||||
|
||||
@@ -5040,7 +5042,7 @@ function Start-LoginMonitor {
|
||||
$nextReportCheck = Check-AndSendDailyReport
|
||||
}
|
||||
if ($script:SacClientLoaded) {
|
||||
Invoke-SacFlushSpool -MaxFiles 20 | Out-Null
|
||||
Invoke-SacFlushSpool | Out-Null
|
||||
if ((Get-SacNormalizedMode) -ne 'off' -and $now -ge $script:NextSacCommandPollTime) {
|
||||
Invoke-SacProcessPendingCommands | Out-Null
|
||||
$script:NextSacCommandPollTime = $now.AddSeconds($SacCommandPollIntervalSec)
|
||||
|
||||
Reference in New Issue
Block a user