forked from hacc/haccfiles
monit: check for onlyoffice status
This commit is contained in:
parent
c681bb413c
commit
c28a1f6e2e
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, pkgs, lib, sources, ... }:
|
{ config, options, pkgs, lib, sources, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ sources.nixos-mailserver.outPath ];
|
imports = [ sources.nixos-mailserver.outPath ];
|
||||||
|
@ -20,6 +20,14 @@
|
||||||
monitoring = {
|
monitoring = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alertAddress = "admin@hacc.space";
|
alertAddress = "admin@hacc.space";
|
||||||
|
config = (lib.replaceStrings ["port 22"] ["port ${toString (lib.head config.services.openssh.ports)}"] options.mailserver.monitoring.config.default) + ''
|
||||||
|
check host onlyoffice with address onlyoffice.infra4future.de
|
||||||
|
if failed
|
||||||
|
port 443
|
||||||
|
protocol https
|
||||||
|
status = 302
|
||||||
|
then alert
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
domains = [
|
domains = [
|
||||||
"hacc.space"
|
"hacc.space"
|
||||||
|
|
Loading…
Reference in a new issue