summaryrefslogtreecommitdiff
path: root/frontends/Rexfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-08-02 16:25:12 +0300
committerPaul Buetow <paul@buetow.org>2026-08-02 16:25:12 +0300
commite864bb08320748a62429b60232ecc4d5885e61d5 (patch)
tree653ba3e425dc300b1c92a9e3750fa4de49453321 /frontends/Rexfile
parentfa0703374e505f2f63010c5dd371a0b3863f4013 (diff)
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).
Diffstat (limited to 'frontends/Rexfile')
-rw-r--r--frontends/Rexfile9
1 files changed, 9 insertions, 0 deletions
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',