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:
@@ -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\"";
|
||||
|
||||
Reference in New Issue
Block a user