Probe every domain every minute, and keep it out of its own traffic numbers

NPM's access log only describes hosts somebody visited; the host most likely to be quietly broken
is the one nobody does. Probes carry a User-Agent npm_access_stats.sh drops — unmarked, this
monitor would be fifty thousand requests a day in the very logs it reports on.
This commit is contained in:
Gmer4Lfe
2026-08-15 20:28:30 -04:00
parent c0ace5a0ca
commit 1001c25487
9 changed files with 534 additions and 5 deletions
+4
View File
@@ -189,6 +189,10 @@ function vv_cron_rebuild(array $schedule): bool {
foreach ([
['* * * * *', 'api_cache_writer.sh'],
['0 */2 * * *', 'remote_arr_cache_writer.sh'],
// Every minute, and it gates itself on UPTIME_PROBE_ENABLED rather than being removed from
// here when switched off — a cron entry that appears and disappears is harder to reason
// about than one that always exists and sometimes exits immediately.
['* * * * *', 'uptime_probe.sh'],
] as [$cron, $script]) {
$path = "$toolsDir/$script";
if (file_exists($path)) $lines[] = "$cron bash \"$runner\" \"Plugin/unraid/Tools/$script\" \"$path\"";