This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # | |
| # Get certificates validity dates for a list of domains | |
| # | |
| while read -r domain; do | |
| echo "$domain" | |
| echo | openssl s_client -connect "$domain":443 -status 2>&1 | openssl x509 -dates -noout | |
| done < domains |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # This script requires postgresqltuner.pl: | |
| # apt install libdbd-pg-perl libdbi-perl perl-modules | |
| # wget -O /usr/local/bin/postgresqltuner.pl https://postgresqltuner.pl | |
| # chmod +x /usr/local/bin/postgresqltuner.pl | |
| OUTPUT_DIR="/var/lib/postgresqltuner" | |
| # Max number of files to keep for each database | |
| MAX_COPIES=3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Prometheus exporter with background metrics gathering.""" | |
| import signal | |
| import threading | |
| import time | |
| from typing import TYPE_CHECKING | |
| import schedule | |
| from flask import Flask | |
| from prometheus_client import Gauge, make_wsgi_app | |
| from werkzeug.middleware.dispatcher import DispatcherMiddleware |
OlderNewer