From 8482f6a270b2b4e5d458015d15cc59280cc5a166 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Wed, 23 Aug 2023 13:46:44 +0200 Subject: [PATCH] {c3voc,entropia}-jira: more monitoring --- nodes/c3voc-jira.toml | 29 +++++++++++++++++++++++++++++ nodes/entropia-jira.toml | 12 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 nodes/c3voc-jira.toml diff --git a/nodes/c3voc-jira.toml b/nodes/c3voc-jira.toml new file mode 100644 index 0000000..df28559 --- /dev/null +++ b/nodes/c3voc-jira.toml @@ -0,0 +1,29 @@ +hostname = "31.172.33.107" +dummy = true + +[metadata.icinga_options] +period = "daytime" +show_on_statuspage = false + +[metadata.icinga2_api.nginx.services."NGINX VHOST jira CERTIFICATE"] +check_command = "check_https_cert_at_url" +"vars.domain" = "jira.c3voc.de" +"vars.notification.mail" = true + +[metadata.icinga2_api.nginx.services."NGINX VHOST jira CONTENT"] +check_command = "check_http_wget" +"vars.http_wget_contains" = "login.jsp" +"vars.http_wget_url" = "https://jira.c3voc.de/secure/Dashboard.jspa" +"vars.notification.sms" = true + +[metadata.icinga2_api.custom.services] +# these checks do not get deployed onto the actual host by us, we only +# execute those checks +'DISK SPACE'.'vars.sshmon_command' = 'DISK_SPACE' +'JIRA HEAP'.'vars.sshmon_command' = 'JIRA_HEAP' +'JIRA THREADS'.'vars.sshmon_command' = 'JIRA_THREADS' +'LOAD'.'vars.sshmon_command' = 'LOAD' +'OOM KILLER'.'vars.sshmon_command' = 'OOM_KILLER' +'RAM'.'vars.sshmon_command' = 'RAM' +'USER PROCESS SECURITY jira'.'vars.sshmon_command' = 'USER_PROCESS_SECURITY_jira' +'ZPOOL SPACE tank'.'vars.sshmon_command' = 'check_zpool_space_tank' diff --git a/nodes/entropia-jira.toml b/nodes/entropia-jira.toml index d4bee28..302756c 100644 --- a/nodes/entropia-jira.toml +++ b/nodes/entropia-jira.toml @@ -20,3 +20,15 @@ check_command = "check_http_wget" "vars.http_wget_contains" = "login.jsp" "vars.http_wget_url" = "https://jira.gulas.ch/secure/Dashboard.jspa" "vars.notification.sms" = true + +[metadata.icinga2_api.custom.services] +# these checks do not get deployed onto the actual host by us, we only +# execute those checks +'DISK SPACE'.'vars.sshmon_command' = 'DISK_SPACE' +'JIRA HEAP'.'vars.sshmon_command' = 'JIRA_HEAP' +'JIRA THREADS'.'vars.sshmon_command' = 'JIRA_THREADS' +'LOAD'.'vars.sshmon_command' = 'LOAD' +'OOM KILLER'.'vars.sshmon_command' = 'OOM_KILLER' +'RAM'.'vars.sshmon_command' = 'RAM' +'USER PROCESS SECURITY jira'.'vars.sshmon_command' = 'USER_PROCESS_SECURITY_jira' +'ZPOOL SPACE tank'.'vars.sshmon_command' = 'check_zpool_space_tank'