diff options
| author | Paul Buetow <paul@buetow.org> | 2023-04-23 01:02:49 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-04-23 01:02:49 +0300 |
| commit | c787a03f1e89193e6e2f8e555aa711770cbdf4f4 (patch) | |
| tree | 66fb6dfa923a73cdf0a1030000fbc2ecd02ec30f | |
| parent | 46e778abf68d5761a2833033d41cd4d5d81f3a6b (diff) | |
add nrpe
| -rw-r--r-- | frontends/Rexfile | 2 | ||||
| -rw-r--r-- | frontends/etc/gogios.json.tpl | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index 13031ad..6fdfcf6 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -401,6 +401,8 @@ desc 'Setup Gogios monitoring system'; task 'gogios', group => 'frontends', sub { pkg 'monitoring-plugins', ensure => present; + pkg 'nrpe', ensure => present; + my $gogios_path = '/usr/local/bin/gogios'; file '/etc/gogios.json', diff --git a/frontends/etc/gogios.json.tpl b/frontends/etc/gogios.json.tpl index b1254d4..0d8a1f6 100644 --- a/frontends/etc/gogios.json.tpl +++ b/frontends/etc/gogios.json.tpl @@ -2,7 +2,7 @@ "EmailTo": "paul", "EmailFrom": "gogios@mx.buetow.org", "CheckTimeoutS": 10, - "CheckConcurrency": 2, + "CheckConcurrency": 3, "StateDir": "/var/run/gogios", "Checks": { <% for my $host (@$acme_hosts) { -%> @@ -21,7 +21,7 @@ }, <% } -%> <% } -%> - <% for my $host (qw(cloud anki wallabag)) { -%> + <% for my $host (qw(cloud anki bag babylon5)) { -%> "<%= $host %>.buetow.org TLS Certificate": { "Plugin": "/usr/local/libexec/nagios/check_http", "Args": ["--sni", "-H", "<%= $host %>.buetow.org", "-C", "30" ] @@ -35,7 +35,7 @@ "Args": ["<%= $host %>.buetow.org", "-6"] }, <% } -%> - <% for my $host (qw(fishfinger blowfish vulcan babylon)) { %> + <% for my $host (qw(fishfinger blowfish babylon5)) { %> "Check ICMP4 <%= $host %>.buetow.org": { "Plugin": "/usr/local/libexec/nagios/check_ping", "Args": ["-H", "<%= $host %>.buetow.org", "-4", "-w", "50,10%", "-c", "100,15%"] @@ -61,6 +61,12 @@ }, <% } -%> <% } -%> + <% for my $nrpe_check (qw(load users disk zombie_procs total_procs backup_wallabag backup_nextcloud backup_anki)) { %> + "Check NRPE <%= $nrpe_check %> babylon5.buetow.org": { + "Plugin": "/usr/local/libexec/nagios/check_nrpe", + "Args": ["-H", "babylon5.buetow.org", "-c", "check_<%= $nrpe_check %>", "-p", "5666", "-4"] + }, + <% } %> "Check Users <%= $hostname %>": { "Plugin": "/usr/local/libexec/nagios/check_users", "Args": ["-w", "2", "-c", "3"] |
