mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 00:08:34 +01:00
add: michy server monitoring
This commit is contained in:
52
roles/monitoring-master/files/michy-ese-server.conf
Normal file
52
roles/monitoring-master/files/michy-ese-server.conf
Normal file
@@ -0,0 +1,52 @@
|
||||
object Host "esports-erlangen.de" {
|
||||
|
||||
import "generic-host"
|
||||
|
||||
address = "esports-erlangen.de"
|
||||
name = "esports-erlangen.de"
|
||||
check_command = "hostalive4"
|
||||
vars.linux = "true"
|
||||
|
||||
|
||||
max_check_attempts = 5
|
||||
retry_interval = 1m
|
||||
|
||||
vars.notification["mail"] = {
|
||||
groups = ["ese"]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
apply Service "dovecot-imap-tls-993" {
|
||||
import "generic-service"
|
||||
check_command = "ssl"
|
||||
vars.host = host.address
|
||||
vars.port = 993
|
||||
assign where host.name == "esports-erlangen.de"
|
||||
}
|
||||
|
||||
apply Service "postfix-smtp-25" {
|
||||
import "generic-service"
|
||||
check_command = "smtp"
|
||||
vars.host = host.address
|
||||
vars.protocol = "smtp"
|
||||
vars.port = 25
|
||||
assign where host.name == "esports-erlangen.de"
|
||||
}
|
||||
|
||||
apply Service "postfix-smtp-starttls-25" {
|
||||
import "generic-service"
|
||||
check_command = "ssl"
|
||||
vars.host = host.address
|
||||
vars.protocol = "smtp"
|
||||
vars.port = 25
|
||||
assign where host.name == "esports-erlangen.de"
|
||||
}
|
||||
|
||||
apply Service "website-http" {
|
||||
import "generic-service"
|
||||
check_command = "http"
|
||||
vars.host = "www.esports-erlangen.de"
|
||||
vars.ssl = true
|
||||
assign where host.name == "esports-erlangen.de"
|
||||
}
|
||||
@@ -2,9 +2,9 @@ object User "michy" {
|
||||
import "generic-user"
|
||||
|
||||
display_name = "Michy Monitoring"
|
||||
groups = []
|
||||
groups = ["ese"]
|
||||
|
||||
email = "spamsink@atlantishq.de"
|
||||
email = "HISTORY_PURGED_SECRET"
|
||||
}
|
||||
|
||||
object User "icingaadmin" {
|
||||
@@ -19,3 +19,7 @@ object User "icingaadmin" {
|
||||
object UserGroup "icingaadmins" {
|
||||
display_name = "Icinga 2 Admin Group"
|
||||
}
|
||||
|
||||
object UserGroup "ese" {
|
||||
display_name = "ESports-Erlangen Gruppe"
|
||||
}
|
||||
|
||||
@@ -87,6 +87,7 @@
|
||||
- services_passive_mail_extern.conf
|
||||
- services_async.conf
|
||||
- users.conf
|
||||
- michy-ese-server.conf
|
||||
- async-icinga-services-dynamic.conf
|
||||
notify:
|
||||
- restart icinga
|
||||
|
||||
@@ -4,7 +4,7 @@ apply Notification "mail-icingaadmin" to Host {
|
||||
user_groups = host.vars.notification.mail.groups
|
||||
users = host.vars.notification.mail.users
|
||||
|
||||
interval = 2h
|
||||
interval = 7d
|
||||
|
||||
vars.notification_logtosyslog = true
|
||||
vars.notification_from = "Icinga <{{ smtp_service_user }}@atlantishq.de>"
|
||||
@@ -18,7 +18,7 @@ apply Notification "mail-icingaadmin" to Service {
|
||||
user_groups = host.vars.notification.mail.groups
|
||||
users = host.vars.notification.mail.users
|
||||
|
||||
interval = 2h
|
||||
interval = 7d
|
||||
vars.notification_logtosyslog = true
|
||||
vars.notification_from = "Icinga <{{ smtp_service_user }}@atlantishq.de>"
|
||||
assign where host.vars.notification.mail
|
||||
|
||||
Reference in New Issue
Block a user