From 0a93db7fc2dcefafaa4c1814dd9f5c58d2891895 Mon Sep 17 00:00:00 2001 From: Morten Brekkevold Date: Tue, 14 May 2024 13:41:14 +0000 Subject: [PATCH] Close netbox ARP records after 30min downtime This adds a default navclean job every five minutes to close ARP records of devices that have been down for more than 30 minutes. Needs to be a separate job line, since it doesn't use the built-in default of 6 month expiry interval. --- python/nav/etc/cron.d/dbclean | 1 + 1 file changed, 1 insertion(+) diff --git a/python/nav/etc/cron.d/dbclean b/python/nav/etc/cron.d/dbclean index c5165c9f2a..bbcb7817d6 100644 --- a/python/nav/etc/cron.d/dbclean +++ b/python/nav/etc/cron.d/dbclean @@ -1,2 +1,3 @@ ## info: Clean database with navclean */5 * * * * navclean -f -q --netbox --websessions +*/5 * * * * navclean -f -q --close-arp --interval '30 minutes'