Add monitoring of certificates

This commit is contained in:
Alex D. 2021-08-12 16:36:12 +00:00
parent a63deff6bc
commit 633c67fef8
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
5 changed files with 34 additions and 3 deletions

View File

@ -3,8 +3,8 @@
. ../APKBUILD-config.template
pkgver=2021.06.06.03
pkgrel=1
pkgver=2021.08.11.02
pkgrel=0
options="" # Disables defaults, enabling checks
checkdepends="telegraf"
source="
@ -19,6 +19,9 @@ _modules="
rspamd
wireguard
postgresql
dovecot
postfix
murmur
"
for i in $_modules; do
@ -74,6 +77,18 @@ wireguard() {
_commonmod
}
dovecot() {
_commonmod
}
postfix() {
_commonmod
}
murmur() {
_commonmod
}
_commonmod() {
modname="${subpkgname##$pkgname-}"
install_if="$pkgname redxen-config-$modname"
@ -91,8 +106,11 @@ sha512sums="
532d6b79eafb7629ef3f2a16f2f9323369d93357b301e44c111661eab8108a3d09dae1fd2c7f8a4c3d832c66285e2098fcd7713f37b545b5616d7c9a749a2684 base.conf
5a81b295f17189115fe93d1d68d94181aaab32dfcdd3e4d0480991c515d0cec57cb58bac354b893a5109a9e62d400a278489c9d64b997968ad8f326e02c7ddb1 unbound.conf
a4bc80850c94291d00b2ad56e50216ab36515bcc176b3c5678b24c3d5a3740b9de9006df8e37e42942a50227e6b27321d267e27decffbf6d9a37755d3224121e redis.conf
f219fcd9c1aeb4503e813f00c51cc2a2ccb8c297727f3542e614c784b977ef6a32d492de750b8d4338f95172dfdc0e388a72662e80c92a890e2bfc7d34e3396d haproxy.conf
53afdace6a7b581d9f9c703de4e9b7d3461f72d6043dfe3a963a31094d82373bd59d1ac8294f30d4cb778faa022b9359c6f753db2ac6aeaf71ba90138e65b62d haproxy.conf
0e5e8282a77553cf75b3184367486d37f4dd6e6ed5a216f2ca5b94f4fe7b151565eb5d9fc35f5eadc154da41aa39f0f7979ded054be9da94b981326ca13c6b8f rspamd.conf
3f6d05082d4e01fb7498c82fb92fb479c5766148c9dcfd118d248ceaf6838f4794b940a8fcff0ec6020000806c6418f93e5aa60cbf32fd826fa4f9870f925ba7 wireguard.conf
cd891003216a1f0b1d7718b0cda39f798984a5a0ffae11b87edc933f2a96c15255cddaa19e8bb5514c7e1c2478c46d5042043a4af6e21805188863e29606daab postgresql.conf
08dfc71b64e1f8b413bef098e0b505b21d51622573fd58a0d2331bd85e94b98b5be1da08137c820c5d4f0617ba450d73d9db1c7386e69e510e8b4a9c7163e358 dovecot.conf
e08b6d978c87e0e73a88c7a8813ef7cebaed5fefe2f523120bb52e4f31ef113da5c216b566791a1f6b699a753362e31c7cbec294189e222110ffd2c26181272f postfix.conf
b2cda0f8ccebe3bcebbdaa14211e06b6ee261eb4f5c482d818871f1b3b6a915581b44284f201707f425cfd96be45a3fc2dd74758820211704bde962074816088 murmur.conf
"

View File

@ -0,0 +1,3 @@
[[inputs.x509_cert]]
sources = ["tcp://localhost:993"]
tls_server_name = "redxen.eu"

View File

@ -1,3 +1,7 @@
[[inputs.haproxy]]
servers = ["socket:/run/haproxy.sock"]
keep_field_names = true
[[inputs.x509_cert]]
sources = ["tcp://localhost:443"]
tls_server_name = "redxen.eu"

View File

@ -0,0 +1,3 @@
[[inputs.x509_cert]]
sources = ["tcp://localhost:64738"]
tls_server_name = "redxen.eu"

View File

@ -0,0 +1,3 @@
[[inputs.x509_cert]]
sources = ["tcp://localhost:465"]
tls_server_name = "redxen.eu"