Skip to content
Snippets Groups Projects
Commit ba92117f authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

icinga monitoring

parent d98de42d
No related branches found
No related tags found
No related merge requests found
[Administrators]
users = icingaadmin
permissions = "*"
groups = "Administrators"
[ldap-active]
groups = active
permissions = "application/*, module/*, monitoring/*"
# This file lists locales that you wish to have built. You can find a list
# of valid supported locales at /usr/share/i18n/SUPPORTED, and you can add
# user defined locales to /usr/local/share/i18n/SUPPORTED. If you change
# this file, you need to rerun locale-gen.
de_DE.UTF-8 UTF-8
en_US.UTF-8 UTF-8
# Schema definitions for Whisper files. Entries are scanned in order,
# and first match wins. This file is scanned for changes every 60 seconds.
#
# Definition Syntax:
#
# [name]
# pattern = regex
# retentions = timePerPoint:timeToStore, timePerPoint:timeToStore, ...
#
# Remember: To support accurate aggregation from higher to lower resolution
# archives, the precision of a longer retention archive must be
# cleanly divisible by precision of next lower retention archive.
#
# Valid: 60s:7d,300s:30d (300/60 = 5)
# Invalid: 180s:7d,300s:30d (300/180 = 3.333)
#
# Carbon's internal metrics. This entry should match what is specified in
# CARBON_METRIC_PREFIX and CARBON_METRIC_INTERVAL settings
[carbon]
pattern = ^carbon\.
retentions = 10s:6h,1m:90d
[default]
pattern = .*
retentions = 10s:6h,1m:90d
[icinga2_default]
pattern = .*
retentions = 1m:2d,5m:10d,30m:90d,60m:1y
/srv/icinga/log/apache2/*.log {
rotate 12
monthly
compress
missingok
notifempty
}
/srv/icinga/log/icinga2/*.log {
rotate 12
monthly
compress
missingok
notifempty
}
/srv/icinga/log/icingaweb2/*.log {
rotate 12
monthly
compress
missingok
notifempty
}
/srv/icinga/graphite-log/*.log {
rotate 12
monthly
compress
missingok
notifempty
}
\ No newline at end of file
#!/bin/bash
response=$(curl --write-out %{http_code} --silent \
-F "token=$PUSHOVERTOKEN" \
-F "user=$PUSHOVERUSER" \
-F "title=$PUSHOVERTITLE" \
-F "message=$PUSHOVERMESSAGE" \
https://api.pushover.net/1/messages)
if [[ "$response" == *200 ]]
then
echo Pushover message sent succesfully
exit 0
else
echo Activation of Pushover service failed. This is the response from Pushover: $response
exit 1
fi
\ No newline at end of file
......@@ -21,6 +21,19 @@ services:
- DOMAIN=${MAILCOW_HOSTNAME}
# Prometheus Postfix Exporter
postfix-exporter:
image: unikum/postfix_exporter:latest
restart: always
depends_on:
- postfix-mailcow
ports:
- "{{ int_ip4 }}:9154:9154"
volumes:
- "postfix-vol-1:/var/spool/postfix:z"
# Labels für traefik Konfiguration
# Der Container nginx-mailcow benötigt zusätzlich den Alias sogo, damit der Container wegfallen kann
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment