summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-04-20 23:59:02 +0300
committerPaul Buetow <paul@buetow.org>2023-04-20 23:59:02 +0300
commit155420490e74ee430993e1bb43383a462e4b8354 (patch)
tree041226326006404ec1f190ad1b4fa25be263b38a
parentc2696c6de04d144ba77d4a4637c47d3fd461172b (diff)
gogios works now
-rw-r--r--frontends/Rexfile10
-rw-r--r--frontends/var/nsd/zones/master/dtail.dev.zone.tpl2
2 files changed, 9 insertions, 3 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile
index a9bde17..dbc37d8 100644
--- a/frontends/Rexfile
+++ b/frontends/Rexfile
@@ -400,6 +400,7 @@ task 'gogios_install', group => 'frontends',
desc 'Setup Gogios monitoring system';
task 'gogios', group => 'frontends',
sub {
+ pkg 'monitoring-plugins', ensure => present;
my $gogios_path = '/usr/local/bin/gogios';
file '/etc/gogios.json',
@@ -422,8 +423,13 @@ task 'gogios', group => 'frontends',
run 'adduser -group _gogios -batch _gogios', unless => 'id _gogios';
run 'usermod -d /var/run/gogios _gogios';
- run "echo '*/10 * * * * $gogios_path -cfg /etc/gogios.conf >/dev/null' | crontab -u _gogios -",
- unless => 'crontab -l -u _gogios | grep $gogios_path';
+ file '/tmp/gogios.cron',
+ ensure => 'file',
+ content => "*/5 8-22 * * * $gogios_path >/dev/null\n0 7 * * * $gogios_path -renotify >/dev/null\n",
+ mode => '755';
+
+ run 'cat /tmp/gogios.cron | crontab -u _gogios -';
+ run 'rm /tmp/gogios.cron';
};
desc 'Setup IRC bouncer';
diff --git a/frontends/var/nsd/zones/master/dtail.dev.zone.tpl b/frontends/var/nsd/zones/master/dtail.dev.zone.tpl
index cc7bf66..dea0f5d 100644
--- a/frontends/var/nsd/zones/master/dtail.dev.zone.tpl
+++ b/frontends/var/nsd/zones/master/dtail.dev.zone.tpl
@@ -10,7 +10,7 @@ $TTL 4h
IN NS fishfinger.buetow.org.
86400 IN A 23.88.35.144
- 86400 IN AAAA 2a01:4f8:c17:20f1::4
+ 86400 IN AAAA 2a01:4f8:c17:20f1::42
* 86400 IN CNAME blowfish.buetow.org.
www 86400 IN CNAME fishfinger.buetow.org.
github 86400 IN CNAME mimecast.github.io.