From e864bb08320748a62429b60232ecc4d5885e61d5 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 2 Aug 2026 16:25:12 +0300 Subject: gogios: add Shuriken album-age check (1w warn, 2w crit) Add a custom gogios check that monitors shuriken album freshness via dist/status.json's unix_epoch, read locally on each frontend (so it covers the whole generation+sync pipeline). warn at 1 week, crit at 2 weeks; CRIT if status.json is missing (album not published). DependsOn the site's HTTP checks. The check_shuriken_age plugin (Perl, Nagios API) lives in the shuriken.sh repo (contrib/); the frontends Rexfile gogios task installs it to /usr/local/bin/ from the sibling shuriken.sh checkout (single source of truth, no vendored copy). --- frontends/Rexfile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'frontends/Rexfile') diff --git a/frontends/Rexfile b/frontends/Rexfile index 3e72227..b673897 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -11,6 +11,7 @@ use Rex -feature => [ '1.14', 'exec_autodie' ]; use Rex::Logger; use File::Slurp; +use File::Basename qw(dirname); # REX CONFIG SECTION @@ -650,6 +651,14 @@ task 'gogios', group => 'wheel', mode => '744'; + # Shuriken album-age check plugin (canonical copy lives in the shuriken.sh + # repo; read it from the sibling checkout so there is one source of truth). + file '/usr/local/bin/check_shuriken_age', + content => read_file( dirname(__FILE__) . '/../../shuriken.sh/contrib/check_shuriken_age' ), + owner => 'root', + group => 'wheel', + mode => '755'; + file '/var/run/gogios', ensure => 'directory', owner => '_gogios', -- cgit v1.2.3